Re: [PATCH] sched: Introduce scaled capacity awareness in enqueue

From: Peter Zijlstra
Date: Thu Jun 01 2017 - 08:28:37 EST


On Wed, May 31, 2017 at 03:19:46PM -0700, Rohit Jain wrote:

> > > 2) This scaled capacity is normalized and mapped into buckets.
> > Why?
>
> This is done to deterministically define the CPUs which are low on
> capacities. By mapping it into buckets it becomes easier to do a
> percentile calculation.

*sigh*, you're really going to make me read and reverse engineer your
horrible code.. :/