On Wed, May 23, 2018 at 07:56:42AM +0200, W.C.A. Wijngaards wrote: > > I have 8 threads configured, anyone know why unbound would > > do all the work in just one thread? > > Previously people that asked this, had a usage that one thread could > satisfy. Perhaps the other cpu cores are running some other process.
Or it seems that on FreeBSD (and perhaps other BSDs) SO_REUSEPORT does not dispatch to multiple threads. One thread gets all the traffic. > It it the systems scheduler for delivering packets to the listening > network socket that determines which thread gets the content. > so-reuseport: yes reportedly improves distribution between threads on Linux. On FreeBSD it seems to cause all the traffic to go one thread. I turned it off, restarted unbound, and now all the threads are busy. The throughput has not however changed significantly. Perhaps as you say one thread is enough... -- Viktor.