From: Jinchao Wang <wangjinchao600@gmail.com>
To: Doug Anderson <dianders@chromium.org>,
Peter Zijlstra <peterz@infradead.org>
Cc: Will Deacon <will@kernel.org>,
Yunhui Cui <cuiyunhui@bytedance.com>,
akpm@linux-foundation.org, catalin.marinas@arm.com,
maddy@linux.ibm.com, mpe@ellerman.id.au, npiggin@gmail.com,
christophe.leroy@csgroup.eu, tglx@linutronix.de,
mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com,
hpa@zytor.com, acme@kernel.org, namhyung@kernel.org,
mark.rutland@arm.com, alexander.shishkin@linux.intel.com,
jolsa@kernel.org, irogers@google.com, adrian.hunter@intel.com,
kan.liang@linux.intel.com, kees@kernel.org, masahiroy@kernel.org,
aliceryhl@google.com, ojeda@kernel.org,
thomas.weissschuh@linutronix.de, xur@google.com,
ruanjinjie@huawei.com, gshan@redhat.com, maz@kernel.org,
suzuki.poulose@arm.com, zhanjie9@hisilicon.com,
yangyicong@hisilicon.com, gautam@linux.ibm.com, arnd@arndb.de,
zhao.xichao@vivo.com, rppt@kernel.org, lihuafei1@huawei.com,
coxu@redhat.com, jpoimboe@kernel.org, yaozhenguo1@gmail.com,
luogengkun@huaweicloud.com, max.kellermann@ionos.com,
tj@kernel.org, yury.norov@gmail.com, thorsten.blum@linux.dev,
x86@kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linuxppc-dev@lists.ozlabs.org, linux-perf-users@vger.kernel.org
Subject: Re: [PATCH] watchdog: remove HARDLOCKUP_DETECTOR_PERF
Date: Tue, 16 Sep 2025 09:46:53 +0800 [thread overview]
Message-ID: <7366f87a-1924-4dac-8945-389e6674213f@gmail.com> (raw)
In-Reply-To: <CAD=FV=Vr67+uRK2bYu34MDXRJN4w_VH_EO7OW4eVLJ3wqUUBog@mail.gmail.com>
On 9/15/25 23:42, Doug Anderson wrote:
> Hi,
>
> On Mon, Sep 15, 2025 at 3:35 AM Peter Zijlstra <peterz@infradead.org> wrote:
>>
>> On Mon, Sep 15, 2025 at 11:26:09AM +0100, Will Deacon wrote:
>>
>>> | If all CPUs are hard locked up at the same time the buddy system
>>> | can't detect it.
>>>
>>> Ok, so why is that limitation acceptable? It looks to me like you're
>>> removing useful functionality.
>>
>> Yeah, this. I've run into this case waaay too many times to think it
>> reasonable to remove the perf/NMI based lockup detector.
>
> I am a bit curious how this comes to be in cases where you've seen it.
> What causes all CPUs to be stuck looping all with interrupts disabled
> (but still able to execute NMIs)? Certainly one can come up with a
> synthetic way to make that happen, but I would imagine it to be
> exceedingly rare in real life. Maybe all CPUs are deadlocked waiting
> on spinlocks or something? There shouldn't be a lot of other reasons
> that all CPUs should be stuck indefinitely with interrupts disabled...
> If that's what's happening, (just spitballing) I wonder if hooking
> into the slowpath of spinlocks to look for lockups would help? Maybe
> every 10000 failures to acquire the spinlock we check for a lockup?
> Obviously you could still come up with synthetic ways to make a
> non-caught watchdog, but hopefully in those types of cases we can at
> least reset the device with a hardware watchdog?
>
> Overall the issue is that it's really awkward to have both types of
> lockup detectors, especially since you've got to pick at compile time.
> The perf lockup detector has a pile of things that make it pretty
> awkward and it seems like people have been toward the buddy detector
> because of this...
>
> -Doug
Should we support both modularization and changing the backend after
boot, so that the user has the choice?
--
Jinchao
next prev parent reply other threads:[~2025-09-16 1:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-15 3:53 [PATCH] watchdog: remove HARDLOCKUP_DETECTOR_PERF Yunhui Cui
2025-09-15 10:26 ` Will Deacon
2025-09-15 10:35 ` Peter Zijlstra
2025-09-15 15:42 ` Doug Anderson
2025-09-16 1:46 ` Jinchao Wang [this message]
2025-09-16 2:50 ` Ian Rogers
2025-09-16 7:42 ` Peter Zijlstra
2025-09-16 15:50 ` Doug Anderson
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=7366f87a-1924-4dac-8945-389e6674213f@gmail.com \
--to=wangjinchao600@gmail.com \
--cc=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=akpm@linux-foundation.org \
--cc=alexander.shishkin@linux.intel.com \
--cc=aliceryhl@google.com \
--cc=arnd@arndb.de \
--cc=bp@alien8.de \
--cc=catalin.marinas@arm.com \
--cc=christophe.leroy@csgroup.eu \
--cc=coxu@redhat.com \
--cc=cuiyunhui@bytedance.com \
--cc=dave.hansen@linux.intel.com \
--cc=dianders@chromium.org \
--cc=gautam@linux.ibm.com \
--cc=gshan@redhat.com \
--cc=hpa@zytor.com \
--cc=irogers@google.com \
--cc=jolsa@kernel.org \
--cc=jpoimboe@kernel.org \
--cc=kan.liang@linux.intel.com \
--cc=kees@kernel.org \
--cc=lihuafei1@huawei.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=luogengkun@huaweicloud.com \
--cc=maddy@linux.ibm.com \
--cc=mark.rutland@arm.com \
--cc=masahiroy@kernel.org \
--cc=max.kellermann@ionos.com \
--cc=maz@kernel.org \
--cc=mingo@redhat.com \
--cc=mpe@ellerman.id.au \
--cc=namhyung@kernel.org \
--cc=npiggin@gmail.com \
--cc=ojeda@kernel.org \
--cc=peterz@infradead.org \
--cc=rppt@kernel.org \
--cc=ruanjinjie@huawei.com \
--cc=suzuki.poulose@arm.com \
--cc=tglx@linutronix.de \
--cc=thomas.weissschuh@linutronix.de \
--cc=thorsten.blum@linux.dev \
--cc=tj@kernel.org \
--cc=will@kernel.org \
--cc=x86@kernel.org \
--cc=xur@google.com \
--cc=yangyicong@hisilicon.com \
--cc=yaozhenguo1@gmail.com \
--cc=yury.norov@gmail.com \
--cc=zhanjie9@hisilicon.com \
--cc=zhao.xichao@vivo.com \
/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