coreutils
[Top][All Lists]
Advanced

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

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


From: Peng Yu
Subject: Why is `find -name '*.txt'` much slower than '*.txt' on glusterfs?
Date: Fri, 19 Jan 2018 22:26:54 -0600

Hi,

There are ~7000 .txt files in a directory on glusterfs. Here are the
run time of the following two commands. Does anybody know why the find
command is much slower than *.txt. Is there a way to change the api
that `find` uses to search files so that it can be more friendly to
glusterfs?

$ time echo *.txt > /dev/null

real    0m2.206s
user    0m0.039s
sys     0m0.056s
$ time find -name '*.txt' > /dev/null

real    0m18.558s
user    0m0.317s
sys     0m0.663s

-- 
Regards,
Peng



reply via email to

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