mirror of
https://github.com/dnscrypt/dnscrypt-server-docker
synced 2024-11-22 23:51:59 +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:
parent
156345f0a9
commit
40595af59d
@ -3,7 +3,7 @@
|
|||||||
KEYS_DIR="/opt/dnscrypt-wrapper/etc/keys"
|
KEYS_DIR="/opt/dnscrypt-wrapper/etc/keys"
|
||||||
ZONES_DIR="/opt/unbound/etc/unbound/zones"
|
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' ) ))
|
availableMemory=$((1024 * $( (grep -F MemAvailable /proc/meminfo || grep -F MemTotal /proc/meminfo) | sed 's/[^0-9]//g' ) ))
|
||||||
if [ $availableMemory -le $((reserved * 2)) ]; then
|
if [ $availableMemory -le $((reserved * 2)) ]; then
|
||||||
echo "Not enough memory" >&2
|
echo "Not enough memory" >&2
|
||||||
|
Loading…
Reference in New Issue
Block a user