[lkml]   [2003]   [Aug]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
SubjectRe: [PATCH]O18.1int
Con Kolivas <> wrote:
> > >It might help if you or a buddy could get set up with volanomark on an
> > > OSDL 4-or-8-way so that you can more closely track the effect of your
> > > changes on such benchmarks.
> Ok here goes.
> This is on 8way:
> Test4:
> Average throughput = 11145 messages per second
> Test4-O18.1:
> Average throughput = 9860 messages per second
> Test3-mm3:
> Average throughput = 9788 messages per second
> So I grabbed test3-mm3 and started peeling back the patches
> and found no change in throughput without _any_ of my Oxint patches applied,
> and just Ingo's A3 patch:
> Test3-mm3-A3
> Average throughput = 9889 messages per second
> Then finally I removed that patch so there were no interactivity patches:
> Test3-mm3-ni
> Average throughput = 11052 messages per second

Well that was quick, thanks.

Surely the only reason we see more idle time in this sort of workload is
because of runqueue imbalance: some CPUs are idle while other CPUs have
more than one runnable process. That sounds like a bug more than a
tuning/balancing thing: having no runnable tasks is a sort of binary
do-something-right-now case.

We should be going across and pullng a task off another CPU synchronously
as soon as a runqueue is seen to be empty. The code tries to do that so

Ingo just sent the below patch which is related, but doesn't look like it
will fix it. I'll include this in test4-mm1, RSN.

From: Ingo Molnar <>

the attached patch fixes the SMP balancing problem reported by David
Mosberger. (the 'yield-ing threads do not get spread out properly' bug).

it turns out that we never really spread out tasks in the busy-rebalance
case - contrary to my intention. The most likely incarnation of this
balancing bug is via yield() - but in theory pipe users can be affected

the patch balances more agressively with a slow frequency, on SMP (or
within the same node on NUMA - not between nodes on NUMA).

kernel/sched.c | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)

diff -puN kernel/sched.c~sched-balance-fix-2.6.0-test3-mm3-A0 kernel/sched.c
--- 25/kernel/sched.c~sched-balance-fix-2.6.0-test3-mm3-A0 2003-08-23 13:57:06.000000000 -0700
+++ 25-akpm/kernel/sched.c 2003-08-23 13:57:06.000000000 -0700
@@ -1144,7 +1144,6 @@ static void rebalance_tick(runqueue_t *t
load_balance(this_rq, idle, cpu_to_node_mask(this_cpu));
- return;
@@ -1152,7 +1151,7 @@ static void rebalance_tick(runqueue_t *t
- load_balance(this_rq, idle, cpu_to_node_mask(this_cpu));
+ load_balance(this_rq, 0, cpu_to_node_mask(this_cpu));

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: 2005-03-22 13:48    [W:0.076 / U:0.692 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site