On Wed, 2005-11-16 at 11:00 -0800, Blair Z. wrote:
What are the performance characteristics of ext3 filesystems with and without
dir_index for small directories up to large ones?
Not sure on any benchmarks. I wouldn’t say “stunning” is a bad word to
use. Basically, instead of using lists for files it uses B-Trees, which
are the same tech that make reiserfs directories so damn fast.
Use hashed b-trees to speed up lookups in large directories.
How many files do you need in a directory before dir_index is worth it?
I don’t know. But if you have 4000 I’d say that’s a good place to
Right now all my filesystems do not have dir_index enabled, so it would require
some downtime to enable it.
Yeah, that’s the crappy part. In theory, you can enable it with
tune2fs, but in practice I’ve only gotten it with mke2fs. My tools when
implementing it were mostly from older debian distro though, this was
unheard of stuff when they were written.
gl! Let us know how you fare.