lkml.org 
[lkml]   [2008]   [Feb]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Make yield_task_fair more efficient

* Balbir Singh <balbir@linux.vnet.ibm.com> wrote:

> If you insist that sched_yield() is bad, I might agree, but how does
> my patch make things worse. [...]

it puts new instructions into the hotpath.

> [...] In my benchmarks, it has helped the sched_yield case, why is
> that bad? [...]

I had the same cache for the rightmost task in earlier CFS (it's a
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.

Ingo


\
 
 \ /
  Last update: 2008-02-21 10:07    [W:0.060 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site