On Wed, 11.08.10 18:02, Paul Menage ([email protected]) wrote:

> 
> On Fri, Aug 6, 2010 at 3:57 AM, Lennart Poettering
> <[email protected]> wrote:
> >
> > Well, the release agent logic is ugly anyway. It would be much nicer if
> > cgroups would just send the release msgs via netlink, so that more than
> > just one application can be notified and we don't have to spawn
> > processes all the time.
> 
> It was just added for cpusets compatibility - I'm not sure that I'd
> expect to see getting much use, versus simply periodically polling
> cgroups to see if they're empty.

In systemd (in case you haven't heard: an init system with bells and
whistles currently being adopted in fedora) we rely on it for
synchronization. Every service we start gets its own cgroup named after
the service and we want to know when the cgroups run empty (and hence
the service and everything it spawned are gone). We currently use the
agents for that, and simply forward this to the D-Bus system bus, but my
stomach revolts every time I get reminded that each time a service exits
we spawn a little agent process just for that.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to