From: Waiman Long <longman@redhat.com>
To: Feng Tang <feng.tang@intel.com>
Cc: John Stultz <john.stultz@linaro.org>,
Thomas Gleixner <tglx@linutronix.de>,
Stephen Boyd <sboyd@kernel.org>,
"Paul E. McKenney" <paulmck@kernel.org>,
linux-kernel@vger.kernel.org,
Peter Zijlstra <peterz@infradead.org>,
Cassio Neri <cassio.neri@gmail.com>,
Linus Walleij <linus.walleij@linaro.org>,
Frederic Weisbecker <frederic@kernel.org>
Subject: Re: [PATCH v3 3/4] clocksource: Dynamically increase watchdog_max_skew
Date: Mon, 22 Nov 2021 13:27:25 -0500 [thread overview]
Message-ID: <e0a41ba0-59d6-d320-02b0-37534f9e66a5@redhat.com> (raw)
In-Reply-To: <20211122050224.GH34844@shbuild999.sh.intel.com>
On 11/22/21 00:02, Feng Tang wrote:
> On Thu, Nov 18, 2021 at 02:14:38PM -0500, Waiman Long wrote:
>> It is possible that a long-lasting intensive workload running on
>> a system may cause the clock skew test to be skipped for extended
>> period of time. One way to avoid this is to dynamically increase the
>> watchdog_max_skew used in the clock skew test.
>>
>> However, we also don't want watchdog_max_skew to be continuously increased
>> without bound. So we limit the increase up to 10*WATCHDOG_MAX_SKEW. If
>> that happens, there is something wrong the current watchdog and we are
>> going to mark it as unstable and select a new watchdog, if possible.
>
> For reselecting watchdog, in these cases, I think it's the extreme system
> stress causing the MMIO read of hpet to be slow (plus some lock), fallback
> to other watchdog whose read is MMIO or ioport may not help much. I tried
> this patch, and when "acpi_pm" timer is used instead of "hpet", similar
> thing can still happen.
Yes, I am aware of that. Switching to acpi_pm, did not reduce the
consecutive read delay. However, the current limit for this watchdog
fallback is when the delay exceed 5*WATCHDOG_MAX_SKEW. With a default of
100us, that mean 500us which is a really large delay that maybe there is
something wrong with the hpet timer. Of course, the selection of this
limit is kind of arbitrary. If you have concern about that, we can leave
this patch out.
Cheers,
Longman
next prev parent reply other threads:[~2021-11-22 18:27 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-18 19:14 [PATCH v3 0/4] clocksource: Avoid incorrect hpet fallback Waiman Long
2021-11-18 19:14 ` [PATCH v3 1/4] clocksource: Avoid accidental unstable marking of clocksources Waiman Long
2021-11-22 3:02 ` Feng Tang
2021-11-25 4:15 ` Paul E. McKenney
2021-12-06 3:47 ` Waiman Long
2021-11-18 19:14 ` [PATCH v3 2/4] clocksource: Reduce the default clocksource_watchdog() retries to 2 Waiman Long
2021-11-18 19:14 ` [PATCH v3 3/4] clocksource: Dynamically increase watchdog_max_skew Waiman Long
2021-11-22 5:02 ` Feng Tang
2021-11-22 18:27 ` Waiman Long [this message]
2021-11-23 3:06 ` Feng Tang
2021-11-18 19:14 ` [PATCH v3 4/4] clocksource: Add a Kconfig option for WATCHDOG_MAX_SKEW Waiman Long
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=e0a41ba0-59d6-d320-02b0-37534f9e66a5@redhat.com \
--to=longman@redhat.com \
--cc=cassio.neri@gmail.com \
--cc=feng.tang@intel.com \
--cc=frederic@kernel.org \
--cc=john.stultz@linaro.org \
--cc=linus.walleij@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=paulmck@kernel.org \
--cc=peterz@infradead.org \
--cc=sboyd@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
all inboxes | Powered by JetHome®