From owner-freebsd-fs@FreeBSD.ORG Mon Oct 1 12:35:08 2007 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 3CD2016A418 for ; Mon, 1 Oct 2007 12:35:08 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.freebsd.org (Postfix) with ESMTP id 8BEDC13C457 for ; Mon, 1 Oct 2007 12:35:07 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id A401E45E90; Mon, 1 Oct 2007 14:35:05 +0200 (CEST) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 6F22645683; Mon, 1 Oct 2007 14:34:59 +0200 (CEST) Date: Mon, 1 Oct 2007 14:34:57 +0200 From: Pawel Jakub Dawidek To: Robert Milkowski Message-ID: <20071001123457.GE35764@garage.freebsd.pl> References: <20070920115621.GF4517@garage.freebsd.pl> <8B5FB4B1-2398-491C-95F4-E79361606916@stromnet.se> <20070921142540.GB5690@garage.freebsd.pl> <18167.56892.707010.947405@gargle.gargle.HOWL> <46FC316A.8010004@Sun.COM> <14950433.20071001125705@task.gda.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dFWYt1i2NyOo1oI9" Content-Disposition: inline In-Reply-To: <14950433.20071001125705@task.gda.pl> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.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=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-fs@freebsd.org, Neil Perrin , Roch - PAE , zfs-discuss@opensolaris.org Subject: Re: [zfs-discuss] ZFS (and quota) 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: Mon, 01 Oct 2007 12:35:08 -0000 --dFWYt1i2NyOo1oI9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 01, 2007 at 12:57:05PM +0100, Robert Milkowski wrote: > Hello Neil, >=20 > Thursday, September 27, 2007, 11:40:42 PM, you wrote: >=20 >=20 > NP> Roch - PAE wrote: > >> Pawel Jakub Dawidek writes: > >> > I'm CCing zfs-discuss@opensolaris.org, as this doesn't look like > >> > FreeBSD-specific problem. > >> >=20 > >> > It looks there is a problem with block allocation(?) when we are ne= ar > >> > quota limit. tank/foo dataset has quota set to 10m: > >> >=20 > >> > Without quota: > >> >=20 > >> > FreeBSD: > >> > # dd if=3D/dev/zero of=3D/tank/test bs=3D512 count=3D20480 > >> > time: 0.7s > >> >=20 > >> > Solaris: > >> > # dd if=3D/dev/zero of=3D/tank/test bs=3D512 count=3D20480 > >> > time: 4.5s > >> >=20 > >> > With quota: > >> >=20 > >> > FreeBSD: > >> > # dd if=3D/dev/zero of=3D/tank/foo/test bs=3D512 count=3D20480 > >> > dd: /tank/foo/test: Disc quota exceeded > >> > time: 306.5s > >> >=20 > >> > Solaris: > >> > # dd if=3D/dev/zero of=3D/tank/foo/test bs=3D512 count=3D20480 > >> > write: Disc quota exceeded > >> > time: 602.7s > >> >=20 > >> > CPU is almost entirely idle, but disk activity seems to be high. > >> >=20 > >>=20 > >>=20 > >> Yes, as we are near quota limit, each transaction group > >> will accept a small amount as to not overshoot the limit. > >>=20 > >> I don't know if we have the optimal strategy yet. > >>=20 > >> -r >=20 > NP> Aside from the quota perf issue, has any analysis been done as to > NP> why FreeBSD is over 6X faster than Solaris without quotas? > NP> Do other perf tests show a similar disparity? > NP> Is there a difference in dd itself? > NP> I assume that it was identical hardware and pool config. (I don't see this e-mail in my ZFS inbox, that's why I'm replaying to Robert's e-mail.) Just to clarify. This was entirely different hardware. My e-mail was __only__ about quota performance in ZFS. Please, do not try to use those results for any other purpose. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --dFWYt1i2NyOo1oI9 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHAOlxForvXbEpPzQRAoIIAKCp+7TKzdo00Q5SkDg0DrQFe0kn8QCg3DlO 5S3v2IR2pS9pn4+cckSD3WQ= =pxmb -----END PGP SIGNATURE----- --dFWYt1i2NyOo1oI9--