From owner-freebsd-fs@FreeBSD.ORG Sat Jul 26 20:51:20 2008 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 E1FC3106567A for ; Sat, 26 Jul 2008 20:51:20 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (chello087206045140.chello.pl [87.206.45.140]) by mx1.freebsd.org (Postfix) with ESMTP id 4581A8FC16 for ; Sat, 26 Jul 2008 20:51:19 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 2D04D45C99; Sat, 26 Jul 2008 22:51:18 +0200 (CEST) Received: from localhost (chello087206045140.chello.pl [87.206.45.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 2C15645684; Sat, 26 Jul 2008 22:51:13 +0200 (CEST) Date: Sat, 26 Jul 2008 22:51:18 +0200 From: Pawel Jakub Dawidek To: Peter Schuller Message-ID: <20080726205118.GB1345@garage.freebsd.pl> References: <200807262005.54235.peter.schuller@infidyne.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VywGB/WGlW4DM4P8" Content-Disposition: inline In-Reply-To: <200807262005.54235.peter.schuller@infidyne.com> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 8.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-fs@freebsd.org Subject: Re: Asynchronous writing to zvols (ZFS) 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: Sat, 26 Jul 2008 20:51:21 -0000 --VywGB/WGlW4DM4P8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jul 26, 2008 at 08:05:46PM +0200, Peter Schuller wrote: > Hello, >=20 > I was finally playing around with iSCSI, having never used it before. For= =20 > convenience, and also because it may be a future use case for real use, I= =20 > used zvols for my targets. >=20 > I could not get write speed above roughly 1 MB/second even in simple case= s=20 > like dd:ing with an 8 MB block size, with the zvol:s on a 6-disk raidz2. = The=20 > individual disk utilization of constituent drives remains small (< 3%).= =20 > Switching to a memory disk target yielded expected performance=20 > characteristics. >=20 > I notice that there were confirmed issues with writes to zvol:s: >=20 > http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=3D6496356 > http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=3D6496344 >=20 > The problem is that I'm not really sure how to translate "snv_59" into=20 > something that I can compare with the version of ZFS in FreeBSD. Do the= =20 > above "bugs" still apply to the ZFS version in FreeBSD, or am I hitting= =20 > something else? The problem is that we don't between async and sync I/O request on GEOM level, that's why I decided to commit a ZIL log after each write, which wasn't very smart it seems. This is handled differently in version I've in perforce. Could you try the below patch and see how it performs now? http://people.freebsd.org/~pjd/patches/zvol.c.patch --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --VywGB/WGlW4DM4P8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFIi45GForvXbEpPzQRAizYAJ9CBIcCWCJpTeOkBiqNTLAGJX+CggCfd9nx rePeFIxubC3Hou73zMatFnU= =HOCB -----END PGP SIGNATURE----- --VywGB/WGlW4DM4P8--