unbound: Performance tweaks
This commit is contained in:
parent
f094b0a79d
commit
91c936b667
1 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue