[Bugs] [Bug 1543072] Listing a directory that contains many directories takes to much time

bugzilla at redhat.com bugzilla at redhat.com
Wed Feb 14 11:32:36 UTC 2018


https://bugzilla.redhat.com/show_bug.cgi?id=1543072



--- Comment #6 from Marian Horban <mhorban at vidscale.com> ---
I can see that problem still can be reproduced when cache is clear by
restarting glusterfsd processes.

I've created 100000 empty files and 63000 directories inside 200_000_files_dirs
directory
First call for listing directories is very long:
>>> b = datetime.datetime.now(); l = volume.listdir('/200_000_files_dirs'); a = datetime.datetime.now(); print len(l);  print a-b;
163720
0:01:14.730083
>>> b = datetime.datetime.now(); l = volume.listdir('/200_000_files_dirs'); a = datetime.datetime.now(); print len(l);  print a-b;
163720
0:00:17.222857

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=BrVrWyA2cC&a=cc_unsubscribe


More information about the Bugs mailing list