Re: [Pdns-users] pdns-recursor: Only two threads used when threads=4

2016-10-24 Thread Grace Wang
Thanks to Winfried and others for the response! It was indeed the pdns-distributes-queries config that did the trick. My query file was only 1 query, so all the queries were sent to one thread. I tried it with a query file with 500 queries, the load was distributed to all 12 threads evenly. The l

Re: [Pdns-users] pdns-recursor: Only two threads used when threads=4

2016-10-21 Thread abang
Hi Grace, Since 3.7.0, Recursor distributes queries to the threads itself. See https://doc.powerdns.com/md/recursor/settings/#pdns-distributes-queries Additional it hashes the queries with the goal to send the same query to the same thread. This improves the cache hit rate and thus the average

Re: [Pdns-users] pdns-recursor: Only two threads used when threads=4

2016-10-21 Thread Øystein Viggen
Grace Wang writes: >> I installed pdns-recursor 4.0.3 on a CentOS 6.5 box, that has 20 physical >> cores and 128G RAM. When I set the threads in /etc/pdns-recursor/ >> recursor.conf to be 4 or 12, then issued tons of queries (one query sent >> multiple times using multiple dnsperf instances simul

Re: [Pdns-users] pdns-recursor: Only two threads used when threads=4

2016-10-20 Thread Grace Wang
Sorry for not including a subject in the original post. On Thu, Oct 20, 2016 at 3:51 PM, Grace Wang wrote: > Hi There, > > I installed pdns-recursor 4.0.3 on a CentOS 6.5 box, that has 20 physical > cores and 128G RAM. When I set the threads in /etc/pdns-recursor/ > recursor.conf to be 4 or 12,