socket options = SO_BROADCAST SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192 TCP_NODELAY IPTOS_LOWDELAY
It has been repeated "ad nauseam" that with modern kernels you shouldn't use "socket options" unless you know very well what you are doing and you have a very good reason for doing so.
Also, in my case I found that the following parameter had a big positive impact in performance:
/|use sendfile|/ = yes -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba