6 lines
278 B
Bash
6 lines
278 B
Bash
#!/bin/sh
|
|
# Pause fetching new jobs when the shared host has less than 600 MiB available.
|
|
# This is admission control, not a reservation or cross-engine execution lock.
|
|
set -eu
|
|
awk '/^MemAvailable:/ { found=1; if ($2 < 614400) exit 1 } END { if (!found) exit 1 }' /proc/meminfo
|