Hi list (and happy new year), I'm experiencing some troubles using Samba (4.1.17 debian version) over VPN. Basically we've following setup : PC === LAN ===> VPN (WAN) ==== LAN ===> Samba file Server Copying big (say > 1MiB) files from PC to Samba file server almost always ends up with a NT_STATUS_IO_TIMEOUT error (or "a network error occured" if trying to copy from a Windows box). It seems that Samba cannot cope with the fact that LAN speed is way higher than WAN one (thus filling buffers an not waiting for WAN link to consume them). Copying from PC to a Win2003 server on the same LAN as Samba runs smootly, Windows copy window indicates a copy speed matching the WAN link speed whereas when copying to samba it shows 1 or 2 seconds bursts then 30s at 0kb (waiting for WAN tramission). Tested on several Samba servers (oldest one is 3.0.24 (…)). Has anyone encountered this kind of issue ? Regards
Am 07.01.2016 um 11:58 schrieb Sébastien Le Ray:> Hi list (and happy new year), > > I'm experiencing some troubles using Samba (4.1.17 debian version) over > VPN. Basically we've following setup : > > PC === LAN ===> VPN (WAN) ==== LAN ===> Samba file Server > > Copying big (say > 1MiB) files from PC to Samba file server almost > always ends up with a NT_STATUS_IO_TIMEOUT error (or "a network error > occured" if trying to copy from a Windows box). > > It seems that Samba cannot cope with the fact that LAN speed is way > higher than WAN one (thus filling buffers an not waiting for WAN link to > consume them)/usr/sbin/ifconfig eth0 txqueuelen 100 ______________________________________________ ifcfg-eth0: ETHTOOL_OPTS="-K ${DEVICE} tso on lro off; -G ${DEVICE} rx 128 tx 128" ______________________________________________ sysctl.conf: net.core.rmem_max = 65536 net.core.wmem_max = 65536 net.core.rmem_default = 32768 net.core.wmem_default = 32768 net.ipv4.tcp_rmem = 4096 32768 65536 net.ipv4.tcp_wmem = 4096 32768 65536 net.ipv4.tcp_mem = 4096 32768 65536 net.ipv4.udp_mem = 4096 32768 65536 net.ipv4.tcp_moderate_rcvbuf = 1 net.ipv4.tcp_sack = 1 net.ipv4.tcp_dsack = 1 ______________________________________________ smb.conf: socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE max xmit = 32768 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: <http://lists.samba.org/pipermail/samba/attachments/20160107/942feed5/signature.sig>
Le 07/01/2016 12:22, Reindl Harald a écrit :> > /usr/sbin/ifconfig eth0 txqueuelen 100 > ______________________________________________ > > ifcfg-eth0: > > ETHTOOL_OPTS="-K ${DEVICE} tso on lro off; -G ${DEVICE} rx 128 tx 128" > ______________________________________________ > > sysctl.conf: > > net.core.rmem_max = 65536 > net.core.wmem_max = 65536 > net.core.rmem_default = 32768 > net.core.wmem_default = 32768 > net.ipv4.tcp_rmem = 4096 32768 65536 > net.ipv4.tcp_wmem = 4096 32768 65536 > net.ipv4.tcp_mem = 4096 32768 65536 > net.ipv4.udp_mem = 4096 32768 65536 > net.ipv4.tcp_moderate_rcvbuf = 1 > net.ipv4.tcp_sack = 1 > net.ipv4.tcp_dsack = 1 > ______________________________________________ > > smb.conf: > > socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE > max xmit = 32768If I understand all of these correctly, you're basically cutting down all TCP buffers to improve TCP session responsiveness (autotuning settings are already set to 1). Wouldn't this configuration sensibly decrease throughput for LAN users?
Le 07/01/2016 12:22, Reindl Harald a écrit :> > /usr/sbin/ifconfig eth0 txqueuelen 100 > ______________________________________________ > > ifcfg-eth0: > > ETHTOOL_OPTS="-K ${DEVICE} tso on lro off; -G ${DEVICE} rx 128 tx 128" > ______________________________________________ > > sysctl.conf: > > net.core.rmem_max = 65536 > net.core.wmem_max = 65536 > net.core.rmem_default = 32768 > net.core.wmem_default = 32768 > net.ipv4.tcp_rmem = 4096 32768 65536 > net.ipv4.tcp_wmem = 4096 32768 65536 > net.ipv4.tcp_mem = 4096 32768 65536 > net.ipv4.udp_mem = 4096 32768 65536 > net.ipv4.tcp_moderate_rcvbuf = 1 > net.ipv4.tcp_sack = 1 > net.ipv4.tcp_dsack = 1 > ______________________________________________ > > smb.conf: > > socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE > max xmit = 32768Hi, Just applied all these settings and restarted samba… No change. Any idea? Regards