Re: High-priority softirqs [was: [PATCH] usb: don't offload isochronous urb completions to ksoftirq]
From: Steven Rostedt
Date: Fri Jun 15 2018 - 17:13:40 EST
On Fri, 15 Jun 2018 17:05:01 -0400 (EDT)
Mikulas Patocka <mpatocka@xxxxxxxxxx> wrote:
> I don't think that threaded interrupt handlers are a good idea.
>
> There are existing tools such as rtkit in Linux distributions that
> increase the priority of audio applications to real time. And if rtkit
> increases the priority of audio player or audio server above the priority
> of the interrupt thread that handles the soundcard - sound playback is
> screwed.
>
> You would have to set the priority of the interrupt thread to the highest
> real-time priority - and in such a case, the interrupt thread is no
> different than a hard-irq handler.
Perhaps rtkit et.al. should be updated to know about interrupt threads.
It's pretty trivial to know about them and that can easily be
automated. The only problem is to keep the irq thread higher than the
audio server. And we always tell people to never put a thread to the
maximum priority unless they had a damn good reason to do so.
-- Steve