From owner-freebsd-stable@FreeBSD.ORG Tue Apr 17 13:27:29 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AC802106566B for ; Tue, 17 Apr 2012 13:27:29 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) by mx1.freebsd.org (Postfix) with ESMTP id 604F68FC12 for ; Tue, 17 Apr 2012 13:27:29 +0000 (UTC) Received: from slw by zxy.spb.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1SK8Rl-0008Qj-M3 for freebsd-stable@freebsd.org; Tue, 17 Apr 2012 17:27:53 +0400 Resent-From: Slawa Olhovchenkov Resent-Date: Tue, 17 Apr 2012 17:27:53 +0400 Resent-Message-ID: <20120417132753.GB76983@zxy.spb.ru> Resent-To: freebsd-stable@freebsd.org Date: Tue, 17 Apr 2012 16:56:34 +0400 From: Slawa Olhovchenkov To: carlopmart Message-ID: <20120417125634.GA76983@zxy.spb.ru> References: <4F8C4F89.7090205@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4F8C4F89.7090205@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Resent-Date: Tue, 17 Apr 2012 17:27:53 +0400 X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false Cc: Subject: Re: ZFS options for FreeBSD 8.3 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Apr 2012 13:27:29 -0000 On Mon, Apr 16, 2012 at 06:57:45PM +0200, carlopmart wrote: > I have installed FreeBSD 8.3 amd64 release in an ESXi server. Due to > some limitations, I can only assign 2GiB of RAM to this virtual machine > and I need to use ZFS as filesystem to store some data (MySQL databases). > > According to http://wiki.freebsd.org/ZFSTuningGuide I have configured > some options: > > vfs.zfs.write_limit_override=268435456 > kern.maxvnodes=250000 > > According to ZFS version, FreeBSD 8,3 comes with version 28, and > reading previous guide there is not need to adjust nothing more. I am boot 9.0 inside ESXi with 256MB RAM. And pass buildworld. /boot/loader.conf: vm.kmem_size="512M" vfs.zfs.txg.timeout="5" vfs.zfs.vdev.cache.size="4M" vfs.zfs.arc_max="16M" > But what about l2arc options?? Do I need to adjust vfs.zfs.arc_max and > vm.kmem_size options?? How can I calculate these values?? vm.kmem_size must be >512M. kernel don't allow to setup vm.kmem_size to more the 2*RAM. zfs don't allow to setup vfs.zfs.arc_max < max(RAM/32, 16MB).