Skip to content

Commit c2ba4a2

Browse files
DaanDeMeyerbluca
authored andcommitted
docs: Document manual cgroup controller management for Delegate=yes
This isn't immediately clear, so let's explicitly document this fact. More context in systemd#7355.
1 parent d2502f5 commit c2ba4a2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/CGROUP_DELEGATION.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,12 @@ this is a requirement of threaded cgroups: either a cgroup and all its siblings
254254
are threaded or none –, but systemd expects it to be a regular cgroup. Thus you
255255
have to nest a second cgroup beneath it which then can be threaded.)
256256

257+
Finally, if you turn on cgroup delegation with `Delegate=yes`, systemd will make
258+
the requested controllers available to your service or scope, but won't actually
259+
enable them. Currently you have to do that manually by writing to
260+
`cgroup.subtree_control` within your delegated cgroup (e.g. write `+memory` to
261+
enable the memory controller).
262+
257263
## Three Scenarios
258264

259265
Let's say you write a container manager, and you wonder what to do regarding

0 commit comments

Comments
 (0)