All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/3] sched: Update blocked load
@ 2018-02-13 10:31 Vincent Guittot
  2018-02-13 10:31 ` [PATCH v4 1/3] sched: Stop nohz stats when decayed Vincent Guittot
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Vincent Guittot @ 2018-02-13 10:31 UTC (permalink / raw)
  To: peterz, mingo, linux-kernel, valentin.schneider
  Cc: morten.rasmussen, brendan.jackman, dietmar.eggemann, Vincent Guittot

This patchset applies on top of Peter's sched/esting branch minus the last 2 commit:
56eb46798b33 ("sched: Clean up nohz enter/exit")

v4:
- fixed some compilation issues raised by kbuild
- update comments
- reorder condition tests for calling _nohz_idle_balance in newly_idle case
  in order to make it more readable

v3:
- add memory barrier
- add comments

v2:
- minor naming updates

Vincent Guittot (3):
  sched: Stop nohz stats when decayed
  sched: reduce the periodic update duration
  sched: update blocked load when newly idle

 kernel/sched/fair.c  | 453 ++++++++++++++++++++++++++++++++++-----------------
 kernel/sched/sched.h |   1 +
 2 files changed, 305 insertions(+), 149 deletions(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: [RFC PATCH 2/5] sched: Add NOHZ_STATS_KICK
@ 2018-02-01 18:10 Peter Zijlstra
  2018-02-06  8:32 ` [PATCH 1/3] sched: Stop nohz stats when decayed Vincent Guittot
  0 siblings, 1 reply; 12+ messages in thread
From: Peter Zijlstra @ 2018-02-01 18:10 UTC (permalink / raw)
  To: Vincent Guittot
  Cc: Morten Rasmussen, Ingo Molnar, linux-kernel, Brendan Jackman,
	Dietmar Eggemann, Morten Rasmussen

On Wed, Jan 24, 2018 at 09:25:36AM +0100, Vincent Guittot wrote:
> @@ -8861,7 +8875,14 @@ static int idle_balance(struct rq *this_rq, struct rq_flags *rf)
>  			update_next_balance(sd, &next_balance);
>  		rcu_read_unlock();
>  
> -		if (time_after(jiffies, next) && atomic_read(&nohz.stats_state))
> +		/*
> +		 * Update blocked idle load if it has not been done for a
> +		 * while. Try to do it locally before entering idle but kick a
> +		 * ilb if it takes too much time and might delay next local
> +		 * wake up
> +		 */
> +		if (time_after(jiffies, next) && atomic_read(&nohz.stats_state) &&
> +				!_nohz_idle_balance(this_rq, NOHZ_STATS_KICK, CPU_NEWLY_IDLE))
>  			kick_ilb(NOHZ_STATS_KICK);
>  
>  		goto out;

This I really dislike. We're here because avg_idle is _really_ low, we
really should not then call _nohz_idle_balance().

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2018-03-09  9:04 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-13 10:31 [PATCH v4 0/3] sched: Update blocked load Vincent Guittot
2018-02-13 10:31 ` [PATCH v4 1/3] sched: Stop nohz stats when decayed Vincent Guittot
2018-03-09  9:03   ` [tip:sched/core] sched/nohz: Stop NOHZ " tip-bot for Vincent Guittot
2018-02-13 10:31 ` [PATCH v4 2/3] sched: reduce the periodic update duration Vincent Guittot
2018-03-09  9:04   ` [tip:sched/core] sched/fair: Reduce " tip-bot for Vincent Guittot
2018-02-13 10:31 ` [PATCH 3/3] sched: update blocked load when newly idle Vincent Guittot
2018-02-14 14:40   ` Valentin Schneider
2018-02-14 14:43     ` Vincent Guittot
  -- strict thread matches above, loose matches on Subject: below --
2018-02-01 18:10 [RFC PATCH 2/5] sched: Add NOHZ_STATS_KICK Peter Zijlstra
2018-02-06  8:32 ` [PATCH 1/3] sched: Stop nohz stats when decayed Vincent Guittot
2018-02-06  8:32   ` [PATCH 3/3] sched: update blocked load when newly idle Vincent Guittot
2018-02-06 14:32     ` Valentin Schneider
2018-02-06 16:17       ` Vincent Guittot
2018-02-06 16:32         ` Valentin Schneider

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.