Re: [PATCH v1] sched: steer waking task to empty cfs_rq for betterlatencies

From: Peter Zijlstra
Date: Tue Apr 24 2012 - 13:09:26 EST


On Tue, 2012-04-24 at 18:58 +0200, Peter Zijlstra wrote:
> On Tue, 2012-04-24 at 22:26 +0530, Srivatsa Vaddagiri wrote:
> > Steer a waking task towards a cpu where its cgroup has zero tasks (in
> > order to provide it better sleeper credits and hence reduce its wakeup
> > latency).
>
> That's just vile.. pjt could you post your global vruntime stuff so
> vatsa can have a go at that?

That is, you're playing a deficiency we should fix, not exploit.

Also, you do a second loop over all those cpus right after we've already
iterated them..

furthermore, that 100%+ gain is still way insane, what else is broken?
Did you try those paravirt tlb-flush patches and other such weirdness?
--
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/