public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jason Low <jason.low2@hp.com>
To: Vincent Guittot <vincent.guittot@linaro.org>
Cc: Peter Zijlstra <peterz@infradead.org>,
	Ingo Molnar <mingo@kernel.org>,
	linux-kernel <linux-kernel@vger.kernel.org>,
	Preeti U Murthy <preeti@linux.vnet.ibm.com>,
	Linaro Kernel Mailman List <linaro-kernel@lists.linaro.org>,
	jason.low2@hp.com
Subject: Re: [PATCH v2] sched: fix nohz.next_balance update
Date: Thu, 27 Aug 2015 09:50:01 -0700	[thread overview]
Message-ID: <1440694201.32300.72.camel@j-VirtualBox> (raw)
In-Reply-To: <CAKfTPtBDQMGmeFahQVXQnDT8VhMgbbPqq0oMMsE5kkg6Yq9o0w@mail.gmail.com>

On Thu, 2015-08-27 at 13:21 +0200, Vincent Guittot wrote:
> Hi,
> 
> On 3 August 2015 at 11:55, Vincent Guittot <vincent.guittot@linaro.org> wrote:
> > Since commit d4573c3e1c99 ("sched: Improve load balancing in the presence
> > of idle CPUs"), the ILB CPU starts with the idle load balancing of other
> > idle CPUs and finishes with itself in order to speed up the spread of tasks
> > in all idle CPUs.
> >
> > The this_rq->next_balance is still used in nohz_idle_balance as an
> > intermediate step to gather the shortest next balance before updating
> > nohz.next_balance. But the former has not been updated yet and is likely to
> > be set with the current jiffies. As a result, the nohz.next_balance will be
> > set with current jiffies instead of the real next balance date. This
> > generates spurious kicks of nohz ilde balance.
> >
> > nohz_idle_balance must set the nohz.next_balance without taking into
> > account this_rq->next_balance which is not updated yet. Then, this_rq will
> > update nohz.next_update with its next_balance once updated and if necessary.
> >
> > Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>

Acked-by: Jason Low <jason.low2@hp.com>


  reply	other threads:[~2015-08-27 16:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-03  9:55 [PATCH v2] sched: fix nohz.next_balance update Vincent Guittot
2015-08-27 11:21 ` Vincent Guittot
2015-08-27 16:50   ` Jason Low [this message]
2015-08-28 11:14     ` Vincent Guittot
2015-09-13 11:01 ` [tip:sched/core] sched/fair: Fix " tip-bot for Vincent Guittot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1440694201.32300.72.camel@j-VirtualBox \
    --to=jason.low2@hp.com \
    --cc=linaro-kernel@lists.linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=peterz@infradead.org \
    --cc=preeti@linux.vnet.ibm.com \
    --cc=vincent.guittot@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox