public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Frederic Weisbecker <frederic@kernel.org>
To: "Paul E. McKenney" <paulmck@kernel.org>
Cc: LKML <linux-kernel@vger.kernel.org>,
	Thomas Gleixner <tglx@linutronix.de>
Subject: Re: [PATCH] tick: Detect and fix jiffies update stall
Date: Wed, 2 Feb 2022 03:19:51 +0100	[thread overview]
Message-ID: <20220202021951.GA415483@lothringen> (raw)
In-Reply-To: <20220202014934.GI4285@paulmck-ThinkPad-P17-Gen-1>

On Tue, Feb 01, 2022 at 05:49:34PM -0800, Paul E. McKenney wrote:
> On Wed, Feb 02, 2022 at 01:01:07AM +0100, Frederic Weisbecker wrote:
> > On some rare cases, the timekeeper CPU may be delaying its jiffies
> > update duty for a while. Known causes include:
> > 
> > * The timekeeper is waiting on stop_machine in a MULTI_STOP_DISABLE_IRQ
> >   or MULTI_STOP_RUN state. Disabled interrupts prevent from timekeeping
> >   updates while waiting for the target CPU to complete its
> >   stop_machine() callback.
> > 
> > * The timekeeper vcpu has VMEXIT'ed for a long while due to some overload
> >   on the host.
> > 
> > Detect and fix these situations with emergency timekeeping catchups.
> > 
> > Original-patch-by: Paul E. McKenney <paulmck@kernel.org>
> > Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
> > Cc: Thomas Gleixner <tglx@linutronix.de>
> 
> Nice, thank you!
> 
> So I should revert your earlier patch, apply this one, and then test
> the result?

No need to revert the nohz_full fix, this new one deals with non-dynticks
issues. This way we cover every timekeeper stall situations:

_ dynticks-idle is handled on IRQ entry

_ full dynticks is handled on IRQ entry in case of CPU 0 (traditional nohz_full
  timekeeper) timekeeping stall. Let's hope we won't need to handle syscalls and
  faults as well but we'll see...
  
_ periodic ticks are now handled on the tick.

So you just need to apply this patch on your dev branch for testing.

Thanks!

  reply	other threads:[~2022-02-02  2:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-02  0:01 [PATCH] tick: Detect and fix jiffies update stall Frederic Weisbecker
2022-02-02  1:49 ` Paul E. McKenney
2022-02-02  2:19   ` Frederic Weisbecker [this message]
2022-02-02 17:24     ` Paul E. McKenney

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=20220202021951.GA415483@lothringen \
    --to=frederic@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paulmck@kernel.org \
    --cc=tglx@linutronix.de \
    /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