Subject: Re: tuning TB RAID-backed filestore to reduce inode/superblock overhead
To: George Michaelson <ggm@apnic.net>
From: Bill Studenmund <wrstuden@netbsd.org>
List: current-users
Date: 09/15/2004 17:30:57
--mxv5cy4qt+RJ9ypb
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Sep 07, 2004 at 07:50:09AM +0100, David Laight wrote:
> On Tue, Sep 07, 2004 at 11:36:38AM +1000, George Michaelson wrote:
> >=20
> > Is there a HOWTO for BSD which explains what is 'reasonable' overhead t=
o work=20
> > towards in constructing a 1.5Tb filestore on RAID?
> >=20
> > A co-worker just complained the consumed space for 1.5tb looked to be 1=
00Gb and
> > that seems a very high overhead. -no tunefs, no newfs options, no RAID =
tuning. Out
> > of the box.

What criteria did the co-worker use to get that 100 GB? Depending on what=
=20
value s/he used, it might not be that far out of line. 100 GB / 1.5 TB =3D=
=3D=20
100 / (1.5 * 1024) =3D=3D 6.5%. We normally reserve 5% of the FS just for r=
oot=20
(subtracted out of the "Avail" number reported in df), so 6.5% is really=20
close.

> > Any simple guidance would be appreciated.
>=20
> The big overhead is the inodes, by default there is one inode for every
> 4 fragments (if not set by -i bytes-per-inode to newfs).
> With 1k fragments this is 1 inode for every 4k, FFSv1 inodes are 128
> bytes - so that is 1/32th of the disk space.  FFSv2 inodes are twice
> the size so will use 1/16th of the space.

Just for reference, that's 3.1% or 6.2% overhead for an inode
respectively.

Take care,

Bill

--mxv5cy4qt+RJ9ypb
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)

iD8DBQFBSN7BWz+3JHUci9cRAhQ5AKCF9x1yA0J8R2/mLVu7Apk+171rMQCfd4sm
O9Xv5T+FCtYoJX+SBZ+Z5Do=
=Jajf
-----END PGP SIGNATURE-----

--mxv5cy4qt+RJ9ypb--