Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Nov 2006 15:33:42 -0600
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        Ensel Sharon <user@dhp.com>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: quota command and rsync snapshots...
Message-ID:  <20061115213342.GB68129@lor.one-eyed-alien.net>
In-Reply-To: <Pine.LNX.4.21.0611151604480.21120-100000@shell.dhp.com>
References:  <Pine.LNX.4.21.0611151604480.21120-100000@shell.dhp.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061115213342.GB68129>