Date: Tue, 11 Apr 2006 11:58:12 +1000 From: Mark Andrews <Mark_Andrews@isc.org> To: Pete Slagle <freebsd-stable@voidcaptain.com> Cc: freebsd-stable@freebsd.org, michael.schuh@gmail.com, kris@obsecurity.org Subject: Re: Maximum Swapsize Message-ID: <200604110158.k3B1wC6R084032@drugs.dv.isc.org> In-Reply-To: Your message of "Mon, 10 Apr 2006 18:45:53 MST." <443B0A51.8040206@voidcaptain.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> Daniel O'Connor wrote: > > > The old "swap size = 2x RAM" rule is no longer applicable unless you have a > > > very special application. > > This "rule" always seemed counterintuitive to me anyway. > > When you have very limited physical RAM you need a lot of swap space. > When you have more than enough RAM you don't need any swap space at all. > For a given set of applications, as RAM increases you need less swap > space, not more. And vice versa. The rule was "a minimum of 2 time memory". This allowed to be able to swap between two processes consuming all of real memory. It dates backs to PDP 11 memory management models. Mark -- Mark Andrews, ISC 1 Seymour St., Dundas Valley, NSW 2117, Australia PHONE: +61 2 9871 4742 INTERNET: Mark_Andrews@isc.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604110158.k3B1wC6R084032>