Re: ext2fs enhacement/fix [re: shrinking directories]

Jan Kara (jack@atrey.karlin.mff.cuni.cz)
Fri, 17 Jul 1998 18:56:58 +0200


> How about a simple utility, added to the ext2 utilities, that compacts
> directories that can be run periodically as the user wishes. By the way
This is of course possible but it's very hard (if not almost impossible)
to do it when filesystem is mounted...
> don't these ghost entries hamper performance, albeit possibly by a
> negligible amount. I would think that these ghost entries get processed
> along with the other entries whenever the directory is accessed. And if
> this utility is made other file system optimization options can be thrown
> in. Perhaps the directory entries can be sorted by their last access date
> as the directory is compacted so as to improve file access performance.
But keeping the directory sorted will cost you probably more than you gain.
And you have completely forgotten the dchache. So the used files will be
in it and so they won't be looked up on the disk..

Bye Honza.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html