On 8/16/17 4:02 PM, Zhao Li wrote: > 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
These are not comparable commands. It might be worth your while to consider why and how the different commands operate. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/