On Wed, 1 Nov 2006, Pavel Emelianov wrote: > > - Interaction of resource controllers, containers and cpusets > > - Should we support, for instance, creation of resource > > groups/containers under a cpuset? > > - Should we have different groupings for different resources? > > I propose to discuss this question as this is the most important > now from my point of view. > > I believe this can be done, but can't imagine how to use this... >
I think cpusets, as abstracted away from containers by Paul Menage, simply become a client of the container configfs. Cpusets would become more of a NUMA-type controller by default. Different groupings for different resources was already discussed. If we use the approach of a single-level "hierarchy" for process containers and then attach them each to a "node" of a controller, then the groupings have been achieved. It's possible to change the network controller of a container or move processes from container to container easily through the filesystem. > > - Support movement of all threads of a process from one group > > to another atomically? > > I propose such a solution: if a user asks to move /proc/<pid> > then move the whole task with threads. > If user asks to move /proc/<pid>/task/<tid> then move just > a single thread. > > What do you think? This seems to use my proposal of using procfs as an abstraction of process containers. I haven't looked at the implementation details, but it seems like the most appropriate place given what it currently supports. Naturally it should be an atomic move but I don't think it's the most important detail in terms of efficiency because moving threads should not be such a frequent occurrence anyway. This begs the question about how forks are handled for processes with regard to the various controllers that could be implemented and whether they should all be decendants of the parent container by default or have the option of spawning a new controller all together. This would be an attribute of controllers and not containers, however. David ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ ckrm-tech mailing list https://lists.sourceforge.net/lists/listinfo/ckrm-tech