Thursday 21 July 2022

systemd-oomd issues on desktop

Hi,

When enabling systemd-oomd, you should include and enable uresourced which includes cgroupify. The effect of uresourced is to set minimum resources for the desktop to preserve responsiveness in the desktop environment; and the function of cgroupify is to split out sub-processes of certain programs, like web browsers, into their own cgroup. That way oomd can clobber just that sub-process/tab.


There is still a desire to give proper feedback to the user by some kind of notification, but this work isn't decided on in any of the desktop environments, i.e. what that notification would look like. But once that's settled then we could ask systemd-oomd developers for a dbus API, rather than parsing the system journald for oomd messages.

Thanks,

--
Chris Murphy