Re: ext3 File System Performance Issue
- From: "LaBird" <wlcheung1975@xxxxxxxxx>
- Date: Sat, 24 Mar 2007 01:23:18 +0800
Hi Robert,
"Robert Redelmeier" <redelm@xxxxxxxxxxxxxxx> wrote:
Sounds a lot like a newspool. I can't imagine anyone
want a journal on that flood!
Let me put it this way: I would like to build my own swap, so that
it becomes larger in case the swap partition space is not enough.
Does mounting the FS with `noatime` improve things?"
It seems the "noatime" can help improve read performance but writes
are still the same. (removing files should be similar to writes, right?)
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.
However, when the files are removed in ascending/descending order
of their creation, the removal speed becomes much faster. Even a
"flip-flop" order of file removal (i.e, if files are created from 0, 1, 2,
...., 499999, I remove the files using the order 0, 250000, 1, 250001,
....) works better than random.
I believe this must relate to the data structure used by the ext3, but
I'm not sure the exact reason why.
-- Robert
Best Regards,
LaBird (Benny).
[Email: Remove all numerals to get the correct address.]
.
- Follow-Ups:
- Re: ext3 File System Performance Issue
- From: Robert Redelmeier
- Re: ext3 File System Performance Issue
- From:
- Re: ext3 File System Performance Issue
- References:
- ext3 File System Performance Issue
- From: LaBird
- Re: ext3 File System Performance Issue
- From: Robert Redelmeier
- ext3 File System Performance Issue
- Prev by Date: Re: Why would top show the processes are using swap when there is no swap space?
- Next by Date: Re: Why would top show the processes are using swap when there is no swap space?
- Previous by thread: Re: ext3 File System Performance Issue
- Next by thread: Re: ext3 File System Performance Issue
- Index(es):