Another daemon for managing control groups
Another daemon for managing control groups
Posted Jan 3, 2014 18:08 UTC (Fri) by aigarius (subscriber, #7329)In reply to: Another daemon for managing control groups by mezcalero
Parent article: Another daemon for managing control groups
Init systems have communicated with udev for startup for years before systemd came along. It is trivial and elegant - you start the udev and then start a service to mount/fsck all the filesystems. This service might do the work itself or just ask udev if its done the work - none of that matters to the init. Init only needs to know when the filesystems are ready for the start of launching of other services, which is communicated by the script exiting with exit code 0.
Init system does not have to include a cgroup manager to start services in their appropriate cgroups, you can trivially provide an equivalent of cgroups-launch wrapper that would communicate with a cgroups daemon and ensure that cgroup is switched before launching the secondary executable. Init system might provide a handy shorthand, for example that if a CGRoup option is specified for a service, then it will be launched via a cgroups-launch wrapper with the CGroup contents passed on to that launcher as a parameter. Trivial, decoupled, just as functional.
And cgroups daemon can trivially provide hooks for the udev to call when devices are added or removed in the usual way. There is no need to invent some tight coupling.
It seems that systemd developers not only "look at all that was before and found it lacking", but also at that point stopped looking and thinking outside the box that they put themselves into. Refusing cooperation with other projects and instead trying embrace-and-extend them is a huge red flag in free software communities. That never ends well.
      Posted Jan 3, 2014 18:44 UTC (Fri)
                               by Cyberax (✭ supporter ✭, #52523)
                              [Link] (2 responses)
       
In the new world order only ONE process will be able to create/modify cgroups. That's going to be a kernel requirement. 
This in turn requires cgroups management daemon to be constantly active. 
     
    
      Posted Jan 3, 2014 19:13 UTC (Fri)
                               by dlang (guest, #313)
                              [Link] (1 responses)
       
only for the short term until they figure out how to allow for wider access. (and even then the old way will remain for compatibility for a while) 
It also would't the only time some kernel developers have said that there was going to be a kernel requirement that they later back away from before enforcing it. 
so it's very possible that there will never be a kernel release that will require only having one process manage cgroups 
     
    
      Posted Jan 3, 2014 20:26 UTC (Fri)
                               by Cyberax (✭ supporter ✭, #52523)
                              [Link] 
       
And that's actually my sticking point with cgroups - I think that cgroups nesting and delegation is a must.  
>(and even then the old way will remain for compatibility for a while) 
 
     
    Another daemon for managing control groups
      
Another daemon for managing control groups
      
Another daemon for managing control groups
      
I haven't seen any indications of that.
Yeah, sure. Without any new features.
           