On Tue, Nov 14, 2006 at 12:32:07AM +0100, Ihar `Philips` Filipau wrote: ... > As person throwing in the idea, I feel bit responsible. So here go my > results from my primitive script (bear with my bashism) on my plain > Debian/unstable with 123k files on 10GB partition with ext3, default > 8K block. > > Script to count small files: > -+- > #!/bin/bash > find / -xdev 2>/dev/null | wc -l > find / -xdev -\( $(seq -f '-size %gc -o' 1 63) -false -\) 2>/dev/null | wc > -l > find / -xdev -\( $(seq -f '-size %gc -o' 64 128) -false -\) 2>/dev/null | > wc -l > -+- > First line to find all files on root fs, second to find all files with > sizes 1-63 bytes, third - 64-128. (Param '-xdev' tells find to remain > on same fs to exclude proc/sys/tmp and so on) > > And on my system counts are: > -+- > 107313 > 8302 > 2618 > -+- On my system (Debian Etch, the / contains everything except /home): 581564 11280 10994 > This is 10.1% of all files - are small files under 128 bytes. (7.7% < 63 > bytes) This is 3.8% of all files < 128 bytes (1.9% < 63 bytes). Josef "Jeff" Sipek. -- A CRAY is the only computer that runs an endless loop in just 4 hours... - To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html