From owner-freebsd-fs@FreeBSD.ORG Wed Nov 15 21:33:53 2006 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B92716A515 for ; Wed, 15 Nov 2006 21:33:53 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from sccmmhc92.asp.att.net (sccmmhc92.asp.att.net [204.127.203.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id 87D5C43D73 for ; Wed, 15 Nov 2006 21:33:46 +0000 (GMT) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net ([12.207.12.9]) by sccmmhc92.asp.att.net (sccmmhc92) with ESMTP id <20061115213345m9200klk5te>; Wed, 15 Nov 2006 21:33:45 +0000 Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.13.8/8.13.8) with ESMTP id kAFLXhJr068772; Wed, 15 Nov 2006 15:33:43 -0600 (CST) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.13.8/8.13.8/Submit) id kAFLXgLt068771; Wed, 15 Nov 2006 15:33:42 -0600 (CST) (envelope-from brooks) Date: Wed, 15 Nov 2006 15:33:42 -0600 From: Brooks Davis To: Ensel Sharon Message-ID: <20061115213342.GB68129@lor.one-eyed-alien.net> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="JP+T4n/bALQSJXh8" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11 Cc: freebsd-fs@freebsd.org Subject: Re: quota command and rsync snapshots... 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: Wed, 15 Nov 2006 21:33:53 -0000 --JP+T4n/bALQSJXh8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 15, 2006 at 04:23:42PM -0500, Ensel Sharon wrote: >=20 > >> Second, is there any way to get quota to show an accurate > representation > >> of the users usage ? >=20 > > It should be accurate - can you send some sample output? >=20 >=20 > Ok, here is what I see (6.1-RELEASE) : >=20 > First, the output of the quota command for that user: >=20 > # quota sammy > Disk quotas for user sammy (uid 1002): > Filesystem usage quota limit grace files quota limit > /mnt/big1 197067392 500000000 600000000 1554116 50000000 60000000 >=20 > So, quota is saying 197 GB used, ~1.5 mil. files. >=20 > Now looking at the users home directory itself, I see: >=20 > du -ak /home/sammy | tail -1 > 197067392 >=20 > (ok, agrees with quota) >=20 > find /home/sammy | wc -l > 5007486 >=20 > (5 million ... ?) >=20 > Now inside of the home directory: >=20 > day.0 day.1 day.2 day.3 >=20 > All four of these dirs are size 130 GB (give or take - small differences > based on deletions day to day) >=20 > All four of these dirs have ~1.25 (?) million files in them. >=20 > Remember, only day.0 is "real" - the others are `cp -al` copies, > consisting almost totally of hard links back to day.0. >=20 >=20 > So I really don't know what is going on. quota says 1.5 mil. files, I > have 5 million total "files", each dir does not exceed 140 GB. quota only counts inodes so the hard links are only counted once. > Does this mean that there is (197 minus 140) GB of churn per day, and that > there must be (1.5 mil. minus 1.25 mil.) churn of file turnover per day > ? Or something like that ? That is the only thing i can think of ... It means that files totaling 57GB are modified over three days. Depending on your work load that may or not be reasonable. Remember that a 1 byte will cause the whole file to count toward the total. -- Brooks --JP+T4n/bALQSJXh8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFW4e2XY6L6fI4GtQRAkJqAJ4juCd3Z28T1cMjzQx265Za6TN7BgCgqdnE Ivs3F6xVhXGo8+Jj5ixjAZY= =6yD0 -----END PGP SIGNATURE----- --JP+T4n/bALQSJXh8--