Slow Samba
Hello friends,
I have a Gigabit network with few Windows and CentOS 7 machines and I
noticed that when copying files via Samba from:
Windows to Windows I can copy files with speed of +- 120 MBps (I think this is the max speed gigabit network can provide)
But when copying files from:
CentOS to CentOS I get only speeds of about 40 MBps
Windows to CentOS 40 MBps
CentOS to Windows 40 MBps
I tried to add these lines:
use sendfile = yes socket options = TCP_NODELAY IPTOS_LOWDELAY
to smb.conf file but got no speed improvement, (so I think they dont need to be there, do they?)
Please do you know what could be the issue? Is there some way to get full speed the network can provide?
P.S.: I had the same issue on 100 mbps network – Win to Win could copy 12
MBps but CentOS only 4 MBps.
Thank you very much for your time
Have a nice day
4 thoughts on - Slow Samba
Please ask this question on the Samba list. The probability of getting an answer is higher there.
samba@lists.samba.org
which Windows and which CentOS (6, 7) you are talking about?
how do you copy from CentOS to CentOS – SMB, too?
this seems to be, that SAMBA doesn’t support SMB v2 or v3
can you try the following test, to see if it is not a problem deeper …
can you get WinSCP … https://winscp.net/eng/download.php
(the Portable executables suits)
and connect with this from Windows to CentOS and try a file transfer here if it has nearly the same speed as with SAMBA, the problem is deeper if it is quite faster then the problem is SAMBA
Walter
Thank you very much, I will try these.
There are only CentOS 7 and Windows 10 machines on the network.
in case this doesn’t give any diagnostic, look for iperf on both sides, linux and windows, this tests the native network speed …
https://iperf.fr/