xfs
[Top] [All Lists]

Re: how to increase speed to iterate all file's name in a XFS , about mi

To: Dave Chinner <david@xxxxxxxxxxxxx>
Subject: Re: how to increase speed to iterate all file's name in a XFS , about million files.
From: hank peng <pengxihan@xxxxxxxxx>
Date: Wed, 29 Sep 2010 08:55:08 +0800
Cc: linux-xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=4sxi+ZVElM+nvAH2rcNegDO8sCCuB53yMoc4C1pZkvA=; b=s9nyPZ4/SLeeB/J0vUZ//d+bXuZDNj/cJlwn9Maujs82XZIPHOiJn0mZZboUvYzSk+ ykXRn9J4DMs6GKOI3LqE5zCZbyQpgZX8Cu6ar9r8A2kYHa5C23DgrC9F1NMxgR8w1zuR pW24JMiziZZUOzcXyHHLxcqs8Cc/tZTPywj18=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Sn0Yp68Ac7yKG/S07+qxuBuynZMRM5HCxXnJ9a6AFdwiHFPl7mVPyEMsDtfpuPbNb6 5mphinUpQcQF78BlSIC7/hM+/zLiahNn28uFowyxrWLU24BkAXOE700expKTYF7RUH8e dmTRA9yG7OdKpfGJhN0Dfu1PlXaN5YCyFPh20=
In-reply-to: <20100929004809.GI5665@dastard>
References: <AANLkTikd2Gf-=jimO-OvKb-66UquPkjfCN=+bx-3fhY-@xxxxxxxxxxxxxx> <20100929004809.GI5665@dastard>
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, file names information is scattered in whole
partition, right?
> Cheers,
>
> Dave.
> --
> Dave Chinner
> david@xxxxxxxxxxxxx
>



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

<Prev in Thread] Current Thread [Next in Thread>