[systemd-devel] [PATCH 0/5] experimental basic unified cgroups work

Dimitri John Ledkov dimitri.j.ledkov at intel.com
Fri May 29 13:32:11 PDT 2015


This is initial basic experimental integration of unified cgroups
work. I've started this by adding compile time option to switch the
behaviour a little bit.

At the moment this does the following for the /sys/fs/cgroup/systemd
mountpoint:
 - instead of mounting name=systemd legacy cgroup
 - it mounts unified cgroup without any controller

And then it uses the cgroup.populated flag file for efficient inotify
based cgroup release notification.

The real great bit about this is that one can start hacking further on
this, without breaking one's system as the rest of the controller are
where they usually are.

There are a few minor tweaks that I'm spotting in this integration,
that I will follow up on, but for now enjoy, try out, and let me know
what you think.

Dimitri John Ledkov (5):
  cgroup-util: fix is_valid check to pass for unified cgroup hierchy.
  configure.ac: add option for experimental unified cgroup handling.
  core/mount-setup: Mount unified hierchy, instead of name=systemd, when
    compiled to do so.
  unified-cgroup: fix cg_pid_get_path() and cg_get_path().
  core/cgroup: Add cgroup.populated inotify watches, when available.

 configure.ac                | 11 ++++++
 src/core/cgroup.c           | 81 +++++++++++++++++++++++++++++++++++++++++++--
 src/core/manager.c          |  7 +++-
 src/core/manager.h          |  3 ++
 src/core/mount-setup.c      |  5 +++
 src/core/service.c          |  2 +-
 src/shared/cgroup-util.c    | 40 ++++++++++++++++++----
 src/shared/cgroup-util.h    |  6 ++--
 src/shared/def.h            |  4 +++
 src/test/test-cgroup-util.c | 21 +++++++++++-
 src/test/test-cgroup.c      | 12 +++----
 11 files changed, 172 insertions(+), 20 deletions(-)

-- 
2.1.4



More information about the systemd-devel mailing list