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 337851
To read all comments associated with this story, please click here.
This is dumb
by steve_s on Thu 20th Nov 2008 10:39 UTC
Member since:

Swap space was only ever about compensating for a lack of (expensive) physical RAM, making use of (in-expensive) disc space.

How much swap space should you allocate? Well, the real question is how much memory do you need for typical use.

2x RAM was a popular ratio that generally fit with people's computing needs, and did for a couple of decades. RAM has become much cheaper, to the point where it's no longer too expensive to buy as much RAM as is needed.

The 2x RAM rule doesn't need to be debunked - it's a dumb cargo-cult relic of a bygone age.

Reply Score: 2