Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Sep 2005 11:31:05 +0200
From:      des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=)
To:        Mikhail Teterin <mi+mx@aldan.algebra.com>
Cc:        current@freebsd.org
Subject:   Re: using bzip2 to compress man-pages
Message-ID:  <863bnppmhy.fsf@xps.des.no>
In-Reply-To: <200509221652.54123.mi%2Bmx@aldan.algebra.com> (Mikhail Teterin's message of "Thu, 22 Sep 2005 16:52:53 -0400")
References:  <200509220446.j8M4kBPA019823@blue.virtual-estates.net> <20050922182104.GC990@galgenberg.net> <CF4FBAB7-791D-41E0-B59B-9D78C6E4381F@mac.com> <200509221652.54123.mi%2Bmx@aldan.algebra.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Mikhail Teterin <mi+mx@aldan.algebra.com> writes:
> One does not need to save the entire sector-size. Only the (size %
> sector_size), which currently pushes the file into an additional
> sector.

sectors are irrelevant.  what you need to look at is the block size,
which is 16k by default.

if your file system is nearly full (enough to switch the optimization
algorithm from time to space), ffs may start storing multiple files
per block, but never more than one per fragment, which is usually one
quarter of a block.

> % find /usr/share/man/ -name \*.gz -ls | sort -k 1 | awk '$1 =3D=3D inode=
 { next }
> { inode=3D$1; total++; if ($7 % 512 < $7*0.10) savings++ } END {print sav=
ings "
> out of " total}'
> 1200 out of 2694

% find /usr/share/man/ -name \*.gz -ls | sort -k 1 | awk '$1 =3D=3D inode {=
 next } \
 { inode=3D$1; total++; if ($7 % 16384 < $7*0.10) savings++ } \
 END {print savings " out of " total}'
6 out of 2788

DES
--=20
Dag-Erling Sm=F8rgrav - des@des.no




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