[Samba] Samba over slow connections

Sébastien Le Ray sebastien-samba at orniz.org
Thu Jan 7 13:24:53 UTC 2016



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 = 32768

If 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?



More information about the samba mailing list