Re: ~90s shutdown delay with v6.19 and PREEMPT_RT

From: Steven Rostedt

Date: Fri Feb 20 2026 - 10:44:25 EST


On Fri, 20 Feb 2026 10:15:43 +0100
Bert Karwatzki <spasswolf@xxxxxx> wrote:

> > It will enable sched_switch event and the traceoff_after_boot will
> > disable tracing right before running init. That way you can see what is
> > running during boot that is taking the 90 seconds.
> >
> > -- Steve
>
> I think there's a misunderstanding here, the 90s delay happens on shutdown, i.e.
> when using either reboot or shutdown. I've changed the subject accordingly.

In that case you should be using the persistent ring buffer ;-)

https://docs.kernel.org/trace/debugging.html

Add to the kernel command line:

reserve_mem=20M:2M:trace trace_instance=boot_map@trace

And then before rebooting:

echo 1 > /sys/kernel/tracing/instances/boot_map/events/sched/sched_switch/enable
echo 1 > /sys/kernel/tracing/instances/boot_map/tracing_on

Then look at the trace after the reboot:

cat /sys/kernel/tracing/instances/boot_map/trace

If your laptop doesn't clear memory during a reboot, you should have the trace.

If that's not enough to debug the situation, you can enable other events,
or enable function or function graph tracing. That should all work with the
persistent buffer.

-- Steve