From owner-freebsd-fs@FreeBSD.ORG Wed Jan 9 02:33:28 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 821) id 01D89226; Wed, 9 Jan 2013 02:33:28 +0000 (UTC) Date: Wed, 9 Jan 2013 02:33:27 +0000 From: John To: FreeBSD Filesystems Subject: rc.d script for memory based zfs intent log Message-ID: <20130109023327.GA1888@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jan 2013 02:33:28 -0000 Hi Folks, Here's an rc.d script that provides a nice performance boost on ZFS/NFS based file servers. It also helps in other areas not specific to NFS. It attaches the log device at system startup and removes it at system shutdown time. Example; memzil_pools="tank" memzil_bootfs="YES" service memzil onestart zpool status tank service memzil onestop This configuration provides a nice performance boost especially to NFS, but also helps in other areas not specific to NFS. Please DO NOT USE this script if your system is not UPS backed, preferably with dual power supplies on separate circuits. If your system crashes you may lose data. The script contains information on recovery. http://people.freebsd.org/~jwd/memzil.txt Comments/Improvements appreciated. Thanks, John