[prev in list] [next in list] [prev in thread] [next in thread]
List: unbound-users
Subject: Re: Unbound on FreeBSD 11, uses just one of 8 threads?
From: Viktor Dukhovni via Unbound-users <unbound-users () unbound ! net>
Date: 2018-05-23 14:44:45
Message-ID: 20180523144444.GA3322 () mournblade ! imrryr ! org
[Download RAW message or body]
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.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic