swap file vs swap partition
peterjeremy at optushome.com.au
Mon Feb 5 07:33:53 UTC 2007
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
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).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20070205/d4ce6bbe/attachment.pgp
More information about the freebsd-questions