Linked by David Adams on Thu 20th Nov 2008 04:19 UTC
General Unix Linux and other Unix-like operating systems use the term "swap" to describe both the act of moving memory pages between RAM and disk. It is common to use a whole partition of a hard disk for swapping. However, with the 2.6 Linux kernel, swap files are just as fast as swap partitions. Now, many admins (both Windows and Linux/UNIX) follow an old rule of thumb that your swap partition should be twice the size of your main system RAM. Let us say I’ve 32GB RAM, should I set swap space to 64 GB? Is 64 GB of swap space really required? How big should your Linux / UNIX swap space be?
Thread beginning with comment 337899
To read all comments associated with this story, please click here.
suspend to disk
by JoeBuck on Thu 20th Nov 2008 17:47 UTC
Member since:

If you have a laptop, and you want suspend to disk to work, you need for all of your RAM to fit into your swap. Furthermore, if you have a lot of suspended programs sitting around that are already in swap, you need more.

So 2x RAM is a good rule of thumb if you want suspend to disk to work.

In fairness, the article does mention the suspend to disk issue.

Reply Score: 3