Please wrap your lines and don't top-post.

On Sun, 2007-Feb-04 15:24:39 -0800, Aloha Guy wrote: What I actually
>meant was, I know in the old days, if you had 128MB, you want a 256MB
>swap but with 2GB RAM, isn't 4GB going to be overkill for a swap or
>are you saying that a 2GB swap will work?  I'm still lost on the
>ratio since I thought the 2x was only if you had like small amounts
>of RAM.

2:1 was a very old rule of thumb.  A better approach is to consider
your workload:  Your working set needs to fit in RAM and the total
virtual size needs to fit into RAM+swap.  If you tend to leave lots
of large processes lying around not doing anything, you might be
able to usefully use much more swap than if you religiously kill
processes that you aren't using - particularly if you don't have
massive amounts of RAM.  My desktop at work typically runs with
swap utilisation about twice RAM (but it only has ~160MB RAM).

Keep in mind that you can use multiple swap partitions so it can
be useful to have an active swap on each disk.  (The VM system
stripes across available swaps).

-- 
Peter Jeremy

Attachment: pgpMv9rkbZ7oC.pgp
Description: PGP signature

Reply via email to