Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Jan 2008 17:27:52 +0000
From:      Bruce Cran <bruce@cran.org.uk>
To:        Dan Nelson <dnelson@allantgroup.com>
Cc:        Albert Shih <Albert.Shih@obspm.fr>, freebsd-questions@freebsd.org
Subject:   Re: How manu swap ?
Message-ID:  <478E3E98.10001@cran.org.uk>
In-Reply-To: <20080116162805.GH97708@dan.emsphone.com>
References:  <20080116150454.GP89314@pcjas.obspm.fr> <20080116162805.GH97708@dan.emsphone.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
Dan Nelson wrote:
> In the last episode (Jan 16), Albert Shih said:
>   
>> Hi all
>>
>> I known it's classic question. 
>>
>> Long time ago when I install a FreeBSD x86 32 bits when I have N Go
>> of Ram the installer take 2xN Go for the swap partition.
>>
>> Now I just install two machine with FreeBSD amd64 version with 8Go of
>> Ram and FreeBSD installer take 4 Go of swap.
>>
>> Is a bug in the installer or now FreeBSD don't need 2xRam of swap ?
>>     
>
> When was the last time you saw your swap partition with more than 2GB
> in use?  On an 8GB system, you probably will either never have enough
> processes to require swapping at all, or you will have one or two
> processes so big that if they ever swap, it's a sign you need more RAM,
> not more swap :)  In systems with that much RAM, swap is pretty much
> only used for crashdumps, and with minidumps enabled by default, you
> don't need much.  On small systems, the 2x-swap rule was because once
> you allocated enough processes to require that much swap, you were
> pretty much thrashing your system anyway

I've read that the VM system in FreeBSD is optimized such that if you do 
start swapping it'll work
best if your swap space is at least 2x RAM.  Is that still valid on 
recent releases of FreeBSD?

--
Bruce Cran



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?478E3E98.10001>