Hi, we have network performance issues with Samba (Version 4.2.7-SerNet-RedHat-19.el6) on one of our servers. The maximum throughput from client to server is 110 MB/s (read/write) under Windows 7 x64 (single 10GE NIC). When using NFS on a different Linux workstation we're getting much higher rates, around 500-700 MB/s. I still can't find the problem. Setup server: CentOS 6.6 Samba 4.7.2 Mellanox 10GE NIC with LACP bonding local attached storage: XFS, 1,5 GB/s read/write [global] workgroup = ARRI server string = Samba Server Version %v netbios name = BARBARELLA log file = /var/log/samba/%m_%a_%R.log max log size = 50 log level = 1 security = ads realm = ARRI.DE encrypt passwords = Yes winbind enum users = Yes winbind enum groups = Yes winbind use default domain = Yes winbind nested groups = Yes winbind separator = + winbind offline logon = false idmap config * : backend = tdb idmap config * : range = 600-799 idmap config ARRI:backend = ad idmap config ARRI:range = 800-19999 idmap config ARRI:schema_mode = rfc2307 allow trusted domains = Yes server signing = mandatory client signing = mandatory client use spnego = Yes ntlm auth = Yes lanman auth = No preferred master = no printcap name = /etc/printcap load printers = no Do you have any suggestions? Kind regards, Martin -- Martin Markert Westendstr. 89 80339 München
On 03/02/16 03:27 PM, Martin Markert wrote:> Hi, > we have network performance issues with Samba (Version 4.2.7-SerNet-RedHat-19.el6) on one of our servers. The maximum throughput from client to server is 110 MB/s (read/write) under Windows 7 x64 (single 10GE NIC). When using NFS on a different Linux workstation we're getting much higher rates, around 500-700 MB/s. I still can't find the problem. > > Setup server: > CentOS 6.6 > Samba 4.7.2 > Mellanox 10GE NIC with LACP bonding > local attached storage: XFS, 1,5 GB/s read/write > > [global] > > workgroup = ARRI > server string = Samba Server Version %v > netbios name = BARBARELLA > > log file = /var/log/samba/%m_%a_%R.log > max log size = 50 > log level = 1 > > security = ads > realm = ARRI.DE > encrypt passwords = Yes > > winbind enum users = Yes > winbind enum groups = Yes > winbind use default domain = Yes > winbind nested groups = Yes > winbind separator = + > winbind offline logon = false > > idmap config * : backend = tdb > idmap config * : range = 600-799 > idmap config ARRI:backend = ad > idmap config ARRI:range = 800-19999 > idmap config ARRI:schema_mode = rfc2307 > > allow trusted domains = Yes > server signing = mandatory > client signing = mandatory > client use spnego = Yes > ntlm auth = Yes > lanman auth = No > > preferred master = no > > printcap name = /etc/printcap > load printers = no > > > Do you have any suggestions? > > Kind regards, > Martin > -- > Martin Markert > Westendstr. 89 > 80339 München > >I could hazard a guess that NFS is simply faster than CIFS. Still getting only 10% of the raw disk capability seems pretty bad. Would I be right in assuming the two different workstations are similar in terms of hardware? Also, have you considered the possibility that it might be a Windows 7 configuration problem?
Hi. Try add this to your config in global section. socket options = SO_KEEPALIVE TCP_NODELAY IPTOS_THROUGHPUT SO_RCVBUF=262140 SO_SNDBUF=262140 max xmit = 262140 stat cache = yes max stat cache size = 262140 server max protocol = SMB2_10 server min protocol = NT1 client min protocol = NT1 client max protocol = SMB2_10 getwd cache = yes read raw = yes write raw = yes level2 oplocks = yes locking = yes getwd cache = yes use sendfile = yes large readwrite = yes 2016-02-03 23:27 GMT+03:00 Martin Markert <martinmarkert at mac.com>:> Hi, > we have network performance issues with Samba (Version > 4.2.7-SerNet-RedHat-19.el6) on one of our servers. The maximum throughput > from client to server is 110 MB/s (read/write) under Windows 7 x64 (single > 10GE NIC). When using NFS on a different Linux workstation we're getting > much higher rates, around 500-700 MB/s. I still can't find the problem. > > Setup server: > CentOS 6.6 > Samba 4.7.2 > Mellanox 10GE NIC with LACP bonding > local attached storage: XFS, 1,5 GB/s read/write > > [global] > > workgroup = ARRI > server string = Samba Server Version %v > netbios name = BARBARELLA > > log file = /var/log/samba/%m_%a_%R.log > max log size = 50 > log level = 1 > > security = ads > realm = ARRI.DE > encrypt passwords = Yes > > winbind enum users = Yes > winbind enum groups = Yes > winbind use default domain = Yes > winbind nested groups = Yes > winbind separator = + > winbind offline logon = false > > idmap config * : backend = tdb > idmap config * : range = 600-799 > idmap config ARRI:backend = ad > idmap config ARRI:range = 800-19999 > idmap config ARRI:schema_mode = rfc2307 > > allow trusted domains = Yes > server signing = mandatory > client signing = mandatory > client use spnego = Yes > ntlm auth = Yes > lanman auth = No > > preferred master = no > > printcap name = /etc/printcap > load printers = no > > > Do you have any suggestions? > > Kind regards, > Martin > -- > Martin Markert > Westendstr. 89 > 80339 München > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >
On Wed, Feb 03, 2016 at 09:27:06PM +0100, Martin Markert wrote:> we have network performance issues with Samba (Version > 4.2.7-SerNet-RedHat-19.el6) on one of our servers. The maximum > throughput from client to server is 110 MB/s (read/write) under > Windows 7 x64 (single 10GE NIC). When using NFS on a different Linux > workstation we're getting much higher rates, around 500-700 MB/s. I > still can't find the problem.Client side: <https://technet.microsoft.com/en-us/library/ff625695%28v=ws.10%29.aspx?f=255&MSPPError=-2147217396> "SMB2 Client Disable Large MTU" Server side: enable aio (aio read size = 1,aio write size = 1). -Ralph -- SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen phone: +49-551-370000-0, fax: +49-551-370000-9 AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen http://www.sernet.de,mailto:kontakt at sernet.de
Le Wed, 03 Feb 2016 21:27:06 +0100 Martin Markert <martinmarkert at mac.com> écrivait:> Hi, > we have network performance issues with Samba (Version > 4.2.7-SerNet-RedHat-19.el6) on one of our servers. The maximum > throughput from client to server is 110 MB/s (read/write) under > Windows 7110MB/s is suspiciously close to throughput you'd get with a 1 GigE network. Are you sure your network is end to end 10G? I'll bet this is not the case, and that some routing or VLAN misconfiguration force your packets through some 1 Gig link. First try accessing the Samba server from some other machine (Linux, windows, whatever) on the same network switch. Modern Linux and Windows should reach about the same performance with Samba 4.x as NFS. -- ------------------------------------------------------------------------ Emmanuel Florac | Direction technique | Intellique | <eflorac at intellique.com> | +33 1 78 94 84 02 ------------------------------------------------------------------------
Le Wed, 3 Feb 2016 23:16:35 -0500 Gary Dale <garydale at torfree.net> écrivait:> I could hazard a guess that NFS is simply faster than CIFS.It is, but 10% slower or something like this. This is definitely some other problem. -- ------------------------------------------------------------------------ Emmanuel Florac | Direction technique | Intellique | <eflorac at intellique.com> | +33 1 78 94 84 02 ------------------------------------------------------------------------
On Thu, Feb 04, 2016 at 09:03:21AM +0300, Владимир Терентьев wrote:> Hi. Try add this to your config in global section. > > socket options = SO_KEEPALIVE TCP_NODELAY IPTOS_THROUGHPUT SO_RCVBUF=262140 > SO_SNDBUF=262140Sorry to step in, but SO_SNDBUF and SO_RCVBUF are almost always bad for performance, unless you know *EXACTLY* what you're doing at a packet level. A general advice on a mailing list without VERY close analysis of the network infrastructure and operating system behaviour is very unlikely to help improve performance. Volker -- SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen phone: +49-551-370000-0, fax: +49-551-370000-9 AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen http://www.sernet.de, mailto:kontakt at sernet.de