Since queries incoming over TCP are now also using the packet
cache, there is now also one packet cache instance per distributor
thread. Each cache instance has a size of max-packetcache-entries
divided by (threads + distributor-threads).
past = now;
past.tv_sec -= 5;
if (last_prune < past) {
- t_packetCache->doPruneTo(g_maxPacketCacheEntries / g_numWorkerThreads);
+ t_packetCache->doPruneTo(g_maxPacketCacheEntries / (g_numWorkerThreads + g_numDistributorThreads));
time_t limit;
if(!((cleanCounter++)%40)) { // this is a full scan!
- Integer
- Default: 500000
-Maximum number of Packet Cache entries.
-This number will be divided by the number of worker threads to compute the number of entries per thread.
+Maximum number of Packet Cache entries. Each worker and each distributor thread has a packets cache instance.
+This number will be divided by the number of worker plus the number of distributor threads to compute the maximum number of entries per cache instance.
.. _setting-max-qperq:
- The :ref:`setting-minimum-ttl-override` and :ref:`setting-ecs-minimum-ttl-override` defaults have ben changed from 0 to 1.
- The :ref:`setting-spoof-nearmiss-max` default has been changed from 20 to 1.
- The :ref:`setting-dnssec` default has changed from ``process-no-validate`` to ``process``.
+- The meaning of the :ref:`setting-max-packetcache-entries` has changed: previously there was one packet cache instance per worker thread.
+ Since queries incoming over TCP are now also using the packet cache, there is now also one packet cache instance per distributor thread.
+ Each cache instance has a size of :ref:`setting-max-packetcache-entries` divided by (:ref:`setting-threads` + :ref:`setting-distributor-threads`).
Removed settings
^^^^^^^^^^^^^^^^