What is the ideal size for a swap (swp) Partition in Linux?
September 21st, 2007Answer: Your Swap Partition’s size should be about 1 up to 2 times your RAM Memory Size, but maximum 2GB! (thanks to Abel Cheung)
So let’s say we have got 512 MB RAM: We create a 1GB (1024MB) Swap Partition, and everything is fine
Did you Like this Post? Try these ones! :)
How to find other local area network (LAN) computers in Ubuntu Linux? on September 19th, 2007
Debian Traffic Shaping Script on October 19th, 2007
How to list the Filesystems, Partition Tables and Hard Disks in Ubuntu Linux? on August 11th, 2007
How to remove/hide the GRUB Boot Menu after Upgrading to Gutsy Gibbon? on October 21st, 2007
How to rescue your Xorg-Server in a "worst case" scenario? on December 20th, 2007


September 21st, 2007 at 08:36
Not really. For example, consider a Linux desktop machine having 2GB RAM, a 4GB swap partition is NOT fine. Definitely too much. This (swap == 2 * ram) thing is based on old myth (or old kernel bug).
March 26th, 2009 at 07:51
Too much Swap is not a problem though i think. It’s a waste of space but not actually something that causes bad performance or anything. If your ram is over 1Gb then you probably only need a swap if you use hibernate/suspend/sleep modes rather than shutting down properly but it will need to be at least ram size in order for the contents of ram to be saved to this handy space on your hard-drive. A little more than ram size is good. Twice Ram size means that when you get more ram you probably wont need to mess around resizing partitions
Good luck and have fun

Regards from
Tom