- Joined
- Mar 6, 2014
- Messages
- 9,553
It seems like almost every website I've seen recommends various tweaks to the "socket options" parameter in Samba. Samba defaults to
Here are some common socket options websites recommend:
socket options = TCP_NODELAY
.Here are some common socket options websites recommend:
- TCP_NODELAY - disables Nagle's algorithm default in Samba.
- IPTOS_LOWDELAY, IPTOS_THROUGHPUT - sets the Type of Service (TOS) byte in the IPv4 header to 0x10 and 0x08. It is a layer 3 QOS option for IPv4 traffic. This means typical home users will see no benefit because their samba traffic will not be passing through routers.
- SO_SNDBUF, SO_RCVBUF - these modify the send and receive buffers. If you need to tune your send and receive buffers, you do it through tunables / allowing the FreeBSD kernel to automatically adjust appropriate send and receive buffers (after reading the relevant documentation). Tuning is - I believe -currently recommended for 10 gigabit networking. There are various posts regarding appropriate parameters, but I won't repeat here because they are (I believe) specific to certain 10 gigabit cards. That said, hard-coding buffer values in Samba is not a good way to do this.
Last edited: