1
1
mirror of https://github.com/dnscrypt/dnscrypt-server-docker synced 2024-11-22 19:42:03 +01:00

Bump up the reserved memory size

The default is very low, and makes it difficult to do any other task on the
same host.
This commit is contained in:
Frank Denis 2019-05-16 17:47:33 +02:00
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