core: make settings for unified cgroup hierarchy supersede the ones for legacy hierarchy (#4269)

System Internals / systemd - Tejun Heo [fb.com] - 14 October 2016 20:07 UTC

There are overlapping control group resource settings for the unified and legacy hierarchies. To help transition, the settings are translated back and forth. When both versions of a given setting are present, the one matching the cgroup hierarchy type in use is used. Unfortunately, this is more confusing to use and document than necessary because there is no clear static precedence.

Update the translation logic so that the settings for the unified hierarchy are always preferred. systemd.resource-control man page is updated to reflect the change and reorganized so that the deprecated settings are at the end in its own section.

7d862ab core: make settings for unified cgroup hierarchy supersede the ones for legacy hierarchy (#4269)
man/systemd.resource-control.xml | 325 +++++++++++++++++++-------------------
src/core/cgroup.c | 60 ++++---
2 files changed, 195 insertions(+), 190 deletions(-)

Upstream: github.com


  • Share