Click to See Complete Forum and Search --> : New Memory--Change Swap Size?


zyzgy
05-02-2001, 07:18 PM
Hi everyone. I just installed an extra 128MB of RAM on my box. The computer recognized the new memory on bootup, but I'm assuming that the <swap> partition has not been automatically resized since there is no performance increase whatsoever. Prior to the install, I had 96MB, though the box said 64. I've checked out the RH documentation but it mentions nothing about this. I've checked the NHF's, but couldn't find anything there either.

Can anyone tell me if I'm am supposed to increase the size of <swap>? If so, how do I go about doing this?

Thanks for your help!

compunuts
05-02-2001, 08:35 PM
Well the general idea is that the swap should be twice the physical RAM but then again it's only useful for those of us who has little physical memory. So you can get away with not need to resize it if you have large physical RAM.

The other question about Linux not recognizing is that Linux defaultly only see 64 MB of physical RAM although it had been fixed in newer versions (you didn't say which version of RH). You can get around to this by adding this line "append=128M" to lilo.conf.

HTH

DMR
05-02-2001, 08:41 PM
You can get around to this by adding this line "append=128M" to lilo.conf.
I think the correct syntax is append="mem=xxxM"
where xxx is your total amount of RAM

compunuts
05-02-2001, 08:46 PM
Originally posted by DMR:
<STRONG>append="mem=xxxM"</STRONG>
Ah yeah you may be correct.. been a long day.... :(

ph34r
05-02-2001, 10:04 PM
You need to have *some* swap space, but not necessarily twice your RAM. I had a 65mb swap partition (it happened to be the amount after the 1023'rd cylinder on my drive) with 96mb of ram, and never had a problem. I went to 224mb of ram, and never had a problem. I went to 384mb ram, and actually reduced the swapfile (new harddrive) to 52mb, and even when compiling 2 kernels at once (stress test CPUs :D ) I only use a few megs of swap.

DMR
05-03-2001, 05:57 AM
From compunuts:
Ah yeah you may be correct.. been a long day.No Sh!t, has been for me too! ;)

zyzgy
05-03-2001, 11:14 AM
Thanks guys. I'll try it out and post the results.

I would appreciate it if you guys could check back in a day or so...

By the way, I'm running RH7.0 on an AMD K6-2, 500.

Thanks a lot!

[ 03 May 2001: Message edited by: zyzgy ]