From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id o8T10vCC009772 for ; Tue, 28 Sep 2010 20:00:57 -0500 Received: from mail.internode.on.net (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id C02FEB080D for ; Tue, 28 Sep 2010 18:01:55 -0700 (PDT) Received: from mail.internode.on.net (bld-mail17.adl2.internode.on.net [150.101.137.102]) by cuda.sgi.com with ESMTP id PAQ8YgrBeR2nHEe1 for ; Tue, 28 Sep 2010 18:01:55 -0700 (PDT) Date: Wed, 29 Sep 2010 11:01:32 +1000 From: Dave Chinner Subject: Re: how to increase speed to iterate all file's name in a XFS , about million files. Message-ID: <20100929010132.GJ5665@dastard> References: <20100929004809.GI5665@dastard> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: hank peng Cc: linux-xfs@oss.sgi.com On Wed, Sep 29, 2010 at 08:55:08AM +0800, hank peng wrote: > 2010/9/29 Dave Chinner : > > 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