lkml.org 
[lkml]   [2011]   [Jan]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [wake_afine fixes/improvements 1/3] sched: update effective_load() to use global share weights
From
Date
On Mon, 2011-01-17 at 15:11 +0100, Peter Zijlstra wrote:
>
> > + if (lw > 0 && wl < lw)
> > + wl = (wl * tg->shares) / lw;
> > + else
> > + wl = tg->shares;
>
> OK, so this computes the new load for this cpu, by taking the
> appropriate proportion of tg->shares, it clips on large wl, and does
> something funny for !lw -- on purpose?

D'0h, when !lw, the tg is empty and we don't care what happens since it
won't get scheduled anyway..

Ok, very nice, applied!


\
 
 \ /
  Last update: 2011-01-17 16:01    [W:0.090 / U:0.756 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site