From owner-freebsd-fs@FreeBSD.ORG Mon Dec 6 21:42:26 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B56C31065670 for ; Mon, 6 Dec 2010 21:42:26 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta07.westchester.pa.mail.comcast.net (qmta07.westchester.pa.mail.comcast.net [76.96.62.64]) by mx1.freebsd.org (Postfix) with ESMTP id 636208FC2A for ; Mon, 6 Dec 2010 21:42:25 +0000 (UTC) Received: from omta21.westchester.pa.mail.comcast.net ([76.96.62.72]) by qmta07.westchester.pa.mail.comcast.net with comcast id ft2P1f0081ZXKqc57xiSoG; Mon, 06 Dec 2010 21:42:26 +0000 Received: from koitsu.dyndns.org ([98.248.41.155]) by omta21.westchester.pa.mail.comcast.net with comcast id fxiR1f0063LrwQ23hxiRAp; Mon, 06 Dec 2010 21:42:26 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id BC09C9B422; Mon, 6 Dec 2010 13:42:23 -0800 (PST) Date: Mon, 6 Dec 2010 13:42:23 -0800 From: Jeremy Chadwick To: Ronald Klop Message-ID: <20101206214223.GA6375@icarus.home.lan> References: <4CFBD7F9.3000307@ukr.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-fs@freebsd.org Subject: Re: How to choose the size of swap? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Dec 2010 21:42:26 -0000 On Sun, Dec 05, 2010 at 07:53:04PM +0100, Ronald Klop wrote: > On Sun, 05 Dec 2010 19:20:41 +0100, Vladislav V. Prodan > wrote: > > >We have several servers with 8|16 GB of memory, 2|4 harddrive > >(RAID1|RAID10 using ZFS) > >These servers will work with Mysql, the size of databases that are > >several times larger than the size of memory. > > > >What would recommend to expose the size of swap? > >On a separate partition or a file? > >At hand is not loaded with servers that have the swap was over 20 MB ... > >In an extreme case, let the output "top v" to this maillist > > You might not need swap to run the database. But the swap space is > also used for making a kernel dump in case of a problem. In that > case swap space must be as large as the amount of memory in the > machine. (As far as I know.) And don't forget that (by default) you'll need a /var filesystem that has enough physical room to hold the dump. You can change this using the "dumpdir" option in rc.conf(5) if your existing /var isn't large enough. Just make sure to copy /var/crash to /wherever, and make sure the file/dir permissions are correct + minfree file exists. -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |