Re: ext3 File System Performance Issue



LaBird <wlcheung1975@xxxxxxxxx> wrote in part:
It seems the "noatime" can help improve read performance but writes
are still the same. (removing files should be similar to writes, right?)

NOATIME saves updating directory/file access times.

I've just done a little experiment: I intentionally generate 500K files
in the /tmp directory and then try to remove them *randomly*.
I found that the removal is extremely slow, until the number of files
drops below 20K. So I believe this is the "threshold" number.

Whoa nellie! 500K is one fsck of a lot of filenames in any one
directory. Mutiple levels of indirect blocks will be required,
and you cannot expect FS performace to be optimized for this case.

-- Robert


.