Unbound on FreeBSD 11, uses just one of 8 threads?

Viktor Dukhovni ietf-dane at dukhovni.org
Wed May 23 14:44:45 UTC 2018


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.





More information about the Unbound-users mailing list