UP / HOME

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

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.

Andinus / 2021-03-05 / Modified: 2021-11-23 Tue 00:12 Emacs 27.2 (Org mode 9.4.4)