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 for the OOM killer, and I'm having trouble figuring out how to do that.
The documentation at [systemd.scope(5)](https://www.freedesktop.org/software/systemd/man/latest/systemd.scope.html) says: > Use the OOMScoreAdjust= setting to configure whether processes of the unit > shall be considered preferred or less preferred candidates for process > termination by the Linux OOM killer logic. However, if I try to set OOMScoreAdjust for the scope unit (either using --property=OOMScoreAdjust= as an argument to systemd-run or passing it as a property in a call to StartTransientUnit via dbus), it gives an error indicating it's not a valid property. Is there a way to set the default OOM score adjustment for a cgroup associated with a scope unit? Or do I have to adjust the OOM score for each process in the cgroup individually? Thanks, Daniel Hast
