fix: 🐛 Fix edgecase where cgroup memory limit would not be set
This commit is contained in:
parent
26f32ca33a
commit
59b40388e9
@ -13,6 +13,10 @@ else
|
||||
MEMLIMIT=$(grep MemTotal /proc/meminfo | awk '{print $2 * 1024}')
|
||||
fi
|
||||
|
||||
if ! [[ "$MEMLIMIT" =~ ^[0-9]+$ ]]; then
|
||||
MEMLIMIT=$MEMSIZE
|
||||
fi
|
||||
|
||||
MEMLIMIT=$((MEMLIMIT<MEMSIZE ? MEMLIMIT : MEMSIZE))
|
||||
|
||||
MEMOFFSET_THRESH=4294967296
|
||||
|
Loading…
x
Reference in New Issue
Block a user