udev-rtirq

Discuss anything new and newsworthy! See http://planet.linuxaudio.org and https://libreav.org/news for more Linux Audio News!

Announcements of proprietary software may fit better in the Marketplace.


Moderators: raboof, MattKingUSA, khz

Post Reply
Jack Winter
Established Member
Posts: 381
Joined: Sun May 28, 2017 3:52 pm

udev-rtirq

Post by Jack Winter »

Hi,

I've written a small utility (https://github.com/jhernberg/udev-rtirq) that changes the priority of the thread handling the soundcard interrupt when it detects a soundcard. Prerequisites are either a rt kernel, or a lowlatency kernel booted with the threadirqs flag, and systemd.

This works both on boot as well as on hotplug.
Reaper/KDE/Archlinux. i7-2600k/16GB + i7-4700HQ/16GB, RME Multiface/Babyface, Behringer X32, WA273-EQ, 2 x WA-412, ADL-600, Tegeler TRC, etc 8) For REAPER on Linux information: https://wiki.cockos.com/wiki/index.php/REAPER_for_Linux
CrocoDuck
Established Member
Posts: 1133
Joined: Sat May 05, 2012 6:12 pm
Been thanked: 17 times

Re: udev-rtirq

Post by CrocoDuck »

Very cool! How do you think it will interplay with rtirq? Should rtirq be disabled in order to use your utility?
Jack Winter
Established Member
Posts: 381
Joined: Sun May 28, 2017 3:52 pm

Re: udev-rtirq

Post by Jack Winter »

It ought to coexist fine with rtirq. I suppose the issue being if they try to set different priorities for the same interrupt handling thread. You could use rtirq for boot (and for setting non soundcard handling threads), and then let udev-rtirq handle hotplugging.

I've spotted a bug when there is interrupt sharing, as it will only set one of the interrupt handling threads to a higher priority and not necessarily the soundcard one either. Will think about how I can fix that. Am also considering adding a similar output as "rtirq status"
Reaper/KDE/Archlinux. i7-2600k/16GB + i7-4700HQ/16GB, RME Multiface/Babyface, Behringer X32, WA273-EQ, 2 x WA-412, ADL-600, Tegeler TRC, etc 8) For REAPER on Linux information: https://wiki.cockos.com/wiki/index.php/REAPER_for_Linux
Post Reply