From owner-freebsd-fs@FreeBSD.ORG Sun Dec 5 19:09:34 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 5E6E71065670 for ; Sun, 5 Dec 2010 19:09:34 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from fep21.mx.upcmail.net (fep21.mx.upcmail.net [62.179.121.41]) by mx1.freebsd.org (Postfix) with ESMTP id 93A208FC0C for ; Sun, 5 Dec 2010 19:09:33 +0000 (UTC) Received: from edge05.upcmail.net ([192.168.13.212]) by viefep15-int.chello.at (InterMail vM.8.01.02.02 201-2260-120-106-20100312) with ESMTP id <20101205185305.QNKX1633.viefep15-int.chello.at@edge05.upcmail.net> for ; Sun, 5 Dec 2010 19:53:05 +0100 Received: from pinky ([213.46.23.80]) by edge05.upcmail.net with edge id fWt41f01F1jgp3H05Wt5jF; Sun, 05 Dec 2010 19:53:05 +0100 X-SourceIP: 213.46.23.80 Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes To: freebsd-fs@freebsd.org References: <4CFBD7F9.3000307@ukr.net> Date: Sun, 05 Dec 2010 19:53:04 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Ronald Klop" Message-ID: In-Reply-To: <4CFBD7F9.3000307@ukr.net> User-Agent: Opera Mail/10.63 (Win32) X-Cloudmark-Analysis: v=1.1 cv=JvXQbuMnWGQeb488dJ7w43Du7THgE+O7ieb9U20/rjk= c=1 sm=0 a=egFB3xdmDTgA:10 a=bgpUlknNv7MA:10 a=kj9zAlcOel0A:10 a=Zvg7VmqrAAAA:8 a=qNW38mDyJ86A-iIDrhoA:9 a=DCCK55qrI-VIbiKVmWqZvf_GnosA:4 a=CjuIK1q_8ugA:10 a=SWIUPOSDCbIA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 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: Sun, 05 Dec 2010 19:09:34 -0000 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.) Ronald.