[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why is `find -name '*.txt'` much slower than '*.txt' on glusterfs?

From: Bernhard Voelker
Subject: Re: Why is `find -name '*.txt'` much slower than '*.txt' on glusterfs?
Date: Sat, 27 Jan 2018 17:48:09 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2

On 01/27/2018 05:39 PM, Peng Yu wrote:
Here is the first 100 lines of the output of running `strace -ve
getdents find -maxdepth 1 -name '*.tsv'`.

glusterfs doesn't provide D_TYPE information:

getdents(4, {{d_ino=10054722685526780333, ..., d_type=DT_UNKNOWN} ...

Nevertheless, it is strange that find calls newfstatat() also
in the case of "-maxdepth 1" - it shouldn't need to.

Have a nice day,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]