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 o8T0lE8c009197 for ; Tue, 28 Sep 2010 19:47:15 -0500 Received: from mail.internode.on.net (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id A9144B0143 for ; Tue, 28 Sep 2010 17:48:12 -0700 (PDT) Received: from mail.internode.on.net (bld-mail16.adl2.internode.on.net [150.101.137.101]) by cuda.sgi.com with ESMTP id XaHvD9UrCpCbi0Bl for ; Tue, 28 Sep 2010 17:48:12 -0700 (PDT) Date: Wed, 29 Sep 2010 10:48:09 +1000 From: Dave Chinner Subject: Re: how to increase speed to iterate all file's name in a XFS , about million files. Message-ID: <20100929004809.GI5665@dastard> References: 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: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