Linux: Should You Use Twice the Amount of Ram as Swap Space?

  2008-11-19 22:30:02
Linux and other Unix-like operating systems use the term“swap” to describe both the act of moving memory pages between RAM and disk, and the region of a disk the pages are stored on. 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 yourLinux / UNIX swap space be? 
  PNG Image  PNG Image  PNG Image
  Related tags  


This particular article has been collected via RSS syndication. We apologize if it's too brief.
If You wish to publish articles on LinuxStreet.net please contact us.


  Similar articles found on LinuxStreet  
ImageProtecting filesystems and swap space with Cryptmount
ImageTune Your Memory with AIX 5L
ImageLinux: Revisiting Swap Prefetch
ImageSwap Over NFS
ImageAll about Linux swap space
ImagePerl script to monitor disk space and send an email alert
ImageThis week at LWN: Still waiting for swap prefetch
ImageImplementing quotas to restrict disk space usage
ImageSwapBoost v0.1alpha - early testers wanted
ImageLinux: Debating Swap-Prefetch

Leave a comment on this article


Captcha

  
Check this if the code you see is not readable and resubmit the form.
(Data you entered will be preserved)



  

Comments (0)