Re: [Pdns-users] CPU consumption of pdns_recursor

2021-04-06 Thread Remi Gacogne via Pdns-users
Hi, On 4/6/21 6:25 PM, Nejedlo, Mark via Pdns-users wrote: On Tuesday, April 6, 2021 10:04 AM, Remi Gacogne wrote: On 4/6/21 4:18 PM, Nejedlo, Mark via Pdns-users wrote: Would additional distributor threads really cause additional worker CPU usage? That could happen if they have to fight for

Re: [Pdns-users] CPU consumption of pdns_recursor

2021-04-06 Thread Nejedlo, Mark via Pdns-users
On Tuesday, April 6, 2021 10:04 AM, Remi Gacogne wrote: > On 4/6/21 4:18 PM, Nejedlo, Mark via Pdns-users wrote: > > Would additional distributor threads really cause additional worker > CPU usage? > > That could happen if they have to fight for the incoming socket. Do you > have reuseport=yes in

Re: [Pdns-users] CPU consumption of pdns_recursor

2021-04-06 Thread Otto Moerbeek via Pdns-users
On Tue, Apr 06, 2021 at 02:18:33PM +, Nejedlo, Mark via Pdns-users wrote: > Both 4.4/5 and proxy protocol were on my radar, but my priority was to > address the CPU usage. If there's performance gains to be had in upgrading, > I can certainly do that. Is 4.5GA likely to happen soon? expec

Re: [Pdns-users] CPU consumption of pdns_recursor

2021-04-06 Thread Remi Gacogne via Pdns-users
On 4/6/21 4:18 PM, Nejedlo, Mark via Pdns-users wrote: Would additional distributor threads really cause additional worker CPU usage? That could happen if they have to fight for the incoming socket. Do you have reuseport=yes in your configuration? Does the maintenance function block the wor

Re: [Pdns-users] CPU consumption of pdns_recursor

2021-04-06 Thread Nejedlo, Mark via Pdns-users
On Tuesday, April 6, 2021 3:32 AM, Remi Gacogne wrote: > On 4/6/21 8:35 AM, Otto Moerbeek via Pdns-users wrote: > > On Mon, Apr 05, 2021 at 05:30:11PM +, Nejedlo, Mark via Pdns-users > wrote: > > 2 distributior thread feels a bit overkill, 1 distributor thread > > should be able to feed 8 wor

Re: [Pdns-users] CPU consumption of pdns_recursor

2021-04-06 Thread Remi Gacogne via Pdns-users
Hi, On 4/6/21 8:35 AM, Otto Moerbeek via Pdns-users wrote: On Mon, Apr 05, 2021 at 05:30:11PM +, Nejedlo, Mark via Pdns-users wrote: Some thoughts: 2 distributior thread feels a bit overkill, 1 distributor thread should be able to feed 8 workers. Did you do measurements to come to this val

Re: [Pdns-users] CPU consumption of pdns_recursor

2021-04-05 Thread Otto Moerbeek via Pdns-users
On Mon, Apr 05, 2021 at 05:30:11PM +, Nejedlo, Mark via Pdns-users wrote: Some thoughts: 2 distributior thread feels a bit overkill, 1 distributor thread should be able to feed 8 workers. Did you do measurements to come to this value? Your maintenance function looks like it could run for a w

Re: [Pdns-users] CPU consumption of pdns_recursor

2021-04-05 Thread Nejedlo, Mark via Pdns-users
On Monday, April 5, 2021 10:05 AM, Otto Moerbeek Wrote: > On Mon, Apr 05, 2021 at 02:40:17PM +, Nejedlo, Mark via Pdns-users > wrote: > > > We recently replaced some Bind servers with PowerDNS recursor, and > > were rather surprised to see CPU usage essentially double for the same > > workload

Re: [Pdns-users] CPU consumption of pdns_recursor

2021-04-05 Thread Otto Moerbeek via Pdns-users
On Mon, Apr 05, 2021 at 02:40:17PM +, Nejedlo, Mark via Pdns-users wrote: > We recently replaced some Bind servers with PowerDNS recursor, and were > rather surprised to see CPU usage essentially double for the same workload. > My expectation was that the load would be more or less equivale

[Pdns-users] CPU consumption of pdns_recursor

2021-04-05 Thread Nejedlo, Mark via Pdns-users
We recently replaced some Bind servers with PowerDNS recursor, and were rather surprised to see CPU usage essentially double for the same workload. My expectation was that the load would be more or less equivalent between the two resolvers. It looks like the load is centered in the actual pdns