[TriLUG] SWAP size vs physical RAM size

Alan Porter porter at trilug.org
Tue Aug 7 14:05:51 EDT 2007


 > how crucial is it to have a swap file a lot larger
 > than the physical ram space?

Not at all crucial. I would make sure that your swap partition is just a 
wee bit larger than your physical RAM so that you can do magic things 
like 'suspend to disk', hibernate, etc.

If you find yourself needing some swap space (unlikely), then just make 
a swap file... or two.

dd if=/dev/zero of=/.swap count=1 bs=1 seek=1G
mkswap /.swap
echo "/.swap none swap sw 0 0" >> /etc/fstab
swapon -a


Alan






.




More information about the TriLUG mailing list