Re: ~90s shutdown delay with v6.19 and PREEMPT_RT
From: Bert Karwatzki
Date: Fri Feb 20 2026 - 04:16:12 EST
Am Donnerstag, dem 19.02.2026 um 19:58 -0500 schrieb Steven Rostedt:
> On Fri, 20 Feb 2026 00:10:41 +0100
> Bert Karwatzki <spasswolf@xxxxxx> wrote:
>
> > These seem to be the same type of messages that commit
> > 9311e6c29b34 ("cgroup: Fix sleeping from invalid context warning on PREEMPT_RT")
> > is supposed to fix.
> > When I compile a kernel with 9311e6c29b34 as HEAD I do not get these messages, so
> > I guess I have to do another bisection here.
>
> Can you add to the kernel command line:
>
> trace_event=sched_switch traceoff_after_boot
>
> And then look at /sys/kernel/tracing/trace
>
> 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.
Bert Karwatzki