From owner-freebsd-fs@FreeBSD.ORG Wed Jan 9 03:18:34 2013 Return-Path: Delivered-To: freebsd-fs@FreeBSD.org Received: by hub.freebsd.org (Postfix, from userid 821) id CBE44C91; Wed, 9 Jan 2013 03:18:34 +0000 (UTC) Date: Wed, 9 Jan 2013 03:18:34 +0000 From: John To: Hiroki Sato Subject: Re: rc.d script for memory based zfs intent log Message-ID: <20130109031834.GA14386@FreeBSD.org> References: <20130109023327.GA1888@FreeBSD.org> <20130109.115240.1198411557684741197.hrs@allbsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130109.115240.1198411557684741197.hrs@allbsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-fs@FreeBSD.org 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 03:18:34 -0000 ----- Hiroki Sato's Original Message ----- > John wrote > in <20130109023327.GA1888@FreeBSD.org>: > > jw> Hi Folks, > jw> > jw> Here's an rc.d script that provides a nice performance boost on > jw> ZFS/NFS based file servers. It also helps in other areas not specific > jw> to NFS. > jw> > jw> It attaches the log device at system startup and removes it at > jw> system shutdown time. Example; > jw> > jw> memzil_pools="tank" > jw> memzil_bootfs="YES" > jw> service memzil onestart > jw> zpool status tank > jw> service memzil onestop > jw> > jw> This configuration provides a nice performance boost especially to > jw> NFS, but also helps in other areas not specific to NFS. > jw> > jw> Please DO NOT USE this script if your system is not UPS backed, preferably > jw> with dual power supplies on separate circuits. If your system crashes you > jw> may lose data. The script contains information on recovery. > jw> > jw> http://people.freebsd.org/~jwd/memzil.txt > jw> > jw> Comments/Improvements appreciated. > > Why is simply setting sync=disabled to the ZFS dataset not enough? As you refer to, my understanding is that sync=disabled is at the dataset layer. The zil approach is at the zpool layer - sync=disabled would be nice at the zpool layer. -John > -- Hiroki