From 93cae8ceb560ad7cd0c01a389fe1a8d7d1d0252c Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 26 Oct 2019 22:22:46 +0200 Subject: [PATCH] Bump the encrypted-dns cache up --- encrypted-dns.toml.in | 2 +- unbound.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/encrypted-dns.toml.in b/encrypted-dns.toml.in index 17d1f58..440b33b 100644 --- a/encrypted-dns.toml.in +++ b/encrypted-dns.toml.in @@ -58,7 +58,7 @@ tcp_max_active_connections = 100 ## Built-in DNS cache capacity -cache_capacity = 50000 +cache_capacity = 150000 ## DNS cache: minimum TTL diff --git a/unbound.sh b/unbound.sh index 4249652..a33b996 100755 --- a/unbound.sh +++ b/unbound.sh @@ -10,7 +10,7 @@ if [ $availableMemory -le $((reserved * 2)) ]; then exit 1 fi availableMemory=$((availableMemory - reserved)) -msg_cache_size=$((availableMemory / 3)) +msg_cache_size=$((availableMemory / 4)) rr_cache_size=$((availableMemory / 3)) nproc=$(nproc) if [ "$nproc" -gt 1 ]; then