From: Hubertus F. <fr...@wa...> - 2004-10-03 12:21:09
|
Paul Jackson wrote: > Hubertus wrote: > >>CKRM could do so. We already provide the name space and the class >>hierarchy. > > > Just because two things have name spaces and hierarchies, doesn't > make them interchangeable. Name spaces and hierarchies are just > implementation mechanisms - many interesting, entirely unrelated, > solutions make use of them. > > What are the objects named, and what is the relation underlying > the hierarchy? These must match up. Object name relationships are established through the rcfs pathname. > > The objects named in cpusets are subsets of a systems CPUs and Memory > Nodes. The relation underlying the hierarchy is the subset relation on > these sets: if one cpuset node is a descendent of another, then its > CPUs and Memory Nodes are a subset of the others. Exactly, the controller will enforce that in the same way we enforce other attributes and shares. Example, we make sure that the sum of the share "guarantees" for all children does not exceed the total_guarantee (i.e. denominator) of the parent. Nothing prohibits the controller to enforce the set constraints you describe above and reject requests that are not valid. As I said before, ideally the controller would be the cpumem set guts and RCFS would be the API to it. That's what Andrew was asking for in case the requirement for this functionality can/is made. > > What is the corresponding statement for CKRM? > > For CKRM to subsume cpusets, there must be an injective map from the > above cpuset objects to CKRM objects, that preserves this subset > relation on cpusets. > See above. |