Improving Samba's performance on OpenBSD
A few months ago, I wrote about the Low throughput over LAN on Wi-Fi. I
net.inet.divert.sendspace after reading Network Speed and
Performance Guide (OpenBSD) & How to Fix Slow Samba smbd on OpenBSD.
Those articles ask to change some other values too but as I don't really
understand what these values mean, I made minimal changes. Transfer
speeds were low only when sending the files so I just increased
# /etc/sysctl.conf # 2 ** 17 = 131072 net.inet.divert.sendspace=131072 net.inet6.divert.sendspace=131072
# /etc/samba/smb.conf [global] # put right after global socket options = SO_SNDBUF=131072 SO_RCVBUF=65536
These changes fixed the issue.