From f5f3bf4017a400d92c136d6c5ce8d3f4ab7f86fd Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 29 Jun 2019 17:55:11 +0200 Subject: [PATCH] Drop the caches before starting unbound This reduces memory pressure. --- unbound.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unbound.sh b/unbound.sh index f838cd0..bdfc982 100755 --- a/unbound.sh +++ b/unbound.sh @@ -99,4 +99,6 @@ fi mkdir -p /opt/unbound/etc/unbound/zones +echo 3 > /proc/sys/vm/drop_caches 2> /dev/null + exec /opt/unbound/sbin/unbound