From: Hans de Goede <hans@hansg.org>
To: Steven Rostedt <rostedt@goodmis.org>,
Masami Hiramatsu <mhiramat@kernel.org>
Cc: Linux trace kernel <linux-trace-kernel@vger.kernel.org>,
Mario Limonciello <mario.limonciello@amd.com>
Subject: CONFIG_FTRACE=y significantly slowing down module loading
Date: Thu, 7 May 2026 19:33:58 +0200 [thread overview]
Message-ID: <8574e496-ed2e-4057-8614-726d079aac57@hansg.org> (raw)
Hi Everyone,
On some old hw CONFIG_FTRACE=y causes "modprobe amdgpu" to take
25-30 seconds, halting the entire boot process for that time.
Where as with "# CONFIG_FTRACE is not set" this takes only 2 seconds.
I believe this was reported before by Mario (in the Cc) and there was
a fix of sorts merged for 6.15? But there still is a significant
slowdown (especially on slow hardware).
I was also the reason Mario originally reported this and Mario
asked me to test 6.15 but I was busy with other stuff so from
the better late then never department I only got around this now...
I've tested this on 2 admittedly quite old and slow machines,
but the impact is big enough that fixing this might also help
speeding up modprobe on modern machines.
This was tested on:
MSI S270 laptop, AMD Turion 64 MT-30 CPU, RS480 iGPU
FUJITSU D3003-S2 industrial PC, AMD G-T56N CPU, Radeon HD 6320 iGPU
Both old machines where amdgpu.ko auto-loads.
Kernel/modprobe real-/sys-time/FTRACE Kconfig enabled/machine
6.19.6 32.5s/31.8s yes MSI S270
7.0.0 25.5s/22.8s yes FUJITSU D3003-S2
6.15-rc7 27.7s/26.5s yes FUJITSU D3003-S2
7.0.0 1.9s/1.1s no FUJITSU D3003-S2
Regards,
Hans
reply other threads:[~2026-05-07 17:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=8574e496-ed2e-4057-8614-726d079aac57@hansg.org \
--to=hans@hansg.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=mario.limonciello@amd.com \
--cc=mhiramat@kernel.org \
--cc=rostedt@goodmis.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