Swap size

Kris Kennaway kris at obsecurity.org
Thu Aug 16 17:13:20 PDT 2007


On Fri, Aug 17, 2007 at 02:05:57AM +0200, Nicholas Wieland wrote:
> I was reading tuning(7), and I found that I should size my swap  
> double the size of my physical memory.
> AFAIK that was true some years ago, when memory was not as cheap as  
> now, and following that guideline I should set my swap to 2GB, which  
> seems far too much for swap (at least to me ...). I will never need  
> this much memory as 1GB RAM and 2GB swap.
> Is it still correct ?

2GB is a reasonable amount of swap space, and unless you plan to turn
your system on and leave it in the closet doing nothing, it will use
more memory than you think.

> How can I resize with bsdlabel if I already  
> used all my disk space during install ?

With a bit of work you can grow partitions (see growfs), but you
cannot shrink them.

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20070817/fe9e750e/attachment.pgp


More information about the freebsd-questions mailing list