Hi all, There is a big slowdown in listing a largish (?) directory on Macintosh beginning with Samba 4.10.0 . The directory has about 3860 files and 30 subdirectories . Below are the tested versions of Samba and the time needed to list on a Macintosh running Catalina 10.15.3 . samba 4.5.16: ~3 secs samba 4.9.5: ~3 secs samba 4.9.11: ~3 secs samba 4.9.18: ~3 secs samba 4.10.0: ~20 secs samba 4.10.13: ~20 secs samba 4.11.0: ~20 secs samba 4.11.5: ~20 secs Windows 10 is nearly instantaneous. It looks like whatever change was made was made to 4.10.x series and not backported to the 4.9.x series. Let me know if I can provide more info, Thanks for your work! Chad.
This seems strange, I have no idea what changes are causing this. As I don't have the time to look into this currently, either someone else is able or you may want to look into https://www.samba.org/samba/support/globalsupport.html.
Thanks! I may have a shot a git-bisecting, but I'm not sure if my compilation skills are up to the task. C.
Apparently the commit which causes a 5x slow down in listing the test directory on Macintosh is: 2021080a41d296e9ba8a648e10a418cfce6200ae is the first bad commit commit 2021080a41d296e9ba8a648e10a418cfce6200ae Author: Volker Lendecke <vl@samba.org> Date: Tue Feb 26 15:17:36 2019 +0100 passdb: Make [ug]id_to_sid use xid_to_sid Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Christof Schmitt <cs@samba.org> Bug: https://bugzilla.samba.org/show_bug.cgi?id=13813 (cherry picked from commit 40de67f1fcc46b7a64a7364c91dcedb474826d51) :040000 040000 c78fa2945380d72876b0197cc4f76ab4f3a9cf2a 23297fdd76f430ef613ad3e10fa8f249e1697986 M source3
Strangely, the bug fix which appears in the commit log also appears to have been backported to 4.9.7, but no slowdown apparent in the 4.9.x series
this doesn't seem to make any progress and there haven't been complaints about slow directory listings with fruit module enabled also.