Re: [PATCH v2] sched/pelt: sync util/runnable_sum with PELT window when propagating

2020-05-20 Thread Dietmar Eggemann
On 19/05/2020 17:41, Vincent Guittot wrote: > On Tue, 19 May 2020 at 12:28, Dietmar Eggemann > wrote: >> >> On 06/05/2020 17:53, Vincent Guittot wrote: [...] >>> diff --git a/kernel/sched/pelt.c b/kernel/sched/pelt.c >>> index b647d04d9c8b..1feff80e7e45 100644 >>> --- a/kernel/sched/pelt.c >>>

Re: [PATCH v2] sched/pelt: sync util/runnable_sum with PELT window when propagating

2020-05-19 Thread Vincent Guittot
On Tue, 19 May 2020 at 12:28, Dietmar Eggemann wrote: > > On 06/05/2020 17:53, Vincent Guittot wrote: > > [...] > > > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > > index 02f323b85b6d..df3923a65162 100644 > > --- a/kernel/sched/fair.c > > +++ b/kernel/sched/fair.c > > @@ -3441,52

Re: [PATCH v2] sched/pelt: sync util/runnable_sum with PELT window when propagating

2020-05-19 Thread Dietmar Eggemann
On 06/05/2020 17:53, Vincent Guittot wrote: [...] > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > index 02f323b85b6d..df3923a65162 100644 > --- a/kernel/sched/fair.c > +++ b/kernel/sched/fair.c > @@ -3441,52 +3441,46 @@ static inline void > update_tg_cfs_util(struct cfs_rq *cfs_rq,

[PATCH v2] sched/pelt: sync util/runnable_sum with PELT window when propagating

2020-05-06 Thread Vincent Guittot
update_tg_cfs_*() propagate the impact of the attach/detach of an entity down into the cfs_rq hierarchy and must keep the sync with the current pelt window. Even if we can't sync child cfs_rq and its group se, we can sync the group se and its parent cfs_rq with current position in the PELT