OpenBSD Performance
From NSMWiki
The following are sysctl values that help with network performance on OpenBSD. These values should be added to /etc/sysctl.conf so changes will not be lost on upon reboot.
Feel free to add more:
net.inet.tcp.recvspace=65535 net.inet.tcp.sendspace=65535 net.inet.ip.maxqueue=2048 kern.somaxconn=2048 net.bpf.bufsize=2097152 net.bpf.maxbufsize=4194304 net.inet.ip.portfirst=32768 net.inet.ip.portlast=49151 net.inet.ip.porthifirst=49152 net.inet.ip.porthilast=65535 kern.seminfo.semmni=1024 kern.seminfo.semmns=4096 kern.shminfo.shmmax=67018864 kern.shminfo.shmall=32768