From owner-freebsd-fs@FreeBSD.ORG Wed Jan 9 03:05:48 2013 Return-Path: Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 8FFF99D4; Wed, 9 Jan 2013 03:05:48 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mail.allbsd.org (gatekeeper.allbsd.org [IPv6:2001:2f0:104:e001::32]) by mx1.freebsd.org (Postfix) with ESMTP id A1AC6D5C; Wed, 9 Jan 2013 03:05:47 +0000 (UTC) Received: from alph.allbsd.org (p1137-ipbf1505funabasi.chiba.ocn.ne.jp [118.7.212.137]) (authenticated bits=128) by mail.allbsd.org (8.14.5/8.14.5) with ESMTP id r0935O68084086 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 9 Jan 2013 12:05:37 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) (authenticated bits=0) by alph.allbsd.org (8.14.5/8.14.5) with ESMTP id r0935Nkj009005; Wed, 9 Jan 2013 12:05:24 +0900 (JST) (envelope-from hrs@FreeBSD.org) Date: Wed, 09 Jan 2013 11:52:40 +0900 (JST) Message-Id: <20130109.115240.1198411557684741197.hrs@allbsd.org> To: jwd@FreeBSD.org Subject: Re: rc.d script for memory based zfs intent log From: Hiroki Sato In-Reply-To: <20130109023327.GA1888@FreeBSD.org> References: <20130109023327.GA1888@FreeBSD.org> X-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-Mailer: Mew version 6.5 on Emacs 23.4 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="--Security_Multipart(Wed_Jan__9_11_52_40_2013_377)--" Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.97.4 at gatekeeper.allbsd.org X-Virus-Status: Clean X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (mail.allbsd.org [133.31.130.32]); Wed, 09 Jan 2013 12:05:38 +0900 (JST) X-Spam-Status: No, score=-98.1 required=13.0 tests=CONTENT_TYPE_PRESENT, ONLY1HOPDIRECT,SAMEHELOBY2HOP,USER_IN_WHITELIST autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on gatekeeper.allbsd.org 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:05:48 -0000 ----Security_Multipart(Wed_Jan__9_11_52_40_2013_377)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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? -- Hiroki ----Security_Multipart(Wed_Jan__9_11_52_40_2013_377)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEABECAAYFAlDs23gACgkQTyzT2CeTzy0eIgCeOK4RI451JJEqEu/WS4ssfDpI AE4Anjhn3s0Y9lxCxxjC8Gb8SKCzQVY2 =Wpoa -----END PGP SIGNATURE----- ----Security_Multipart(Wed_Jan__9_11_52_40_2013_377)----