public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* how to increase speed to iterate all file's name in a XFS , about million files.
@ 2010-09-29  0:28 hank peng
  2010-09-29  0:48 ` Dave Chinner
  0 siblings, 1 reply; 4+ messages in thread
From: hank peng @ 2010-09-29  0:28 UTC (permalink / raw)
  To: linux-xfs

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?

-- 
The simplest is not all best but the best is surely the simplest!

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: how to increase speed to iterate all file's name in a XFS , about million files.
  2010-09-29  0:28 how to increase speed to iterate all file's name in a XFS , about million files hank peng
@ 2010-09-29  0:48 ` Dave Chinner
  2010-09-29  0:55   ` hank peng
  0 siblings, 1 reply; 4+ messages in thread
From: Dave Chinner @ 2010-09-29  0:48 UTC (permalink / raw)
  To: hank peng; +Cc: linux-xfs

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?

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: how to increase speed to iterate all file's name in a XFS , about million files.
  2010-09-29  0:48 ` Dave Chinner
@ 2010-09-29  0:55   ` hank peng
  2010-09-29  1:01     ` Dave Chinner
  0 siblings, 1 reply; 4+ messages in thread
From: hank peng @ 2010-09-29  0:55 UTC (permalink / raw)
  To: Dave Chinner; +Cc: linux-xfs

2010/9/29 Dave Chinner <david@fromorbit.com>:
> 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, file names information is scattered in whole
partition, right?
> Cheers,
>
> Dave.
> --
> Dave Chinner
> david@fromorbit.com
>



-- 
The simplest is not all best but the best is surely the simplest!

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: how to increase speed to iterate all file's name in a XFS , about million files.
  2010-09-29  0:55   ` hank peng
@ 2010-09-29  1:01     ` Dave Chinner
  0 siblings, 0 replies; 4+ messages in thread
From: Dave Chinner @ 2010-09-29  1:01 UTC (permalink / raw)
  To: hank peng; +Cc: linux-xfs

On Wed, Sep 29, 2010 at 08:55:08AM +0800, hank peng wrote:
> 2010/9/29 Dave Chinner <david@fromorbit.com>:
> > 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@fromorbit.com

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-09-29  1:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-29  0:28 how to increase speed to iterate all file's name in a XFS , about million files hank peng
2010-09-29  0:48 ` Dave Chinner
2010-09-29  0:55   ` hank peng
2010-09-29  1:01     ` Dave Chinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox