Re: [systemd-devel] Setting OOMScoreAdjust on scope unit

2025-11-02 Thread Mantas Mikulėnas
OOMScoreAdjust corresponds to a per-process parameter, not a cgroup parameter (it is set through /proc/PID/oom_score_adj and inherited by child processes). When creating a .service, systemd is always in charge of creating (forking/exec'ing) the process, but when creating a .scope, systemd only rec

[systemd-devel] Setting OOMScoreAdjust on scope unit

2025-11-02 Thread Daniel Hast
Hello, I'm trying to use systemd to manage memory limits for a group of processes. I can create a scope unit with memory limits, enable cgroup delegation, and move the processes into a sub-cgroup of the scope unit; that works fine. However, I'd also like to make the cgroup a preferred target fo