From owner-freebsd-hackers@FreeBSD.ORG Fri May 20 00:03:05 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 98AEB1065687 for ; Fri, 20 May 2011 00:03:05 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4A79D8FC15 for ; Fri, 20 May 2011 00:03:05 +0000 (UTC) Received: by vws18 with SMTP id 18so3177198vws.13 for ; Thu, 19 May 2011 17:03:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=96sEyoFFGa4JlLODk56WYYAf4yKtNAwTvacVUYff6K4=; b=kpoYZrjMEYOHFRnDoyJq2aJtSg7T44zDDEg25UFgohdryacBf/SZ8mQZvQ82b7L9zS DNWdJtadofiDrZ015hgVOyOJiwCOPR3KLx5RIo7I/Gzg433hndvr4R7+Oy288GpmlhqF tLgcyO6BBoQb0IgVTsEBfeNIFn0TPRyO/vFEo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=gI0++U3BWe0En9SCEkoFF7hiF4QRzr5HtYz6LEcFicIZl0Glt4vY68DEt3GTWwej/n Bw0hJFB/jgsGsJnchxZi9dyvjSkNH+ouqEpmFAK0lXrg2EoWepIWYm1yrviRBeXUCbjR SMzwOckt3UdXXbNVN6hYJOP1VOPZaNI+9x29c= MIME-Version: 1.0 Received: by 10.220.132.137 with SMTP id b9mr1041380vct.247.1305848316162; Thu, 19 May 2011 16:38:36 -0700 (PDT) Received: by 10.220.188.202 with HTTP; Thu, 19 May 2011 16:38:36 -0700 (PDT) In-Reply-To: <20110519221307.GK2135@albert.catwhisker.org> References: <20110519221307.GK2135@albert.catwhisker.org> Date: Thu, 19 May 2011 16:38:36 -0700 Message-ID: From: Garrett Cooper To: David Wolfskill Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: hackers@freebsd.org Subject: Re: Disk quota reporting for usage >2TB X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 May 2011 00:03:05 -0000 On Thu, May 19, 2011 at 3:13 PM, David Wolfskill wro= te: > I recently found that, running FreBSD/i386 stable/8 as of around > r221857, the disk quota subsystem appears to overflow & wrap as it > crosses the 2TB mark. > > Evidence: =A0I ran a task in a loop, invoking "quota -h" after each > iteration. =A0Each invocation should write about 114.2GB to the file > system. =A0Eliding redundant headers, a relevant excerpt of the output, > along with "df -h" output for the file system in question: > > Disk quotas for user ,...] (uid 9874): > =A0 =A0 Filesystem =A0 usage =A0 quota =A0 limit =A0 grace =A0 files =A0 = quota =A0 limit =A0 grace > =A0 =A0 =A0 =A0 =A0 =A0 /d =A0 =A01.8T =A0 =A0 =A00B =A0 =A0 =A00B =A0 = =A0 =A0 =A0 25217562 =A0 =A0 =A0 0 =A0 =A0 =A0 0 > =A0 =A0 =A0 =A0 =A0 =A0 /d =A0 =A01.9T =A0 =A0 =A00B =A0 =A0 =A00B =A0 = =A0 =A0 =A0 26793658 =A0 =A0 =A0 0 =A0 =A0 =A0 0 > =A0 =A0 =A0 =A0 =A0 =A0 /d =A0 =A0 14G =A0 =A0 =A00B =A0 =A0 =A00B =A0 = =A0 =A0 =A0 28369755 =A0 =A0 =A0 0 =A0 =A0 =A0 0 > ... > =A0 =A0 =A0 =A0 =A0 =A0 /d =A0 =A0815G =A0 =A0 =A00B =A0 =A0 =A00B =A0 = =A0 =A0 =A0 39402435 =A0 =A0 =A0 0 =A0 =A0 =A0 0 > > Filesystem =A0 =A0Size =A0 =A0Used =A0 Avail Capacity =A0Mounted on > /dev/mfid1 =A0 =A0 15T =A0 =A02.8T =A0 =A0 11T =A0 =A019% =A0 =A0/d > > Now, this is a machine I'm testing -- I'm the only one writing to > that file system (other than the quota.user file). > > Now, I don't have a defined quota; the intent is not to use the quota > subsystem to restrict how myuch disk space folks use, but rather, to use > it to measure and track the usage. > > For this purpose, I really have no particular desire for precision to > the KB; precision could easily be as coarse as to the GB and still be > useful -- for this purpose, under these circumstances. > > Does anyone see a way to use the disk quota subsystem to track storage >>2TB on a single (UFS2) file system? des@ and mckusick@ completed the 64-bit quota work on CURRENT last year, but it hasn't been MFCed to 8-STABLE (probably because it breaks KBIs). More info can be found here: http://www.freebsd.org/projects/bigdisk/index.html . HTH, -Garrett