Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Jul 2004 19:27:48 -0400
From:      Bill Moran <wmoran@potentialtech.com>
To:        Lists <lists@perespim.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Swap size
Message-ID:  <20040705192748.28d50eb3.wmoran@potentialtech.com>
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> wrote:
> Hello all,
> 
>     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...

Other's have pointed out that you don't _need_ swap space.  If you have
enough RAM, you can operate without it.

However, if you need to do kernel core dumps (in the even you run into kernel
panic problems) you will need at least as much swap space as you have RAM,
plus a little.

Additionally, if your machine ever does start to swap, FreeBSD's VM code
_is_ optimized on the assumption that you have 2x your RAM in swap.  If
the machine starts to swap, you will get the best performance under all
loads (including _heavy_ swapping) if you have 2x RAM in swap.

However, FreeBSD still performs nicely with less swap than that.

-- 
Bill Moran
Potential Technologies
http://www.potentialtech.com



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