Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Jul 2007 09:27:12 -0500
From:      Derek Ragona <derek@computinginnovations.com>
To:        Gabriel Linder <linder@jeuxvideo.com>, freebsd-questions@freebsd.org
Subject:   Re: Swap size
Message-ID:  <6.0.0.22.2.20070719091620.024d0518@mail.computinginnovations.com>
In-Reply-To: <469F1ABC.6070503@jeuxvideo.com>
References:  <469F1ABC.6070503@jeuxvideo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
At 03:03 AM 7/19/2007, Gabriel Linder wrote:
>Hi,
>
>I plan to setup FreeBSD 6.2-RELEASE on my Core Duo laptop with 1GB of RAM.
>
>The handbook says "ideal swap size is 2xRAM", so should I use 2GB of swap ?

Yes unless you know how many applications will ever be run and their run 
size.  The 2xRAM is so you can always have a reasonable performance 
allowing swap.  You can still run out of swap, and this will cause a 
panic.  With disks so cheap, why not use 2XRAM?

>  This seems a bit huge to me, I never used more than 400MB on Linux.
>If so, is there a limit of swap partition size (or number) on i386 (for 
>Linux it's 2GB per partition and 32 partitions max, but I don't know for 
>FreeBSD) ?

You can add more swap using a swap file you can check that out doing:
man swapon

I don't believe there is a limit to swap partitions, other than the limit 
on other partitions.

I have no knowledge on efficiency of a swap partition vs a swap file.

         -Derek 
-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6.0.0.22.2.20070719091620.024d0518>