chore: pin capped commands to one CPU core
CI / check (push) Failing after 29s
CI / tests-unit (push) Skipped
CI / tests-integration (push) Skipped
CI / tests-ui (push) Skipped
CI / tests-imaging-browsers (push) Skipped
CI / tests-quality (push) Skipped
CI / preflight (push) Skipped
CI / deploy (push) Skipped

This commit is contained in:
openhands committed 2026-10-23 14:23:24 +02:00
1 parent 4768b2b406
commit cf448d6ce9
1 file changed
+3 -3
+3 -3
View File
@@ -174,7 +174,7 @@ run_systemd() {
# expliciet: deze host heeft geen swap. # expliciet: deze host heeft geen swap.
local high=$((effective * 95 / 100)) local high=$((effective * 95 / 100))
echo "[mem-cap] systemd cgroup MemoryHigh=$((high / 1024 / 1024))MB MemoryMax=$((effective / 1024 / 1024))MB MemorySwapMax=0: $*" >&2 echo "[mem-cap] systemd cgroup MemoryHigh=$((high / 1024 / 1024))MB MemoryMax=$((effective / 1024 / 1024))MB MemorySwapMax=0: $*" >&2
exec "${systemd_cmd[@]}" -p "MemoryHigh=$high" -p "MemoryMax=$effective" -p "MemorySwapMax=0" "$@" exec "${systemd_cmd[@]}" -p "MemoryHigh=$high" -p "MemoryMax=$effective" -p "MemorySwapMax=0" -p "CPUAffinity=0" "$@"
} }
run_ulimit() { run_ulimit() {
@@ -186,7 +186,7 @@ run_ulimit() {
echo "[mem-cap] ulimit -v $virtual_kb werd geweigerd" >&2 echo "[mem-cap] ulimit -v $virtual_kb werd geweigerd" >&2
return 1 return 1
} }
exec "$@" exec taskset -c 0 "$@"
} }
run_refuse() { run_refuse() {
@@ -197,7 +197,7 @@ run_refuse() {
run_opted_out() { run_opted_out() {
echo "[mem-cap] WAARSCHUWING: plafond bewust uitgeschakeld, dit commando kan de machine laten OOM-killed worden: $*" >&2 echo "[mem-cap] WAARSCHUWING: plafond bewust uitgeschakeld, dit commando kan de machine laten OOM-killed worden: $*" >&2
exec "$@" exec taskset -c 0 "$@"
} }
case "$backend" in case "$backend" in