* big bw_pipe drop due to sched-domain patch?
@ 2004-05-29 4:59 David Mosberger
2004-05-29 5:18 ` Nick Piggin
0 siblings, 1 reply; 2+ messages in thread
From: David Mosberger @ 2004-05-29 4:59 UTC (permalink / raw)
To: nickpiggin, akpm; +Cc: linux-kernel
Today I noticed that going from 2.6.6 to 2.6.7-rc1 caused a big drop
in LMbench2 bw_pipe throughput on a dual-CPU machine (2.6.7-rc1 shows
10 times lower bandwidth than 2.6.6). It appears that the drop is due
to the two tasks being distributed across the two CPUs, rather than
being kept on the same CPU. If I force the tasks to be pinned on a
single CPU, e.g., like so:
$ taskset 1 ./bw_pipe
then performance is "only" about 10% worse than with 2.6.6.
Is this kind of drop expected?
--david
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: big bw_pipe drop due to sched-domain patch?
2004-05-29 4:59 big bw_pipe drop due to sched-domain patch? David Mosberger
@ 2004-05-29 5:18 ` Nick Piggin
0 siblings, 0 replies; 2+ messages in thread
From: Nick Piggin @ 2004-05-29 5:18 UTC (permalink / raw)
To: davidm; +Cc: akpm, linux-kernel, Ingo Molnar
David Mosberger wrote:
> Today I noticed that going from 2.6.6 to 2.6.7-rc1 caused a big drop
> in LMbench2 bw_pipe throughput on a dual-CPU machine (2.6.7-rc1 shows
> 10 times lower bandwidth than 2.6.6). It appears that the drop is due
> to the two tasks being distributed across the two CPUs, rather than
> being kept on the same CPU. If I force the tasks to be pinned on a
> single CPU, e.g., like so:
>
> $ taskset 1 ./bw_pipe
>
> then performance is "only" about 10% worse than with 2.6.6.
>
> Is this kind of drop expected?
>
(please CC Ingo for scheduler related stuff too)
Previously (ie. pre sched-domains), pipe based wakeups would
unconditionally migrate the "wakee" onto the same CPU as the waker.
Great for benchmarks, but possibly not really essential for real
workloads, especially when tasks start getting pulled across NUMA
nodes (I'd be happy to be shown otherwise though).
sched-domains introduces instead a "soft bias" that attempts to
get wakers and wakees together. The concept is applied to _all_
types of wakeups, not just pipe based.
I think this is a slightly better scheme, but we could increase
the aggressiveness of the bias if it is proven to be useful.
I don't know why your taskset performance is lower. taskset should
completely take the scheduler out of the equation AFAIKS...
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-05-29 5:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-29 4:59 big bw_pipe drop due to sched-domain patch? David Mosberger
2004-05-29 5:18 ` Nick Piggin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox