>
>
> 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.
Should this be considered as a performance bug of
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 tha
> Is your find binary built with D_TYPE support?
>
> $ find --version
> find (GNU findutils) 4.6.0
> Copyright (C) 2015 Free Software Foundation, Inc.
> ...
> Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION
> FTS(FTS_CWDFD) CBO(level=2)
> ^^
$ find
On 01/24/2018 09:17 PM, Peng Yu wrote:
$ time find -maxdepth 1 -name '*.tsv' > /dev/null
real0m21.118s
user0m0.446s
sys0m0.577s
$ time find -name '*.tsv' > /dev/null
real0m21.277s
user0m0.454s
sys0m0.636s
$ time ./main.sh > /dev/null
real0m2.695s
user0m0.046s
s