svn commit: r184753 - head/usr.sbin/sysinstall

Marc Fonvieille blackend at freebsd.org
Sat Nov 8 06:18:46 PST 2008


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 packages,\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/ 
> 713     /usr/ports/
> 
> It heavily depends on inode-sizes.
> 
> I have about 130k inodes in use which cause a "theoretical minimum" 
> 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 
> /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? 
> 

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=1.100;r2=1.101

-- 
Marc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-all/attachments/20081108/3b5aad39/attachment.pgp


More information about the svn-src-all mailing list