From 40595af59dc01c35c3d61681621d40a11be2c80a Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Thu, 16 May 2019 17:47:33 +0200 Subject: [PATCH] Bump up the reserved memory size The default is very low, and makes it difficult to do any other task on the same host. --- unbound.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unbound.sh b/unbound.sh index 4dc0fd1..65329ce 100755 --- a/unbound.sh +++ b/unbound.sh @@ -3,7 +3,7 @@ KEYS_DIR="/opt/dnscrypt-wrapper/etc/keys" ZONES_DIR="/opt/unbound/etc/unbound/zones" -reserved=12582912 +reserved=134217728 availableMemory=$((1024 * $( (grep -F MemAvailable /proc/meminfo || grep -F MemTotal /proc/meminfo) | sed 's/[^0-9]//g' ) )) if [ $availableMemory -le $((reserved * 2)) ]; then echo "Not enough memory" >&2