This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| linux:unbound [2018/03/25 07:19] – cbredi | linux:unbound [2019/12/16 05:33] (current) – cbredi | ||
|---|---|---|---|
| Line 20: | Line 20: | ||
| do-ip6: no # if IPv6 is not available | 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: | ||
| </ | </ | ||