aboutsummaryrefslogtreecommitdiffstats
path: root/core/module-store.c
diff options
context:
space:
mode:
authoreunhhu <[email protected]>2026-10-02 06:15:08 +0100
committereunhhu <[email protected]>2026-10-02 06:15:08 +0100
commit28e51430cc860adc8d8f384d7662d85ab09dc5c7 (patch)
tree9e1c35aa00b515a50f11d4ca82a22efad95f1252 /core/module-store.c
parent8450156e98ee49484f3fadad791d5684f9576f8b (diff)
downloadpure-28e51430cc860adc8d8f384d7662d85ab09dc5c7.tar.gz
pure-28e51430cc860adc8d8f384d7662d85ab09dc5c7.zip
Run experiments under a memory guard, so they cannot freeze the Pi
The Pi has 8 GiB, zram swap and no OOM daemon, and the user's systemd holds no memory controller: a run that outgrows its memory has every program's code evicted before the kernel kills anything, and the machine stops answering. It was reset twice so (a run held 13 GiB of output it should have streamed). guard.py runs a command in a session of its own and kills the session when it holds more than --most MiB (3072) or the machine has less than --floor MiB available (1024, a tmpfs filled counts), and stops what it leaves running.
Diffstat (limited to 'core/module-store.c')
0 files changed, 0 insertions, 0 deletions