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.noReceived on Wed Sep 28 2005 - 07:31:11 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:44 UTC