Hi, I have been thinking a little about cgconfig and in general libcgroup model of managing things. I think cgconfig just allows us to create a cgroup hierarchy and set initial values in groups and allows control over admin files. But it does not control anything about what runs inside these cgroups.
The only little help comes from cgrulesd where one can also define rules about what runs where in a separate config file. But there also only uid/gid rules are kind of more effective and the model of moving tasks around based on netlink socket message is racy. On top of this, the type of rules allowed are very limited and if one wanted more advance rules there is no framework as such. For example if one wanted to launch different virtual machines in different cgroups, there is no way to create rules for these virtual machines. Only libvirt knows about these and creates groups at run time. Anyway, the point is that I think that current libcgroup model is not complete. It only allows creation of persistent hierarchy but there is no good framework to define how processes/tasks are launched in those groups. Associated managers who are launching tasks/services are aware of what to launch where. For example libvirt creates its own groups, systemd creates its own groups for various seriveces and possibly for users too. So the question is what is more suitable model. Does it really make sense to try to have this centralized control. If yes, then the current model is not complete. May be it makes sense to let the cgroup control be with respective managers and they export some common interfaces/controls to allow tweaking the properties of the objects they are controling. (libvirt controlling virtual machines/containers, systemd controlling services/users) etc. Thoughts? Thanks Vivek ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel