如何扩大内存limit?# Unix - 噫吁兮,危乎高哉
q*e
1 楼
情形如下:物理内存128M, OS is FreeBSD 4.4, 本人的Simulation程序run长时需大
量malloc memory,run后发现top显示SIZE为514M, RES是176M, 接着就dump core了。
程序本身应无问题,因为run短些时没问题。
Top显示:
Mem: 180M Active, 21M Inact, 32M Wired, 13M Cache, 35M Buf, 656K Free
Abort trap - core dumped
. PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND
66351 dxu -22 0 514M 127M swread 0:11 36.96% 27.39% simulation
limit显示:
cputime unlimited
filesize unlimited
datasize 524288 kbytes
stacksize 65536
量malloc memory,run后发现top显示SIZE为514M, RES是176M, 接着就dump core了。
程序本身应无问题,因为run短些时没问题。
Top显示:
Mem: 180M Active, 21M Inact, 32M Wired, 13M Cache, 35M Buf, 656K Free
Abort trap - core dumped
. PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND
66351 dxu -22 0 514M 127M swread 0:11 36.96% 27.39% simulation
limit显示:
cputime unlimited
filesize unlimited
datasize 524288 kbytes
stacksize 65536