> > Yup - it's asking for load balancing over that set. That is why it is
It doesn't prohibit load balancing just because sched_load_balance is 0.
Only if there are no overlapping cpusets still needing balancing does it
prohibit balancing when 0.
Yeah -- cpusets are hierarchical. And some of the use cases for
which cpusets are designed are hierarchical.
Changing cpusets from single root to multiple roots would be
bastardizing it.
My proposed sched_load_balance API is already quite capable of
representing what you see the need for - hard partitioning. It is also
quite capable of representing some other situations, such as I've
described in other replies, that you don't seem to see the need for.
To repeat myself, in some cases, such as batch schedulers running in a
subset of the CPUs on a large system, the code that knows some of the
needs for load balancing does not have system wide control to mandate
hard partitioning. The batch scheduler can state where it is depending
on load balancing being present, and the system administrator can choose
or not to turn off load balancing in the top cpuset, thereby granting or
not control over load balancing on the CPUs controlled by the batch
scheduler to the batch scheduler.
Hard partitioning is not the only use case here.
If you don't appreciate the other cases, then fine ... but I don't think
that gives you grounds to reject a patch just because it is not precisely
the ideal, narrowly focused, API for the case you do appreciate.
What's wrong with it is that 1) it doesn't cover all the use cases,
2) it would require a new and different mechanism other than cpusets
which are not multiple rooted, and do robustly support overlapping
sets and hence are not a hard partitioning, and 3) we'd still need
the cpuset based API to cover the remaining use cases.
Good grief -- I must be misunderstanding you here, Nick. I can't
imagine that you want to turn cpusets into a multiple rooted hard
partition mechanism. If you are, then "bastardized" is the right word.
I can't figure out what the sentence is saying ... sorry.
--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <pj@sgi.com> 1.925.600.0401
-