Re: [PATCH RESEND v9 10/10] sched: move cfs task on a CPU with higher capacity
From: Peter Zijlstra
Date: Fri Feb 20 2015 - 11:27:00 EST
On Fri, Feb 20, 2015 at 02:54:09PM +0100, Vincent Guittot wrote:
> >> if (rq->nr_running >= 2)
> >> + return true;
> >
> > So this,
> >> + sd = rcu_dereference(rq->sd);
> >> + if (sd) {
> >> + if ((rq->cfs.h_nr_running >= 1) &&
> >> + check_cpu_capacity(rq, sd)) {
> >> + kick = true;
> >> + goto unlock;
> >> + }
> >> + }
> >
> > vs this: how would we ever get here?
> >
> > If h_nr_running > 1, must then not nr_running > 1 as well?
>
> you're right,
> but the test above can trig a kick with h_nr_running == 1 whereas the
> other tests may not
Duh, clearly I cannot read today.
--
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/