Re: boot cgroup questions
From: Paul Jackson
Date: Mon Apr 14 2008 - 14:39:37 EST
Max wrote:
> I mean you guys were talking about how wonderful
> and flexible cpusets are, but we cannot seem to use the flexibility because
> the apps are designed for a flat layout
No. Not flat. Not at all flat.
We routinely and normally have an interesting hierarchy of cpusets
below /dev/cpuset. However that hierarchy is determined by the
nesting of subsets of the nodes (CPUs and/or Memory) on the system.
These subsets of nodes in the /dev/cpuset hierarchy may well map
nicely into the subsets of CPUs that can receive a particular set
of IRQs, however that map is not bijective. Of particular interest
here, it's not injective, meaning that multiple cpusets might and
will commonly receive the same set of IRQs. You can force this map
to be injective by elaborating the cpuset hierarchy to reflect both
this new assignment of IRQs and the (CPU and/or Memory) node subset
hiearchy that it currently reflects, but that will break code that
was expecting the directory tree below /dev/cpuset to directly and
only reflect the node hierarchy.
In less mathematically obtuse wording, sure you can add more directory
layers below /dev/cpuset, to handle IRQ assignments, but that will
break code that was expecting the /dev/cpuset directory tree to only
reflect the nesting of (CPU and/or Memory) nodes.
--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <pj@xxxxxxx> 1.940.382.4214
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/