using bzip2 to compress man-pages

Dag-Erling Smørgrav des at des.no
Wed Sep 28 02:31:11 PDT 2005


Mikhail Teterin <mi+mx at 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 == inode { next }
> { inode=$1; total++; if ($7 % 512 < $7*0.10) savings++ } END {print savings "
> out of " total}'
> 1200 out of 2694

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

DES
-- 
Dag-Erling Smørgrav - des at des.no



More information about the freebsd-current mailing list