Wise disk parting.

Mikkel L. Ellertson mikkel at infinity-ltd.com
Wed Nov 7 17:16:43 UTC 2007


Steve Lindemann wrote:
> 
> In days gone by the rule of thumb for *nix was swap should be 1/2 the
> size of RAM.  Hadn't heard about that rule changing, but then I'm not on
> the bleeding edge these days....  though on my servers with 16GB of RAM
> it felt like a bit much setting swap to 8GB (but I did it anyway 8^)
> 
I though the old rule was to for swap to be 2x RAM. This was because
a core dump would use 1x RAM size of swap. This is no longer the
case. Now days, if you are doing suspend to disk, you need slightly
more then the amount of RAM in swap space, plus what you need for
normal operation. If you are not going to suspend to disk, then the
swap space needed depends on the system. If you have enough RAM, you
do not need any swap space. For example, this system has 1M of RAM,
and it normally uses more then 5M of swap space. There are no simple
rules for swap size any more.

The thing to remember is that swap space is used for when you do not
have enough physical  memory. It is sometime used for keeping
program that are sleeping handy for reloading, but still freeing up
RAM for other uses. (A program may get swapped out when more RAM is
needed, and left swapped out even though there is RAM being used for
buffers...)

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20071107/54009035/attachment-0001.sig>


More information about the fedora-list mailing list