| To: | hank peng <pengxihan@xxxxxxxxx> |
|---|---|
| Subject: | Re: how to increase speed to iterate all file's name in a XFS , about million files. |
| From: | Dave Chinner <david@xxxxxxxxxxxxx> |
| Date: | Wed, 29 Sep 2010 11:01:32 +1000 |
| Cc: | linux-xfs@xxxxxxxxxxx |
| In-reply-to: | <AANLkTimnxM_cqYAR6LK3foeZJ=sz5Xn7vm6uXeXHR_Ew@xxxxxxxxxxxxxx> |
| References: | <AANLkTikd2Gf-=jimO-OvKb-66UquPkjfCN=+bx-3fhY-@xxxxxxxxxxxxxx> <20100929004809.GI5665@dastard> <AANLkTimnxM_cqYAR6LK3foeZJ=sz5Xn7vm6uXeXHR_Ew@xxxxxxxxxxxxxx> |
| User-agent: | Mutt/1.5.20 (2009-06-14) |
On Wed, Sep 29, 2010 at 08:55:08AM +0800, hank peng wrote: > 2010/9/29 Dave Chinner <david@xxxxxxxxxxxxx>: > > On Wed, Sep 29, 2010 at 08:28:08AM +0800, hank peng wrote: > >> Hi: > >> I have a XFS file system which contains about million files in it. I > >> want to iterate all file's name using readdir function and I found > >> that a little time-consuming. > >> Anybody to suggest a way to increase its speed? > > > > In what way was it time consuming? IO bound? CPU bound? something > > else? > > > I think it is IO bound, Can you post the output of 'iostat -x -m 5' while the readdir is in progress so we can determine if that is true or not? > file names information is scattered in whole > partition, right? No, not usually. Cheers, Dave. -- Dave Chinner david@xxxxxxxxxxxxx |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: how to increase speed to iterate all file's name in a XFS , about million files., hank peng |
|---|---|
| Next by Date: | Re: [PATCH] xfs: reduce lock traffic on incore sb lock, Christoph Hellwig |
| Previous by Thread: | Re: how to increase speed to iterate all file's name in a XFS , about million files., hank peng |
| Next by Thread: | [XFS updates] XFS development tree branch, for-linus, updated. v2.6.34-20176-g92e22ad, xfs |
| Indexes: | [Date] [Thread] [Top] [All Lists] |