Improving Samba's performance on OpenBSD

A few months ago, I wrote about the Low throughput over LAN on Wi-Fi. I increased 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 sendspace.

# /etc/sysctl.conf
# 2 ** 17 = 131072

# /etc/samba/smb.conf

# put right after global
socket options = SO_SNDBUF=131072 SO_RCVBUF=65536

These changes fixed the issue.

Andinus / 2021-03-05 / Modified: 2021-03-05 Fri 14:19 Emacs 27.1 (Org mode 9.3)