[lkml]   [2006]   [Mar]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: more smpnice patch issues
Siddha, Suresh B wrote:
> more issues with smpnice patch...
> a) consider a 4-way system (simple SMP system with no HT and cores) scenario
> where a high priority task (nice -20) is running on P0 and two normal
> priority tasks running on P1. load balance with smp nice code
> will never be able to detect an imbalance and hence will never move one of
> the normal priority tasks on P1 to idle cpus P2 or P3.


> b) smpnice seems to break this patch..
> [PATCH] sched: allow the load to grow upto its cpu_power
> example scenario for this case: consider a numa system with two nodes, each
> node containing four processors. if there are two processes in node-0 and with
> node-1 being completely idle, your patch will move one of those processes to
> node-1 whereas the previous behavior will retain those two processes in node-0..
> (in this case, in your code max_load will be less than busiest_load_per_task)
> smpnice patch has complicated the load balance code... Very difficult
> to comprehend the side effects of this patch in the presence of different
> priority tasks...

That is NOT true. Without smpnice whether the "right thing" happens
with non zero nice tasks is largely down to luck. With smpnice the
result is far more predictable.

The PURPOSE of smpnice IS to alter load balancing in the face of the use
of non zero nice tasks. The reason for doing this is so that nice
reliably effects the allocation of CPU resources on SMP machines. I.e.
changes in load balancing behaviour as a result of tasks having nice
values other than zero is the desired result and NOT a side effect.

Peter Williams

"Learning, n. The kind of ignorance distinguishing the studious."
-- Ambrose Bierce
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2006-03-25 01:58    [W:0.081 / U:3.324 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site