Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Nov 2008 15:08:13 +0100
From:      Marc Fonvieille <blackend@freebsd.org>
To:        Raphael Becker <rabe@uugrn.org>
Cc:        svn-src-all@freebsd.org
Subject:   Re: svn commit: r184753 - head/usr.sbin/sysinstall
Message-ID:  <20081108140813.GA1039@gothic.blackend.org>
In-Reply-To: <20081108001032.GA21542@ma.sigsys.de>
References:  <200811072201.mA7M1VlX093904@svn.freebsd.org> <20081108001032.GA21542@ma.sigsys.de>

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

--vkogqOf2sHV7VnPd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Nov 08, 2008 at 01:10:32AM +0100, Raphael Becker wrote:
> On Fri, Nov 07, 2008 at 10:01:31PM +0000, Marc Fonvieille wrote:
> > +		  "This will give you ready access to over 19,000 ported software pa=
ckages,\n"
> > +		  "at a cost of around 445MB of disk space when \"clean\" and possib=
ly\n"
>=20
>=20
> I see around 700M here, my ports are configured "read-only", so all
> work/, packages/ distfiles/ and so on are outside /usr/ports, updates
> are done by cvsup:
>=20
> # df -mi /usr/ports/
> Filesystem 1M-blocks Used Avail Capacity iused  ifree %iused  Mounted on
> /dev/md0        1039  712   119    86%  129743 478895   21%   /usr/ports
>=20
> # du -sm /usr/ports/=20
> 713     /usr/ports/
>=20
> It heavily depends on inode-sizes.
>=20
> I have about 130k inodes in use which cause a "theoretical minimum"=20
> of 508MB disk on filesystems with 4k inode-density, about 1G with 8k
> inodes (default is 8k, see by newfs(8))
>=20
>  -i bytes
>    Specify the density of inodes in the file system.  The default is
>    to create an inode for every (4 * frag-size) bytes of data space.
>=20
>  -f frag-size
>    The fragment size of the file system in bytes.  It must be a
>    power of two ranging in value between blocksize/8 and blocksize.
>    The default is 2048 bytes.
>=20
>=20
> An uncompressed tarball (without the "inode-overhead") of=20
> /usr/ports/ is around 600MB here:
>=20
> # tar cf - /usr/ports/ | wc -c
> tar: Removing leading '/' from member names
>  629196800
>=20
> or 600MB.
>=20
> How did you measure / calculate 445MB?=20
>=20

If I do a csup after a rm -rf /usr/ports
I get 402M according to "du -sh", so if we add INDEXes we should be
close to 440M.

I used 445MB to be consistent with what we have in
http://www.freebsd.org/cgi/cvsweb.cgi/doc/share/sgml/freebsd.ent.diff?r1=3D=
1.100;r2=3D1.101

--=20
Marc

--vkogqOf2sHV7VnPd
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFJFZ1MzQ9RwE+OdOgRApJGAKCUjG0DQOoJ2g0h8tRZcNSEYxNA2ACeJTVF
ngi7ODM7A/FTr9H4PuuXaXA=
=daqS
-----END PGP SIGNATURE-----

--vkogqOf2sHV7VnPd--



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