On Tue, Apr 04, 2006 at 11:22:23AM +1000, Peter Williams wrote:
> OK. I think this means some fiddling with avg_load may be necessary in
> some cases but this will be complex. I'm not really happy about making
> this code more complex until some of the current unnecessary complexity
> is removed. I.e. until a proper solution to the problem of triggering
> active_load_balance() is implemented.
Here is Nicks view about active_load_balance()
http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=3950745131e23472fb5ace2ee4a2093e7590ec69
> >
> > c) DP system: if the cpu-0 has two high priority and cpu-1 has one normal
> > priority task, how can the current code detect this imbalance..
>
> How would it not?
imbalance will be always < busiest_load_per_task and
max_load - this_load will be < 2 * busiest_load_per_task...
and pwr_move will be <= pwr_now...
> > d) 4-way MP system: if the cpu-0 has two high priority tasks, cpu-1 has
> > one high priority and four normal priority and cpu-2,3 each has one
> > high priority task.. how does the current code distribute the normal
> > priority tasks among cpu-1,2,3... (in this case, max_load will always
> > point to cpu-0 and will never distribute the noraml priority tasks...)
>
> This should cause cpu-0 to lose one of its tasks creating a new state
how? in this case also...
imbalance will be always < busiest_load_per_task and
max_load - this_load will be < 2 * busiest_load_per_task...
and pwr_move will be <= pwr_now...
> Without smpnice, can you show how the default load balancing would
> result in the "nice" values being reliably enforced in your examples.
I agree with the issue that we are trying to fix here.. but I feel
it is incomplete.. With the current code in mainline, anyone can say the
behavior by going through the code.... with smpnice code, code is complex
and really doesn't achieve what that patch really wants to fix..
> The good news is that, in real life, high priority tasks generally only
> use very short bursts of CPU. :-)
do we then really need smpnice complexity?
thanks,
suresh
-
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]