Re: [PATCH 2/4 v4] sched/rt: add rt_rq utilization tracking

2018-04-14 Thread Vincent Guittot
On 14 April 2018 at 12:05, Peter Zijlstra wrote: > On Fri, Mar 16, 2018 at 12:25:39PM +0100, Vincent Guittot wrote: >> diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h >> index 783eacf..a8003a9 100644 >> --- a/kernel/sched/sched.h >> +++ b/kernel/sched/sched.h >> @@ -592,6 +592,8 @@ struct

Re: [PATCH 2/4 v4] sched/rt: add rt_rq utilization tracking

2018-04-14 Thread Peter Zijlstra
On Fri, Mar 16, 2018 at 12:25:39PM +0100, Vincent Guittot wrote: > diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h > index 783eacf..a8003a9 100644 > --- a/kernel/sched/sched.h > +++ b/kernel/sched/sched.h > @@ -592,6 +592,8 @@ struct rt_rq { > unsigned long rt_nr_total; >

[PATCH 2/4 v4] sched/rt: add rt_rq utilization tracking

2018-03-16 Thread Vincent Guittot
schedutil governor relies on cfs_rq's util_avg to choose the OPP when cfs tasks are running. When the CPU is overloaded by cfs and rt tasks, cfs tasks are preempted by rt tasks and in this case util_avg reflects the remaining capacity that is used by cfs task but not what cfs want to use. In such c