aboutsummaryrefslogtreecommitdiffstats
path: root/research/guard.py
Commit message (Collapse)AuthorAgeFilesLines
* Run experiments under a memory guard, so they cannot freeze the Pieunhhu2026-10-021-0/+110
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.