Bump up the reserved memory size

The default is very low, and makes it difficult to do any other task on the
same host.
pull/64/head
Frank Denis 5 years ago
parent 156345f0a9
commit 40595af59d

@ -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

Loading…
Cancel
Save