Re: ext3 2.4.21 htree tests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jun 18, 2003  13:55 -0400, Theodore Ts'o wrote:
> The obvious thing to do is to do the tests with and without htree
> enabled, and compare the results.  For large files, the results should
> be painfully obvious.
> 
> This is the test I generally use for regression testing ext3:
> 
> #!/bin/sh
> dd if=/dev/zero of=test.img bs=8k count=30000
> mke2fs -j -F -b 1024 -g 1024 -N 1200000 test.img 
> tune2fs -O dir_index test.img
> mount -t ext3 -o loop test.img /mnt
> pushd /mnt
> mkdir test test2 test3
> cd test
> time seq -f "%06.0f" 1 100  | xargs touch
> cd ..
> cd test2
> time seq -f "%06.0f" 1 10000  | xargs touch
> cd ..
> cd test3
> time seq -f "%06.0f" 1 100000  | xargs touch
> cd ..
> popd
> umount /mnt

I think one of the earlier claims was that a test with 100 dirs x 1000 files
was faster than a single htree dir with 100,000 files.  Theoretically that
should not be the case (extra directory access overhead, etc), but maybe
in real life this is true.

Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/


_______________________________________________

Ext3-users@redhat.com
https://www.redhat.com/mailman/listinfo/ext3-users

[Index of Archives]         [Linux RAID]     [Kernel Development]     [Red Hat Install]     [Video 4 Linux]     [Postgresql]     [Fedora]     [Gimp]     [Yosemite News]

  Powered by Linux