systemd cgroup delegation and control processes
summary
A simple patch adds a new unit directive that explicitly places control processes into a chosen delegated cgroup and lets the unit specify where its payload lives, so reload/exec commands stop creating sidecar wrapper cgroups; it flips the delegated subtree into threaded mode when needed to satisfy the internal-node constraint, handles mixed threaded/non-threaded controllers (CPUs vs memory), and lands as a systemd pull request that tests clean creation of the requested hierarchy.
AI-written summary · about
chapters (10)
- 0:00Introduction to cgroups
- 1:48Delegation concept explained
- 2:54Service processes hierarchy
- 6:36Internal node constraint issue
- 8:26Threaded vs non-threaded controllers
- 10:55Control process placement problems
- 12:00Proposed solution for delegation
- 14:05Example of user instance service
- 15:30Alternative approaches discussed
- 16:13Discussion and questions
related talks
45mLinux Kernel Control Group v2
01h 02mDiving deeper into control groups (cgroups) v2
48mBrave new world of unified cgroup hierarchy
57mAn introduction to control groups (cgroups) version 2
38mUnderstanding and Working with the Cgroups Interface
35mFuture-Proof Your Applications: Avoid Breakdowns With Cgroup Chan...
27mPostgreSQL container groups, aka cgroups down the road
31mSolving All the Problems with systemd
