From owner-freebsd-fs@FreeBSD.ORG Mon Oct 1 12:16:47 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 0F91016A417 for ; Mon, 1 Oct 2007 12:16:47 +0000 (UTC) (envelope-from rmilkowski@task.gda.pl) Received: from bojer.task.gda.pl (bojer.task.gda.pl [153.19.250.250]) by mx1.freebsd.org (Postfix) with ESMTP id B122313C49D for ; Mon, 1 Oct 2007 12:16:46 +0000 (UTC) (envelope-from rmilkowski@task.gda.pl) Received: from localhost (localhost [127.0.0.1]) by bojer.task.gda.pl (Postfix) with ESMTP id 8C2FABF43; Mon, 1 Oct 2007 13:57:47 +0200 (CEST) X-Virus-Scanned: amavisd-new at task.gda.pl Received: from bojer.task.gda.pl ([127.0.0.1]) by localhost (bojer.task.gda.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hnaiER+YdaTn; Mon, 1 Oct 2007 13:57:06 +0200 (CEST) Received: from localhost (e1-1.ns500-1.ts.milt.as9105.net [212.74.112.53]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by bojer.task.gda.pl (Postfix) with ESMTP id 19BACBF03; Mon, 1 Oct 2007 13:57:06 +0200 (CEST) Date: Mon, 1 Oct 2007 12:57:05 +0100 From: Robert Milkowski X-Mailer: The Bat! (v3.71.03) Professional Organization: CI TASK http://www.task.gda.pl X-Priority: 3 (Normal) Message-ID: <14950433.20071001125705@task.gda.pl> To: Neil Perrin In-Reply-To: <46FC316A.8010004@Sun.COM> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-fs@freebsd.org, zfs-discuss@opensolaris.org, Roch - PAE Subject: Re[2]: [zfs-discuss] ZFS (and quota) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Robert Milkowski List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Oct 2007 12:16:47 -0000 Hello Neil, Thursday, September 27, 2007, 11:40:42 PM, you wrote: NP> Roch - PAE wrote: >> Pawel Jakub Dawidek writes: >> > I'm CCing zfs-discuss@opensolaris.org, as this doesn't look like >> > FreeBSD-specific problem. >> > >> > It looks there is a problem with block allocation(?) when we are near >> > quota limit. tank/foo dataset has quota set to 10m: >> > >> > Without quota: >> > >> > FreeBSD: >> > # dd if=/dev/zero of=/tank/test bs=512 count=20480 >> > time: 0.7s >> > >> > Solaris: >> > # dd if=/dev/zero of=/tank/test bs=512 count=20480 >> > time: 4.5s >> > >> > With quota: >> > >> > FreeBSD: >> > # dd if=/dev/zero of=/tank/foo/test bs=512 count=20480 >> > dd: /tank/foo/test: Disc quota exceeded >> > time: 306.5s >> > >> > Solaris: >> > # dd if=/dev/zero of=/tank/foo/test bs=512 count=20480 >> > write: Disc quota exceeded >> > time: 602.7s >> > >> > CPU is almost entirely idle, but disk activity seems to be high. >> > >> >> >> Yes, as we are near quota limit, each transaction group >> will accept a small amount as to not overshoot the limit. >> >> I don't know if we have the optimal strategy yet. >> >> -r 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. Good question. It should have been cached on Solaris so it should definitely be below 1s range. -- Best regards, Robert mailto:rmilkowski@task.gda.pl http://milek.blogspot.com