[SLL] limit on number of files in a directory and hashed dir vs. flat dir file access time
Chuck Wolber
chuckw at quantumlinux.com
Wed Oct 31 21:20:45 PDT 2007
On Wed, 31 Oct 2007, Ana wrote:
> Here's an interesting thread on the topic.
>
> http://linux.derkeiler.com/Mailing-Lists/Fedora/2005-07/3279.html
I disagree with the premise of his test. You cannot use "ls" and "rm" in a
test like that because they index the entire contents of a directory
before they actually do anything useful. This subverts the tree nature of
ext3 directory parsing.
A better test is to simply create "n" files and then calculate the average
and standard deviation of the time to open and then close those files.
More information about the linux-list
mailing list