[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cgmanager-devel
Subject:    [cgmanager-devel] [cgmanager/cgmanager] 742314: implement release-on-empty
From:       noreply () github ! com (GitHub)
Date:       2014-03-29 5:06:01
Message-ID: 533654b9c21fb_6b0c4ffd4426953 () hookshot-fe2-cp1-prd ! iad ! github ! net ! mail
[Download RAW message or body]

  Branch: refs/heads/master
  Home:   https://github.com/cgmanager/cgmanager
  Commit: 7423145d9e26a0b637c6c3e1f1bdf661c7981470
      https://github.com/cgmanager/cgmanager/commit/7423145d9e26a0b637c6c3e1f1bdf661c7981470
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2014-03-29 (Sat, 29 Mar 2014)

  Changed paths:
    M .gitignore
    M Makefile.am
    A acinclude.m4
    M cgm
    A cgm-release-agent.c
    M cgmanager-proxy.c
    M cgmanager.c
    M configure.ac
    M frontend.c
    M frontend.h
    M fs.c
    M fs.h
    M org.linuxcontainers.cgmanager.xml
    A tests/test21.sh

  Log Message:
  -----------
  implement release-on-empty

The new kernel mechanism for automatic removal of empty cgroups
is not yet available, therefore this uses the original
release-agent feature.  The release-agent is only told the
cgroup name being deleted, not the controller.

Cgmanager installs a program cgm-release-agent into /sbin.  It
then symlinks that to cgm-release-agent.$controller under
/run/cgmanager/agents and registers each symlink with the
related controller.  The RemoveOnEmpty dbus call causes 1 to
be written to the notify-on-release file for the specified
cgroup, so that when it becomes empty the
cgm-release-agent.$controller will be called.

As a part of this the mounting of subsystems is broken up into
collecting the subsystems, then setting release agents, and
finally mounting the subsystems into our private namespace.

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic