From owner-freebsd-questions@FreeBSD.ORG Wed Jan 16 16:54:42 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 976B516A41A for ; Wed, 16 Jan 2008 16:54:42 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from mail.potentialtech.com (internet.potentialtech.com [66.167.251.6]) by mx1.freebsd.org (Postfix) with ESMTP id 5745C13C474 for ; Wed, 16 Jan 2008 16:54:42 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from vanquish.pitbpa0.priv.collaborativefusion.com (pr40.pitbpa0.pub.collaborativefusion.com [206.210.89.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.potentialtech.com (Postfix) with ESMTP id 4B267EBC3B; Wed, 16 Jan 2008 11:54:41 -0500 (EST) Date: Wed, 16 Jan 2008 11:54:40 -0500 From: Bill Moran To: Albert.Shih@obspm.fr Message-Id: <20080116115440.6510872c.wmoran@potentialtech.com> In-Reply-To: <20080116163701.GV89314@pcjas.obspm.fr> References: <20080116150454.GP89314@pcjas.obspm.fr> <20080116162805.GH97708@dan.emsphone.com> <20080116163701.GV89314@pcjas.obspm.fr> X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Dan Nelson , freebsd-questions@freebsd.org Subject: Re: How manu swap ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jan 2008 16:54:42 -0000 In response to Albert Shih : > Le 16/01/2008 =E0 10:28:06-0600, Dan Nelson a =E9crit > > In the last episode (Jan 16), Albert Shih said: > > > Hi all > > >=20 > > > I known it's classic question.=20 > > >=20 > > > 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. > > >=20 > > > Now I just install two machine with FreeBSD amd64 version with 8Go of > > > Ram and FreeBSD installer take 4 Go of swap. > > >=20 > > > Is a bug in the installer or now FreeBSD don't need 2xRam of swap ? > >=20 > > 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 This is really a pretty narrow view of things. * Swap _can_ be used to extend a systems usability beyond what it was originally designed for. If you don't exceed the physical RAM by too great a margin, allowing a few little-used processes to page out while heavy use processes use all available memory is not a big performance hit. * The idea that an 8G system will never use all that RAM is laughable to me. I can easily create applications that eat up 8G of RAM, legitimately. * In the event that something unexpected happens, having a lot of swap can save your ass by causing the system to slow down instead of kill processe= s. * Disk space is cheap. 16G of swap costs what? 15G of 15,000 RPM SCSI hard drive space costs $40 -- not much for piece of mind. * Of course, the crash dumps that are mentioned. I agree, though, that swap isn't what it used to be. Nobody uses it as supplemental RAM any more as far as I can tell. It's pretty much just a safety net nowadays. --=20 Bill Moran http://www.potentialtech.com