]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
docs: Document manual cgroup controller management for Delegate=yes
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 24 Apr 2025 20:53:01 +0000 (22:53 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 24 Apr 2025 23:42:24 +0000 (00:42 +0100)
This isn't immediately clear, so let's explicitly document this fact.

More context in https://github.com/systemd/systemd/issues/7355.

docs/CGROUP_DELEGATION.md

index 076d560e658220a1a92ea19349d987dae0b8705f..2151bca9217449f63a329aaaf7d85d82e80ca90c 100644 (file)
@@ -254,6 +254,12 @@ this is a requirement of threaded cgroups: either a cgroup and all its siblings
 are threaded or none –, but systemd expects it to be a regular cgroup. Thus you
 have to nest a second cgroup beneath it which then can be threaded.)
 
+Finally, if you turn on cgroup delegation with `Delegate=yes`, systemd will make
+the requested controllers available to your service or scope, but won't actually
+enable them. Currently you have to do that manually by writing to
+`cgroup.subtree_control` within your delegated cgroup (e.g. write `+memory` to
+enable the memory controller).
+
 ## Three Scenarios
 
 Let's say you write a container manager, and you wonder what to do regarding