由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - 如何扩大内存limit?
相关主题
what is espdbd ?another question about priority under Unix/Linux
FreeBSD memory limit?求助
Just finished installing FreeBSD 4.2 again.tough! help! expert needed!
what does some of FTP instructions mean?makefile help
pwd vs $cwd, help megmake help
10个包子征求解答从一个telnet终端最多能启动几个程序在unix上运行?
what's the relation bt UNIX and SUN workstation?exec 求救
[转载] Is V.90 modem a WinModem?UNIX vs LINUX? why?
相关话题的讨论汇总
话题: kernel话题: 1024话题: 514m话题: res
进入Unix版参与讨论
1 (共1页)
q****e
发帖数: 3
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
s***e
发帖数: 108
2
you might have to recompile kernel or pass in some parameter when kernel
boots up.

【在 q****e 的大作中提到】
: 情形如下:物理内存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

q****e
发帖数: 3
3
Do you know what those parameters maybe, or where I should check to find them
?
Thanks!



【在 s***e 的大作中提到】
: you might have to recompile kernel or pass in some parameter when kernel
: boots up.

q****e
发帖数: 3
4
请教了一些朋友,发现这样就行了:
(注意!!要recompile kernel, 要make sure原kernel备份到如/kernel.original,
若怕出问题可将你的所有东西备份,虽然理论上说即使新kernel不行,用原kernel也
能boot)
对FreeBSD:
1. cp /usr/src/sys/i386/conf/GENERIC MYNEWKERNEL
(若是alpha则是在/usr/src/sys/
alpha/conf/下)
2. 往MYNEWKERNEL中加:
options MAXDSIZ="(2048*1024*1024-1)"
options MAXSSIZ="(2048*1024*1024-1)"
options DFLDSIZ="(2048*1024*1024-1)"
注:Intelx86是32bit的, 只能支持到2G-1. alpha不知是否可更高。
3.按标准的kernel recompile and install的一套过程对MYNEWKERNEL做(即config
MYNEWKERNEL, make depend等等),然后重新boo

【在 s***e 的大作中提到】
: you might have to recompile kernel or pass in some parameter when kernel
: boots up.

1 (共1页)
进入Unix版参与讨论
相关主题
UNIX vs LINUX? why?pwd vs $cwd, help me
准备下载10个包子征求解答
how to install FreeBSD, linux. windows in a single HD, is that possible?what's the relation bt UNIX and SUN workstation?
about kylix[转载] Is V.90 modem a WinModem?
what is espdbd ?another question about priority under Unix/Linux
FreeBSD memory limit?求助
Just finished installing FreeBSD 4.2 again.tough! help! expert needed!
what does some of FTP instructions mean?makefile help
相关话题的讨论汇总
话题: kernel话题: 1024话题: 514m话题: res