Re: Make yield_task_fair more efficient
- From: Balbir Singh <balbir@xxxxxxxxxxxxxxxxxx>
- Date: Thu, 21 Feb 2008 18:59:08 +0530
Mike Galbraith wrote:
Hi,
On Thu, 2008-02-21 at 15:01 +0530, Balbir Singh wrote:
Ingo Molnar wrote:
* Balbir Singh <balbir@xxxxxxxxxxxxxxxxxx> wrote:This is more convincing, was the code ever in git? How did you measure the
If you insist that sched_yield() is bad, I might agree, but how doesit puts new instructions into the hotpath.
my patch make things worse. [...]
[...] In my benchmarks, it has helped the sched_yield case, why isI had the same cache for the rightmost task in earlier CFS (it's a
that bad? [...]
really obvious thing) but removed it. It wasnt a bad idea, but it hurt
the fastpath hence i removed it. Algorithms and implementations are a
constant balancing act.
overhead?
Counting enqueue/dequeue cycles on my 3GHz P4/HT running a 60 seconds
netperf test that does ~85k/s context switches shows:
sched_cycles: 7198444348 unpatched
vs
sched_cycles: 8574036268 patched
Thanks for the numbers! I am very convinced that the patch should stay out until
we can find a way to reduce the overhead. I'll try your patch and see what the
numbers look like as well.
--
Warm Regards,
Balbir Singh
Linux Technology Center
IBM, ISTL
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- References:
- Make yield_task_fair more efficient
- From: Balbir Singh
- Re: Make yield_task_fair more efficient
- From: Ingo Molnar
- Re: Make yield_task_fair more efficient
- From: Balbir Singh
- Re: Make yield_task_fair more efficient
- From: Ingo Molnar
- Re: Make yield_task_fair more efficient
- From: Balbir Singh
- Re: Make yield_task_fair more efficient
- From: Peter Zijlstra
- Re: Make yield_task_fair more efficient
- From: Balbir Singh
- Re: Make yield_task_fair more efficient
- From: Ingo Molnar
- Re: Make yield_task_fair more efficient
- From: Balbir Singh
- Re: Make yield_task_fair more efficient
- From: Mike Galbraith
- Make yield_task_fair more efficient
- Prev by Date: [PATCH 2.6 6/8] infiniband/hw/nes/nes_cm.c: Fix use-after-free
- Next by Date: Re: 2.6.24-rt1 IRQ routing anomaly
- Previous by thread: Re: Make yield_task_fair more efficient
- Next by thread: Re: Make yield_task_fair more efficient
- Index(es):
Relevant Pages
|