Ángel Ortega
@angel@triptico.com
OpenBSD Guide to Configuring Tor Relays:
https://torbsd.github.io/obsd-relays.html
Also applicable to other server software that need a lot of file descriptors for network connections or whatever.
Summary: increase the openfiles
value in /etc/login.conf
and the global kernel number with something like sysctl kern.maxfiles=20000
.