[Samba] Third Try: Huge number of small files performance regression from 3.5.16 to 4.6.5 with identical smb.conf

awl1 awl1 at mnet-online.de
Fri Jul 14 19:09:46 UTC 2017


Am 14.07.2017 um 20:55 schrieb awl1 via samba:
> I will immediately also do another run with such a minimal smb.conf as 
> well (imprerssive!), and report back the result this gives in 
> Wireshark... ;-)
[global]
log file = /opt/samba/var/log/samba.%m
max log size = 50
log level = 1
case sensitive = true
default case = lower
preserve case = yes
short preserve case = yes
guest account = nobody
map to guest = Bad User
workgroup = WORKGROUP
netbios name = N4200PRO

I get the following Wireshark statistics for the "Write" 1000 files 
scenario with the above minimal config:

===========================================================================
SMB2 Service Response Time Statistics - new3:
Index  Procedure  Calls  Min SRT (s)  Max SRT (s)  Avg SRT (s)  Sum SRT (s)
---------------------------------------------------------------------------
SMB2
Close                    6   1925     0.000625     0.185844 0.005160 
9.932725
Create                   5   2161     0.001894     0.024120 0.007871 
17.008398
Find                    14   1646     0.001454     0.267518 0.050406 
82.968297
GetInfo                 16     16     0.001134     0.011041 0.002474 
0.039577
Ioctl                   11      1     0.000528     0.000528 0.000528 
0.000528
SetInfo                 17   2151     0.000765     0.006874 0.001174 
2.526085
Tree Connect             3      1     0.001610     0.001610 0.001610 
0.001610
Tree Disconnect          4      1     0.005401     0.005401 0.005401 
0.005401
Write                    9   1074     0.000570     0.092214 0.000931 
0.999563
---------------------------------------------------------------------------

which sums up to roundabout 122 secs and is surprisingly similar to the 
109 seconds from the edited/"optimised" lengthy config (about 10% 
difference from the tuning is not too bad!)...

But I hope we still can get closer to the 25 seconds I used to see with 
the old 3.5...

Many thanks so far & best regards
Andreas




More information about the samba mailing list