bug-bash
[Top][All Lists]
Advanced

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

Performance issue of find function in Gluster File System


From: Zhao Li
Subject: Performance issue of find function in Gluster File System
Date: Wed, 16 Aug 2017 15:02:47 -0500

Hi,

I found there is a big difference of time performance between "ls" function
and "find" function in Gluster File System
<https://gluster.readthedocs.io/en/latest/Administrator%20Guide/GlusterFS%20Introduction/>.
Here is the minimal working example.

mkdir tmp
touch tmp/{000..300}.txt

time find ./ -path '*tmp*' -name '*.txt'> /dev/null
real 0m42.629s
user 0m0.675s
sys 0m1.438s

time ls tmp/*.txt > /dev/null
real 0m0.042s
user 0m0.003s
sys 0m0.003s

So I am wondering what C code you use for "ls" and "find" and how you
explain "*" in "ls" and "find" to lead to this big difference in Gluster
File System.

Thanks a lot.
Zhao


reply via email to

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