From 40a81be49f78c3d1cc7ef322b175edc658399158 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 26 Dec 2021 12:41:01 +0100 Subject: vidhar: unbound: optimization --- hosts/vidhar/default.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/hosts/vidhar/default.nix b/hosts/vidhar/default.nix index 8f378e6f..568faac3 100644 --- a/hosts/vidhar/default.nix +++ b/hosts/vidhar/default.nix @@ -276,6 +276,21 @@ interface = ["127.0.0.1" "10.141.0.1" "::0"]; access-control = ["0.0.0.0/0 allow" "::/0 allow"]; root-hints = "${pkgs.dns-root-data}/root.hints"; + + num-threads = 12; + so-reuseport = true; + msg-cache-slabs = 16; + rrset-cache-slabs = 16; + infra-cache-slabs = 16; + key-cache-slabs = 16; + + rrset-cache-size = "100m"; + msg-cache-size = "50m"; + outgoing-range = 8192; + num-queries-per-thread = 4096; + + so-rcvbuf = "4m"; + so-sndbuf = "4m"; }; }; }; -- cgit v1.2.3