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

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

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

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 pack=
ages,\n"
> +		  "at a cost of around 445MB of disk space when \"clean\" and possibly=
\n"


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:

# 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

# du -sm /usr/ports/=20
713     /usr/ports/

It heavily depends on inode-sizes.

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

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

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


An uncompressed tarball (without the "inode-overhead") of=20
/usr/ports/ is around 600MB here:

# tar cf - /usr/ports/ | wc -c
tar: Removing leading '/' from member names
 629196800

or 600MB.

How did you measure / calculate 445MB?=20

Regards
Raphael

--=20
Raphael Becker          <rabe@uugrn.org>          http://rabe.uugrn.org/
GnuPG:                E7B2 1D66 3AF2 EDC7 9828  6D7A 9CDA 3E7B 10CA 9F2D
=2E........|.........|.........|.........|.........|.........|.........|..

--TB36FDmn/VVEgNH/
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFJFNj4nNo+exDKny0RAnqfAJ0Xuw3sQImr/6wt0DgRSE0JXZEcSwCgtB0H
jChT/EgDsJwV/rrljAGqMYw=
=Cuw9
-----END PGP SIGNATURE-----

--TB36FDmn/VVEgNH/--



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