[Samba] Linux vs Windows SMB performance

Jerome Tournier jtournier at gmail.com
Fri Jul 7 17:50:26 UTC 2023


Hello,

I'm facing a performance issue I can't resolve.
I have a Samba server (4.15.13) acting as a file share to both Linux
(CentOS 7 mainly) and Windows 10 clients.

>From Linux client, I run a python script that will parse recursively one
directory of the share (os.scandir) and display the time needed to scan the
directory => 3s.
>From Windows client, the same script run in 11s.

I use the same python version (2.7) on both Linux and Windows.
I don't have any anti-virus, realtime software, ... that could impact
performances.

On Windows, if I make a NFS mount point, the script take 3s to run. Python
interpreter is then not in cause.

I try dozens of samba options (forcing SMB client version, ...) and
stopping all unneeded services on Windows and I was never able to go faster
than 11s.

Using Wireshark, I can see that almost all the time is used for SMB2
protocol (for Create, Find and GetInfo procedure).

May someone have any idea ?
-- 
Jérôme


More information about the samba mailing list