|
楼主 |
发表于 2004-3-3 15:26:27
|
显示全部楼层
最初由 terminator 发表
yes, swapfile is a good solution - actually I always use it. btw, I created my swap file in /boot instead of /tmp since files in /tmp may be deleted by cron jobs.
to enable swapfile during boot, you can simply change /etc/fstab and add the swap file entry into it.
if you are using kernel 2.6, you will need to change /etc/rc.d/rc.S, and move the line 'swapon -a' after line '/sbin/mount -w -o remount /'. This is because at the position of the original 'swapon -a', / file system is still read-only, but you need read-write for swap file. so kernel 2.6 will refuse to turn on swap. I've reported it to Patrick, but he is reluctant to make the change. :-)
真的很感谢你, 昨天晚上最后发现原因是在fstab里没有swap的内容, 所以根本没有办法交换内存. 这么快就把问题定位, 大牛!!!!:2cool |
|