<div dir="ltr">I'm seeing a behavior that I'm not sure is normal or I don't really understood the meaning of cache-chunks.<div><br></div><div>Using multi-threads, is recommended to use the same number of chunks, based on my tests, each chunk has is own cache for TTL and requests.</div>
<div><br></div><div>So, if I want to store cache only, I would need to use only one chunk of cache. Is that correct?</div><div><br></div><div>In a multi-resolver scenario, I do like to put one unbound in front of backend unbounds to cache de queries, but that would make him very requested, that's why I searched about thread vs fork mode and was thinking about using fork(even requiring more hardware, that's for the best performance).</div>
<div><br></div><div>But I think I'm missing something, my configuration is basically: </div><div><br></div><div>E5405 8xCPU 2.00 Ghz</div><div>8 GB RAM</div><div><br></div><div><div>server:</div><div><span class="" style="white-space:pre">        </span>verbosity: 1</div>
<div><span class="" style="white-space:pre">    </span>num-threads: 1</div><div>        msg-cache-slabs: 1</div><div>        rrset-cache-slabs: 1</div><div>        infra-cache-slabs: 1</div><div>        key-cache-slabs: 1</div>
<div><span class="" style="white-space:pre">    </span>outgoing-range: 8192</div><div><span class="" style="white-space:pre">       </span>num-queries-per-thread: 1024</div><div><span class="" style="white-space:pre">       </span>rrset-cache-size: 2g</div>
<div><span class="" style="white-space:pre">    </span>msg-cache-size: 1g</div><div><span class="" style="white-space:pre"> </span>key-cache-size: 1g</div><div><span class="" style="white-space:pre"> </span>neg-cache-size: 2g</div>
<div><span class="" style="white-space:pre">    </span>cache-min-ttl: 7200</div><div><span class="" style="white-space:pre">        </span>cache-max-ttl: 86400</div><div><span class="" style="white-space:pre">       </span>infra-host-ttl: 3600</div>
<div><span class="" style="white-space:pre">    </span>infra-cache-slabs: 8</div><div><span class="" style="white-space:pre">       </span>infra-cache-numhosts: 100000</div><div><span class="" style="white-space:pre">       </span>port: 53<br>
</div><div><span class="" style="white-space:pre">        </span>do-ip4: yes</div><div><span class="" style="white-space:pre">        </span>do-ip6: no</div><div><span class="" style="white-space:pre"> </span>do-udp: yes</div><div><span class="" style="white-space:pre">        </span>do-tcp: yes</div>
<div><span class="" style="white-space:pre">    </span>access-control: <a href="http://127.0.0.0/8">127.0.0.0/8</a> allow<br></div><div><span class="" style="white-space:pre"> </span>username: "unbound"</div><div><span class="" style="white-space:pre">      </span>directory: "/etc/unbound"</div>
<div><span class="" style="white-space:pre">    </span>logfile: "logs/unbound.log"</div><div><span class="" style="white-space:pre">      </span>use-syslog: no</div><div><span class="" style="white-space:pre">     </span>log-queries: no</div>
<div><span class="" style="white-space:pre">    </span>pidfile: "/var/run/unbound.pid"</div><div><span class="" style="white-space:pre">  </span>hide-identity: yes</div><div><span class="" style="white-space:pre"> </span>hide-version: yes</div>
<div><span class="" style="white-space:pre">    </span>identity: ""</div><div><span class="" style="white-space:pre">     </span>version: ""</div><div><span class="" style="white-space:pre">      </span>harden-short-bufsize: no</div>
<div><span class="" style="white-space:pre">    </span>harden-large-queries: no</div><div><span class="" style="white-space:pre">   </span>harden-glue: yes</div><div><span class="" style="white-space:pre">   </span>harden-dnssec-stripped: yes</div>
<div><span class="" style="white-space:pre">    </span>harden-below-nxdomain: no</div><div><span class="" style="white-space:pre">  </span>harden-referral-path: no</div><div><span class="" style="white-space:pre">   </span>use-caps-for-id: yes</div>
<div><span class="" style="white-space:pre">    </span>prefetch: yes</div><div><span class="" style="white-space:pre">      </span>prefetch-key: yes</div><div><span class="" style="white-space:pre">  </span>rrset-roundrobin: yes</div>
<div><span class="" style="white-space:pre">    </span>minimal-responses: yes</div><div><span class="" style="white-space:pre">     </span>include: "/etc/unbound/local-zone.conf"</div><div>python:</div><div>remote-control:</div>
<div><span class="" style="white-space:pre">    </span>control-enable: yes</div><div><span class="" style="white-space:pre">        </span>control-interface: 127.0.0.1</div></div><div><div><br></div><div><br></div><div><br></div>-- <br>
[ ]'s<br><br>Filipe Cifali Stangler<br>
</div></div>