From: Thomas Gleixner <tglx@linutronix.de>
To: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>, paulmck@kernel.org
Cc: John Stultz <jstultz@google.com>, Stephen Boyd <sboyd@kernel.org>,
LKML <linux-kernel@vger.kernel.org>,
Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
x86@kernel.org, joel@joelfernandes.org
Subject: Re: [PATCH] clocksource: disable irq when holding watchdog_lock.
Date: Thu, 19 Oct 2023 14:14:34 +0200 [thread overview]
Message-ID: <87r0lq3j2t.ffs@tglx> (raw)
In-Reply-To: <5ef329fe-1f3b-4d81-9625-9738620f051e@I-love.SAKURA.ne.jp>
On Thu, Oct 19 2023 at 18:30, Tetsuo Handa wrote:
> On 2023/10/17 23:10, Paul E. McKenney wrote:
>>> But I'm hitting something different (but might be timer/scheduler related) problem.
>>> What config option would cause taking more than 2 minutes to bring up only 8 CPUs?
>>> (This environment is Oracle VM VirtualBox on Windows 11 host.)
>>>
>> The timing is about the same in both cases. Does this happen in kernels
>> built with CONFIG_PROVE_LOCKING=n?
>
> Disabling all options in "Lock Debugging (spinlocks, mutexes, etc...)" does not help.
>
>>
>> Either way, what mainline or -stable version is this?
>
> The kernel is latest commit of upstream linux.git tree.
> I'm seeing this slowdown (almost hung-up) problem for many releases,
> but nobody else seems to be reporting this problem.
Maybe because of this:
>>> (This environment is Oracle VM VirtualBox on Windows 11 host.)
> The only reliable workaround is to specify "nosmp" kernel command line option.
Which makes the kernel keep TSC as clocksource because there is no
synchronization problem between CPU0 and CPU0 :)
What is the fallback clocksource when the TSC is discarded on SMP?
From the dmesg snippets I assume it is the ACPI PMTIMER, which is I/O
port based and presumably takes a VMEXIT on every read and depending on
the emulation this might be slooooow.
So you could boot with "nosmp clocksource=acpi_pm" on the command line
and compare that against a "nosmp" boot.
If my assumption is right, then on UP the ACPI PM variant won't see the
massive slowdown SMP observes, but there should be still an observable
difference.
Thanks,
tglx
next prev parent reply other threads:[~2023-10-19 12:14 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-13 14:51 [PATCH] clocksource: disable irq when holding watchdog_lock Tetsuo Handa
2023-10-16 17:46 ` John Stultz
2023-10-16 21:47 ` Thomas Gleixner
2023-10-16 23:03 ` Paul E. McKenney
2023-10-17 6:49 ` Thomas Gleixner
2023-10-17 14:11 ` Paul E. McKenney
2023-10-17 10:37 ` Tetsuo Handa
2023-10-17 14:10 ` Paul E. McKenney
2023-10-19 9:30 ` Tetsuo Handa
2023-10-19 12:14 ` Thomas Gleixner [this message]
2023-10-19 14:26 ` Tetsuo Handa
2023-10-20 3:30 ` Paul E. McKenney
2023-10-20 12:50 ` Tetsuo Handa
2023-10-20 13:40 ` Paul E. McKenney
2023-10-24 13:00 ` Thomas Gleixner
2023-10-24 14:52 ` Tetsuo Handa
2023-10-25 21:28 ` Thomas Gleixner
2023-10-25 21:31 ` [PATCH] x86/tsc: Defer marking TSC unstable to a worker Thomas Gleixner
2023-10-26 9:39 ` [tip: x86/urgent] " tip-bot2 for Thomas Gleixner
2023-10-27 18:46 ` tip-bot2 for Thomas Gleixner
2023-10-20 9:02 ` [PATCH] clocksource: disable irq when holding watchdog_lock Sebastian Andrzej Siewior
2023-10-26 2:33 ` kernel test robot
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=87r0lq3j2t.ffs@tglx \
--to=tglx@linutronix.de \
--cc=bigeasy@linutronix.de \
--cc=joel@joelfernandes.org \
--cc=jstultz@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=paulmck@kernel.org \
--cc=penguin-kernel@I-love.SAKURA.ne.jp \
--cc=sboyd@kernel.org \
--cc=x86@kernel.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