zswself 发表于 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

怎样解决呢?

zswself 发表于 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

运行原来的程序就没事了。
页: [1]
查看完整版本: 申请不到足够内存