QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2471|回复: 1

申请不到足够内存

[复制链接]
发表于 2006-8-23 11:39:20 | 显示全部楼层 |阅读模式
我的一个程序的运行情况:
Allocation of length 1186504 from process 24 failed
Buffer memory:      560kB
Cache memory:      592kB
Free pages:       11464kB (     0kB HighMem)
Zone:DMA freepages:     0kB min:     0kB low:     0kB high:     0kB
Zone:Normal freepages: 11464kB min:   128kB low:   256kB high:   384kB
Zone:HighMem freepages:     0kB min:     0kB low:     0kB high:     0kB
( Active: 211, inactive: 77, free: 2866 )
= 0kB)
0*4kB 1*8kB 0*16kB 0*32kB 1*64kB 1*128kB 0*256kB 0*512kB 1*1024kB 5*2048kB = 11464kB)
= 0kB)
Unable to allocate RAM for process text/data, errno 12

怎样解决呢?
 楼主| 发表于 2006-8-25 10:35:58 | 显示全部楼层
问题解决,在在内核定制时选中 Allow allocating large blocks (> 1MB) of memory即可。
步骤如下:
  • Customize Kernel Settings
    Kernel hacking
  • Allow allocating large blocks (> 1MB) of memory

    运行原来的程序就没事了。
  • 回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

    GMT+8, 2024-4-19 06:32 , Processed in 0.081816 second(s), 15 queries .

    © 2021 Powered by Discuz! X3.5.

    快速回复 返回顶部 返回列表