[systemd-devel] Relationship between cgroup hierarchy and slice names

Michal Koutný mkoutny at suse.com
Thu May 12 09:33:07 UTC 2022


On Wed, May 11, 2022 at 07:34:14PM -0400, Yeongjin Kwon <yeongjinkwon at gmail.com> wrote:
> I was trying to override the cgroup hierarchy for the units made by
> the KDE plasma desktop environment to better implement resource
> control of the desktop environment and applications.

Just for the reference, there's the draft [1].
Ideally, most DE processes would end up under the user@$UID.service
subtree (there's some indefinity around what should remain under the
initial session-*.scope).

> I thought that by having all of these units under one
> slice that was reserved for the desktop environment, it would be
> easier to add resource protections (memory, cpu, etc.) to the desktop
> environment as a whole.

I don't know how far KDE advanced with cgrouping but since it's still
WIP, you may not see all DE processes under their intended cgroups. You
may pursue this with KDE.

Also, if you have a use case that cannot be mapped to the structure in
[1], feel free to suggest a modification, it's in the git repo [2] ;-)

HTH,
Michal

[1] https://systemd.io/DESKTOP_ENVIRONMENTS/
[2] https://github.com/systemd/systemd/blob/main/docs/DESKTOP_ENVIRONMENTS.md


More information about the systemd-devel mailing list