User Tools

Site Tools


linux:unbound

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux:unbound [2017/04/02 06:37]
cbredi
linux:unbound [2019/12/16 05:33]
cbredi
Line 18: Line 18:
   prefetch-key:​ yes   prefetch-key:​ yes
   minimal-responses:​ yes   minimal-responses:​ yes
-  do-ip6: no+  do-ip6: no # if IPv6 is not available
   so-reuseport:​ yes   so-reuseport:​ yes
 +</​code>​
 +
 +
 +Performance optimisation:​
 +
 +[[https://​nlnetlabs.nl/​documentation/​unbound/​howto-optimise/​]]
 +
 +<​code>​
 +server:
 +    # use all CPUs
 +    num-threads:​ <number of cores>
 +
 +    # power of 2 close to num-threads
 +    msg-cache-slabs:​ <​same>​
 +    rrset-cache-slabs:​ <​same>​
 +    infra-cache-slabs:​ <​same>​
 +    key-cache-slabs:​ <​same>​
 +
 +    # more cache memory, rrset=msg*2
 +    rrset-cache-size:​ 100m
 +    msg-cache-size:​ 50m
 +
 +    # more outgoing connections
 +    # depends on number of cores: 1024/cores - 50
 +    outgoing-range:​ 950
 +
 +    # Larger socket buffer. ​ OS may need config.
 +    so-rcvbuf: 4m
 +    so-sndbuf: 4m
 +
 +    # Faster UDP with multithreading (only on Linux).
 +    so-reuseport:​ yes
 </​code>​ </​code>​
linux/unbound.txt ยท Last modified: 2019/12/16 05:33 by cbredi