Re: [PATCH] sched/fair: schedutil: update only with all info available

2018-04-26 Thread Peter Zijlstra
On Thu, Apr 26, 2018 at 12:15:33PM +0100, Patrick Bellasi wrote: > > Yes, these patches predate those, but indeed, now that we age the > > blocked load consistently it should no longer be required. > > After this discussion, I think there is a general consensus about > always add sg_cpu->util_cfs

Re: [PATCH] sched/fair: schedutil: update only with all info available

2018-04-26 Thread Patrick Bellasi
On 11-Apr 17:37, Peter Zijlstra wrote: > On Wed, Apr 11, 2018 at 05:29:01PM +0200, Vincent Guittot wrote: > > On 11 April 2018 at 17:14, Peter Zijlstra wrote: > > > On Tue, Apr 10, 2018 at 12:04:12PM +0100, Patrick Bellasi wrote: > > >> On 09-Apr 10:51, Vincent Guittot wrote: > > > > > >> > Peter,

Re: [PATCH] sched/fair: schedutil: update only with all info available

2018-04-12 Thread Joel Fernandes
On Thu, Apr 12, 2018 at 12:01 AM, Vincent Guittot wrote: >> >> Also that aside, the "running util" is what was used to drive the CFS >> util before Peter's patch (8f111bc357a). That was accounting the >> blocked and decaying utilization but that patch changed the behavior. >> It seems logical we

Re: [PATCH] sched/fair: schedutil: update only with all info available

2018-04-12 Thread Vincent Guittot
Hi Joel, On 11 April 2018 at 23:34, Joel Fernandes wrote: > Hi Vincent, > > On Wed, Apr 11, 2018 at 4:56 AM, Vincent Guittot > wrote: >> On 11 April 2018 at 12:15, Patrick Bellasi wrote: >>> On 11-Apr 08:57, Vincent Guittot wrote: On 10 April 2018 at 13:04, Patrick Bellasi wrote: > O

Re: [PATCH] sched/fair: schedutil: update only with all info available

2018-04-11 Thread Joel Fernandes
Hi Vincent, On Wed, Apr 11, 2018 at 4:56 AM, Vincent Guittot wrote: > On 11 April 2018 at 12:15, Patrick Bellasi wrote: >> On 11-Apr 08:57, Vincent Guittot wrote: >>> On 10 April 2018 at 13:04, Patrick Bellasi wrote: >>> > On 09-Apr 10:51, Vincent Guittot wrote: >>> >> On 6 April 2018 at 19:28,

Re: [PATCH] sched/fair: schedutil: update only with all info available

2018-04-11 Thread Vincent Guittot
On 11 April 2018 at 18:15, Peter Zijlstra wrote: > On Wed, Apr 11, 2018 at 06:10:47PM +0200, Vincent Guittot wrote: >> > Could is be that for some reason the nohz balancer now takes a very long >> > time to run? >> >> Heiner mentions that is was a relatively slow celeron and he uses >> ondemand go

Re: [PATCH] sched/fair: schedutil: update only with all info available

2018-04-11 Thread Peter Zijlstra
On Wed, Apr 11, 2018 at 06:10:47PM +0200, Vincent Guittot wrote: > > Could is be that for some reason the nohz balancer now takes a very long > > time to run? > > Heiner mentions that is was a relatively slow celeron and he uses > ondemand governor. So I was about to ask him to use performance > g

Re: [PATCH] sched/fair: schedutil: update only with all info available

2018-04-11 Thread Vincent Guittot
On 11 April 2018 at 18:00, Peter Zijlstra wrote: > On Wed, Apr 11, 2018 at 05:41:24PM +0200, Vincent Guittot wrote: >> Yes. and to be honest I don't have any clues of the root cause :-( >> Heiner mentioned that it's much better in latest linux-next but I >> haven't seen any changes related to the

Re: [PATCH] sched/fair: schedutil: update only with all info available

2018-04-11 Thread Peter Zijlstra
On Wed, Apr 11, 2018 at 05:41:24PM +0200, Vincent Guittot wrote: > Yes. and to be honest I don't have any clues of the root cause :-( > Heiner mentioned that it's much better in latest linux-next but I > haven't seen any changes related to the code of those patches Yeah, it's a bit of a puzzle. No

Re: [PATCH] sched/fair: schedutil: update only with all info available

2018-04-11 Thread Vincent Guittot
On 11 April 2018 at 17:37, Peter Zijlstra wrote: > On Wed, Apr 11, 2018 at 05:29:01PM +0200, Vincent Guittot wrote: >> On 11 April 2018 at 17:14, Peter Zijlstra wrote: >> > On Tue, Apr 10, 2018 at 12:04:12PM +0100, Patrick Bellasi wrote: >> >> On 09-Apr 10:51, Vincent Guittot wrote: >> > >> >> >

Re: [PATCH] sched/fair: schedutil: update only with all info available

2018-04-11 Thread Peter Zijlstra
On Wed, Apr 11, 2018 at 05:29:01PM +0200, Vincent Guittot wrote: > On 11 April 2018 at 17:14, Peter Zijlstra wrote: > > On Tue, Apr 10, 2018 at 12:04:12PM +0100, Patrick Bellasi wrote: > >> On 09-Apr 10:51, Vincent Guittot wrote: > > > >> > Peter, > >> > what was your goal with adding the conditio

Re: [PATCH] sched/fair: schedutil: update only with all info available

2018-04-11 Thread Vincent Guittot
On 11 April 2018 at 17:14, Peter Zijlstra wrote: > On Tue, Apr 10, 2018 at 12:04:12PM +0100, Patrick Bellasi wrote: >> On 09-Apr 10:51, Vincent Guittot wrote: > >> > Peter, >> > what was your goal with adding the condition "if >> > (rq->cfs.h_nr_running)" for the aggragation of CFS utilization >>

Re: [PATCH] sched/fair: schedutil: update only with all info available

2018-04-11 Thread Peter Zijlstra
On Tue, Apr 10, 2018 at 12:04:12PM +0100, Patrick Bellasi wrote: > On 09-Apr 10:51, Vincent Guittot wrote: > > Peter, > > what was your goal with adding the condition "if > > (rq->cfs.h_nr_running)" for the aggragation of CFS utilization > > The original intent was to get rid of sched class flags

Re: [PATCH] sched/fair: schedutil: update only with all info available

2018-04-11 Thread Peter Zijlstra
On Fri, Apr 06, 2018 at 06:28:35PM +0100, Patrick Bellasi wrote: > is maintained although there are not actual usages so far in mainline > for this hint... do we really need it? There were intel_pstate patches that I expected to have shown up already, and I meant to have a look at sugov, except I

Re: [PATCH] sched/fair: schedutil: update only with all info available

2018-04-11 Thread Patrick Bellasi
On 11-Apr 13:56, Vincent Guittot wrote: > On 11 April 2018 at 12:15, Patrick Bellasi wrote: > > On 11-Apr 08:57, Vincent Guittot wrote: > >> On 10 April 2018 at 13:04, Patrick Bellasi wrote: > >> > On 09-Apr 10:51, Vincent Guittot wrote: > >> >> On 6 April 2018 at 19:28, Patrick Bellasi > >> >>

Re: [PATCH] sched/fair: schedutil: update only with all info available

2018-04-11 Thread Vincent Guittot
On 11 April 2018 at 12:15, Patrick Bellasi wrote: > On 11-Apr 08:57, Vincent Guittot wrote: >> On 10 April 2018 at 13:04, Patrick Bellasi wrote: >> > On 09-Apr 10:51, Vincent Guittot wrote: >> >> On 6 April 2018 at 19:28, Patrick Bellasi wrote: >> >> Peter, >> >> what was your goal with adding t

Re: [PATCH] sched/fair: schedutil: update only with all info available

2018-04-11 Thread Patrick Bellasi
On 11-Apr 08:57, Vincent Guittot wrote: > On 10 April 2018 at 13:04, Patrick Bellasi wrote: > > On 09-Apr 10:51, Vincent Guittot wrote: > >> On 6 April 2018 at 19:28, Patrick Bellasi wrote: > >> Peter, > >> what was your goal with adding the condition "if > >> (rq->cfs.h_nr_running)" for the aggr

Re: [PATCH] sched/fair: schedutil: update only with all info available

2018-04-11 Thread Patrick Bellasi
On 11-Apr 09:57, Vincent Guittot wrote: > On 6 April 2018 at 19:28, Patrick Bellasi wrote: > > > } > > @@ -5454,8 +5441,11 @@ static void dequeue_task_fair(struct rq *rq, struct > > task_struct *p, int flags) > > update_cfs_group(se); > > } > > > > - if (!se) > > +

Re: [PATCH] sched/fair: schedutil: update only with all info available

2018-04-11 Thread Vincent Guittot
On 6 April 2018 at 19:28, Patrick Bellasi wrote: > } > @@ -5454,8 +5441,11 @@ static void dequeue_task_fair(struct rq *rq, struct > task_struct *p, int flags) > update_cfs_group(se); > } > > - if (!se) > + /* The task is no more visible from the root cfs_rq *

Re: [PATCH] sched/fair: schedutil: update only with all info available

2018-04-10 Thread Vincent Guittot
On 10 April 2018 at 13:04, Patrick Bellasi wrote: > Hi Vincent, > > On 09-Apr 10:51, Vincent Guittot wrote: >> Hi Patrick >> >> On 6 April 2018 at 19:28, Patrick Bellasi wrote: >> > Schedutil is not properly updated when the first FAIR task wakes up on a >> > CPU and when a RQ is (un)throttled. T

Re: [PATCH] sched/fair: schedutil: update only with all info available

2018-04-10 Thread Patrick Bellasi
Hi Joel, On 06-Apr 16:48, Joel Fernandes wrote: > On Fri, Apr 6, 2018 at 10:28 AM, Patrick Bellasi > wrote: > > Schedutil is not properly updated when the first FAIR task wakes up on a > > CPU and when a RQ is (un)throttled. This is mainly due to the current > > integration strategy, which relies

Re: [PATCH] sched/fair: schedutil: update only with all info available

2018-04-10 Thread Patrick Bellasi
Hi Vincent, On 09-Apr 10:51, Vincent Guittot wrote: > Hi Patrick > > On 6 April 2018 at 19:28, Patrick Bellasi wrote: > > Schedutil is not properly updated when the first FAIR task wakes up on a > > CPU and when a RQ is (un)throttled. This is mainly due to the current > > integration strategy, w

Re: [PATCH] sched/fair: schedutil: update only with all info available

2018-04-09 Thread Vincent Guittot
Hi Patrick On 6 April 2018 at 19:28, Patrick Bellasi wrote: > Schedutil is not properly updated when the first FAIR task wakes up on a > CPU and when a RQ is (un)throttled. This is mainly due to the current > integration strategy, which relies on updates being triggered implicitly > each time a c

Re: [PATCH] sched/fair: schedutil: update only with all info available

2018-04-06 Thread Joel Fernandes
On Fri, Apr 6, 2018 at 10:28 AM, Patrick Bellasi wrote: > Schedutil is not properly updated when the first FAIR task wakes up on a > CPU and when a RQ is (un)throttled. This is mainly due to the current > integration strategy, which relies on updates being triggered implicitly > each time a cfs_rq

[PATCH] sched/fair: schedutil: update only with all info available

2018-04-06 Thread Patrick Bellasi
Schedutil is not properly updated when the first FAIR task wakes up on a CPU and when a RQ is (un)throttled. This is mainly due to the current integration strategy, which relies on updates being triggered implicitly each time a cfs_rq's utilization is updated. Those updates are currently provided