<div dir="ltr">Hi Seth<div><br></div><div>The server is dedicated for this purpose hence the high number of threads</div><div><br></div><div>below configs are in place:</div><div><br></div><div>num-queries-per-thread: 4096</div><div>msg-cache-size: 10G</div><div>rrset-cache-size: 20G</div><div>key-cache-size: 1G</div><div><br></div><div>Thank you</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, Nov 26, 2025 at 3:34 AM Seth Van Buren <<a href="mailto:seth.vanburen@versent.com.au">seth.vanburen@versent.com.au</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div dir="ltr" style="font-family:Aptos,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Your thread should be equal to or lower than the number of slabs.</div>
<div dir="ltr" style="font-family:Aptos,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div dir="ltr" style="font-family:Aptos,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
The thread count seems extremely high, you should not need so many. You should set num-queries-per-thread. Try 16384</div>
<div dir="ltr" style="font-family:Aptos,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div dir="ltr" style="font-family:Aptos,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Can you also paste your memory settings and Cache settings?</div>
<div dir="ltr" style="font-family:Aptos,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div dir="ltr" style="font-family:Aptos,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div id="m_-6258058057312875180mail-editor-reference-message-container">
<div dir="ltr"></div>
<div style="text-align:left;padding:3pt 0in 0in;border-width:1pt medium medium;border-style:solid none none;border-color:rgb(181,196,223) currentcolor currentcolor;font-family:Aptos;font-size:12pt;color:black">
<b>From: </b>sir izake <<a href="mailto:sirizake@gmail.com" target="_blank">sirizake@gmail.com</a>><br>
<b>Date: </b>Tuesday, 25 November 2025 at 8:08 pm<br>
<b>To: </b>Seth Van Buren <<a href="mailto:seth.vanburen@versent.com.au" target="_blank">seth.vanburen@versent.com.au</a>><br>
<b>Cc: </b><a href="mailto:unbound-users@lists.nlnetlabs.nl" target="_blank">unbound-users@lists.nlnetlabs.nl</a> <<a href="mailto:unbound-users@lists.nlnetlabs.nl" target="_blank">unbound-users@lists.nlnetlabs.nl</a>><br>
<b>Subject: </b>Re: How to measure cache hit resolution time in unbound 1.24.1<br>
<br>
</div>
<div dir="ltr">Hi Seth</div>
<div dir="ltr"><br>
</div>
<div dir="ltr"> num-threads: 64</div>
<div dir="ltr">msg-cache-slabs: 32</div>
<div dir="ltr">rrset-cache-slabs: 32</div>
<div dir="ltr">infra-cache-slabs: 32</div>
<div dir="ltr">key-cache-slabs: 32</div>
<div dir="ltr">ratelimit-slabs: 32</div>
<div dir="ltr">ip-ratelimit-slabs: 32</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">The physical server is a dell 640 with specs below</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">hw.ncpu: 104</div>
<div dir="ltr">hw.model: Intel(R) Xeon(R) Gold 6230R CPU @ 2.10GHz</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">Thank you</div>
<div dir="ltr">Isaac </div>
<div dir="ltr"><br>
</div>
<div dir="ltr"><br>
</div>
<div dir="ltr" class="gmail_attr">On Tue, Nov 25, 2025 at 5:13 AM Seth Van Buren <<a href="mailto:seth.vanburen@versent.com.au" target="_blank">seth.vanburen@versent.com.au</a>> wrote:</div>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left:1px solid rgb(204,204,204)">
<div dir="ltr" class="gmail_quote" style="font-family:Aptos,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Home many cores/slabs are you using?</div>
<div dir="ltr" class="gmail_quote" style="font-family:Aptos,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div id="m_-6258058057312875180m_3615652848603398870mail-editor-reference-message-container">
<div style="text-align:left;padding:3pt 0in 0in;border-width:1pt medium medium;border-style:solid none none;border-color:rgb(181,196,223) currentcolor currentcolor;font-family:Aptos;font-size:12pt;color:black">
<b>From: </b>Unbound-users <<a href="mailto:unbound-users-bounces@lists.nlnetlabs.nl" target="_blank">unbound-users-bounces@lists.nlnetlabs.nl</a>> on behalf of sir izake via Unbound-users <<a href="mailto:unbound-users@lists.nlnetlabs.nl" target="_blank">unbound-users@lists.nlnetlabs.nl</a>><br>
<b>Date: </b>Tuesday, 25 November 2025 at 2:51 pm<br>
<b>To: </b><a href="mailto:unbound-users@lists.nlnetlabs.nl" target="_blank">unbound-users@lists.nlnetlabs.nl</a> <<a href="mailto:unbound-users@lists.nlnetlabs.nl" target="_blank">unbound-users@lists.nlnetlabs.nl</a>><br>
<b>Subject: </b>How to measure cache hit resolution time in unbound 1.24.1<br>
<br>
</div>
<div dir="ltr">Hi </div>
<div dir="ltr"><br>
</div>
<div dir="ltr">I have installed unbound 1.24.1 on FreeBSD 14.3 OS. My cache hit rate is 76% with over 20% coming through recursive replies.</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">The median time for recursive replies is 440ms while the avg is 520ms. </div>
<div dir="ltr"><br>
</div>
<div dir="ltr">This setup has been running for over 72hrs. I expect stats to improve but that is not happening.</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">Just wanted to find out if there is a way to measure the cache hit resolution time in a dashboard?</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">Can I do anything to improve cache hit ratio?</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">Can I also improve the recursive reply time?</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">I am using unbound_exporter to monitor stats in grafana</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">My configs have been adjusted as follows:</div>
<div dir="ltr">rrset-cache-size: 20G <br>
msg-cache-size: 10G <br>
cache-min-ttl: 1800</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">I am using the root hint files directly on the server for recursive lookup and not forwarding to any public resolver</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">Thank you </div>
<div dir="ltr"><br>
</div>
<div dir="ltr">Regards,</div>
<div dir="ltr">Isaac </div>
<div dir="ltr"><br>
</div>
<div dir="ltr"><br>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote></div>