On 10/12/2015 06:55 AM, Vincent Guittot wrote:
For the RT story, are you thinking to use rq->rt_avg in some way?
Yes that was my goal but the deadline is also accounted in rq->rt_avg which is then used in scale_rt_capacity. I was planning to remove the deadline class from rq->rt_avg and to use the per cpu deadline bandwidth in scale_rt_capacity instead
If the deadline contribution to rq->rt_avg is left in place, can RT and deadline both be accounted for via that one mechanism for the purposes of sched-dvfs?
I'm not sure how the accuracy/behavior of the deadline accounting to rq->rt_avg differs from the forthcoming patchset Juri mentioned, but if it's not as good, perhaps the mechanisms could be combined so that rt_avg (and by extension the per-CPU capacity adjustments in CFS) benefit as well.