Elektrine lite

← Feed

@cks@mastodon.social

Post #1546547

2026-04-14 14:39 UTC

@whitequark @pmarheine @regehr @dotstdy @tedmielczarek It looks like there's no good support for this in systemd/cgroup right now. Systemd has an API for getting memory pressure information¹, but I don't know of any command line programs you can run to watch this and take action for subordinate processes. Cgroup(v2) can freeze an entire cgroup² by writing to cgroup.freeze, but again one would have to write tooling around this. ¹ https://systemd.io/MEMORY_PRESSURE/ ² https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v2.html

Replies (1)

  • @cks@mastodon.social 2026-04-14 14:45

    @whitequark @pmarheine @regehr @dotstdy @tedmielczarek I was hoping systemd would have a 'freeze this unit if there is memory pressure' or similar setting, but AFAIK there's nothing for that. (You can make something not start if there's too much memory pressure, but that doesn't help for 'I started 16 linkers when the memory pressure was low and now they're all making the memory pressure high'.) Oh well. Systemd doesn't do everything.

    Open ##1546548