unbound: Performance tweaks

This commit is contained in:
Erwin Boskma 2024-10-31 11:39:57 +01:00
parent f094b0a79d
commit 91c936b667
Signed by: erwin
SSH key fingerprint: SHA256:/Wk1WZdLg+vQHs3in9qq7PsIp8SMzwGSk/RLZ5zPuZk

View file

@ -56,11 +56,18 @@
# Set cache size. rrset-cache-size should be twice what msg-cache-size is
rrset-cache-size = "256m";
msg-cache-size = "128m";
msg-cache-slabs = 4;
msg-cache-slabs = 16;
rrset-cache-slabs = 16;
infra-cache-slabs = 16;
key-cache-slabs = 16;
# One thread should be sufficient, can be increased on beefy machines. In reality for most users running on
# small networks or on a single machine, it should be unnecessary to seek performance enhancement by increasing num-threads above 1.
num-threads = 2;
num-threads = 16;
# Increase number of queries per request and the number of ports
outgoing-range = 8192;
num-queries-per-thread = 4096;
# Leave sections that are not requested out of the response message
# Reduces response message significantly and may prevent TCP fallback