Skip site navigation (1)Skip section navigation (2)
Date:      04 Jul 2004 23:54:43 -0400
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: Swap size
Message-ID:  <44vfh39kho.fsf@be-well.ilk.org>
In-Reply-To: <71704ff3727060e5144ffddc6ee8daed@159.148.60.10>
References:  <71704ff3727060e5144ffddc6ee8daed@159.148.60.10>

next in thread | previous in thread | raw e-mail | index | archive | help
Lists <lists@perespim.net> writes:

>     What swap size should i use having 768 Mb of memory?
>     I've heard something about preformance degradation if
>     swap size is bellow 2x of ram...

You don't *need* ANY swap.  Until you fill up your RAM, at which point
it's nice to have some swap space instead of having the kernel start
killing processes.  

In order to do a crash dump, you need an overwritable partition that's
at least slightly larger than your RAM.  The swap partition is often
given this job as well as serving as swap space.

If you have some idea of your worst-case virtual memory usage,
allocate that much swap (less about the amount of RAM you have).  If
you don't know, either set aside a huge amount of space or experiment
and see how much you need (and then allocate half again as much to be
safe).  



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