Max Files Per Directory
Stephen Tweedie
sct at redhat.com
Mon Jul 18 14:06:59 UTC 2005
Hi,
On Sat, Jul 16, 2005 at 03:49:04PM -0400, Tony Nelson wrote:
> Still, the timings above support the idea that lots of files make adding
> and listing slow, and presumably opening a file would be like listing, so
> keeping the number of files per directory modest is probably a good idea.
> Maybe I'll try that experiment as well.
Make sure you're using "htree" directory indexing. For new
filesystems, that means using the "-O dir_index" option. For existing
filesystems, "tune2fs -O dir_index" then "e2fsck -fD" to index the
existing directories (do this offline, of course!).
--Stephen
More information about the fedora-list
mailing list