pj wrote:
> 9) Finally, we really do need a way, on a production system, for user
> space to ask the kernel where load balancing is limited.
>
> For example one possible interface would have user space pass a
> cpumask to the kernel, and get back a Boolean value, indicating
> whether or not there are any limitations on load balancing between
> any two CPUs specified in that cpumask.
Ah - a simpler API, more user friendly, more "cpuset API style"
friendly:
A read-only, per-cpuset Boolean flag that indicates whether the
scheduler is fully load balancing across all 'cpus' of that cpuset.
Internally, the kernel would answer this by seeing whether or
not the cpusets cpus_allowed cpumask was a subset of one of the
members of the scheduler domains partition.
Call this per-cpuset flag something such as:
sched_is_fully_load_balanced # read-only Boolean
This goes along with having the control flag named something such as:
sched_ok_not_to_load_balance # read-write Boolean
If a task was in a cpuset that had 'sched_is_fully_load_balanced'
False, then it might not get load balanced.
--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <[email protected]> 1.925.600.0401
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]