The priority limit for JACK realtime threads is 70:
# /etc/security/limits.d/95-jack.conf
@jackuser - rtprio 70
@jackuser - memlock 4194304
@pulse-rt - rtprio 20
@pulse-rt - nice -20
While Pipewire realtime threads have a priority limit of 95:
# /etc/security/limits.d/25-pw-rlimits.conf
@pipewire - rtprio 95
@pipewire - nice -19
@pipewire - memlock 4194304
Is there a reason for this discrepancy? My mediocre Google-Fu has found that Fedora changed its priority scheme with the Fedora 17 release, but I couldn’t find out anything else about that apart from this email.
Has Fedora decided to change things back to a more ‘traditional’ scheme since? Are Pipewire thread priorities too high? Could that lead to issues with priority inversion? I’m trying to set up my system for low latency audio and I’m not sure what to do anymore…
Edit: I just checked the thread priorities of Pipewire and JACK realtime threads as well. Pipewire’s realtime thread gets rtprio 88, while JACK’s gets 60. Is that on purpose?
JACK’s:
$ ps -p 109009 -Lo tid,class,pri,rtprio,command
TID CLS PRI RTPRIO COMMAND
109009 TS 19 - jackd --realtime -dalsa -dhw:0 -r48000 -p512 -n2
109023 TS 19 - jackd --realtime -dalsa -dhw:0 -r48000 -p512 -n2
109024 TS 19 - jackd --realtime -dalsa -dhw:0 -r48000 -p512 -n2
109025 FF 60 20 jackd --realtime -dalsa -dhw:0 -r48000 -p512 -n2
109026 TS 19 - jackd --realtime -dalsa -dhw:0 -r48000 -p512 -n2
Pipewire’s:
$ ps -p 4453 -Lo tid,class,pri,rtprio,command
TID CLS PRI RTPRIO COMMAND
4453 TS 30 - /usr/bin/pipewire
4460 FF 128 88 /usr/bin/pipewire