<div dir="ltr">Hello,<br> I've a question about pdns-recursor and its
settings. I've a pdns-recursor running with 4 threads. I'm trying to set
up the best performance setting and I'm confused about the
max-(packet)cache-entries settings. In the performance guide (<a href="http://doc.powerdns.com/html/recursor-performance.html" target="_blank">http://doc.powerdns.com/html/recursor-performance.html</a>) it is said that:<br>
<br>"Limit the size of the caches to a sensible value. Cache hit rate
does not improve meaningfully beyond 4 million max-cache-entries per
thread, reducing the memory footprint reduces CPU cache misses. See
below for more information about the various caches. "<br>
<br>Does it mean if I want 4 million `max-cache-entries` per thread with
4 threads running I've to set `max-cache-entries` to 4000000 (4M) or
16000000 (16M)?<br><br>How can I interpret these example settings with `threads` set to 4?<br>
a) max-cache-entries = 4000000<br>b) max-packetcache-entries = 1000000<br><br>Means:<br>a) Each thread will have the limit of 4000000 entries or 1000000 entries?<br>b) Each thread will have the limit of 1000000 entries or 250000 entries?<br>
<br>I've studied the documentation and I can't find an answer to my
question. Please answer if You are absolutely sure how those settings
behave. <br><br>If anyone have experience in setting the
threads/max-(packet)cache entries for busy DNS environment and would
like to share his settings with stating average qps from hosts will be
appreciated. Best Regards.</div>