Post #1546573
2026-04-14 14:56 UTC
@regehr You could do the PSI monitoring in the front-end script/program instead of the build system, since the script itself should be lightweight. When the build manager starts what it thinks is gcc/clang/etc, the script can 'start' but sit sleeping and periodically checking for 'is PSI low enough to risk running this ...'.
I guess you could also make the front end script responsible for detecting OOM kills and re-running the underlying program, now that I think about it.
Replies (1)
-
@pkhuong@discuss.systems 2026-04-14 15:00
@cks @regehr grid style hard memory reservations + retry with a larger reservation on OOM :)