This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:unbound [2017/04/02 06:37] – cbredi | linux:unbound [2019/12/16 05:33] (current) – cbredi | ||
---|---|---|---|
Line 18: | Line 18: | ||
prefetch-key: | prefetch-key: | ||
minimal-responses: | minimal-responses: | ||
- | do-ip6: no | + | do-ip6: no # if IPv6 is not available |
so-reuseport: | so-reuseport: | ||
+ | </ | ||
+ | |||
+ | |||
+ | Performance optimisation: | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | < | ||
+ | server: | ||
+ | # use all CPUs | ||
+ | num-threads: | ||
+ | |||
+ | # power of 2 close to num-threads | ||
+ | msg-cache-slabs: | ||
+ | rrset-cache-slabs: | ||
+ | infra-cache-slabs: | ||
+ | key-cache-slabs: | ||
+ | |||
+ | # more cache memory, rrset=msg*2 | ||
+ | rrset-cache-size: | ||
+ | msg-cache-size: | ||
+ | |||
+ | # more outgoing connections | ||
+ | # depends on number of cores: 1024/cores - 50 | ||
+ | outgoing-range: | ||
+ | |||
+ | # Larger socket buffer. | ||
+ | so-rcvbuf: 4m | ||
+ | so-sndbuf: 4m | ||
+ | |||
+ | # Faster UDP with multithreading (only on Linux). | ||
+ | so-reuseport: | ||
</ | </ |