Bug 14312 - very slow directory listing after 4.10.0 on macintosh
Summary: very slow directory listing after 4.10.0 on macintosh
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: File services (show other bugs)
Version: 4.10.0
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-04 20:27 UTC by cwseys
Modified: 2020-03-09 17:14 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cwseys 2020-03-04 20:27:50 UTC
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.
Comment 1 Ralph Böhme 2020-03-04 20:45:07 UTC
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.
Comment 2 cwseys 2020-03-04 20:53:25 UTC
Thanks! I may have a shot a git-bisecting, but I'm not sure if my compilation skills are up to the task.

C.
Comment 3 cwseys 2020-03-09 16:45:45 UTC
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
Comment 4 cwseys 2020-03-09 16:53:50 UTC
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