meson: add options to set server and client RT priority

Make a rtprio-server and rtprio-client option. Leave the server
priority by default to 88 but lower client priority to 83. JACK
does something similar by setting clients to rtprio-server - 5.

Make module-rt use the client priority by default and bump the server
priority explicitly in the config file.

Leave the pulse-server to the default rtprio-client, there is no reason
to lower this any further because it is really just a regular client.

Bump the ffado packetizer thread to rtprio-server + 5 because that is
also what JACK does.

88 is still much higher than the value of 60 that JACK uses in
Fedora but now this is at least configurable.
This commit is contained in:
Wim Taymans 2024-02-15 11:53:32 +01:00
parent 2833ff1272
commit f1a6fabb6c
15 changed files with 30 additions and 13 deletions

View file

@ -306,6 +306,18 @@ option('rlimits-match',
description : 'PAM match rule for the generated limits.d file. @<name> denotes matching a group.',
type : 'string',
value: '@pipewire')
option('rtprio-server',
description : 'PipeWire server realtime priority',
type : 'integer',
min: 11,
max: 99,
value: 88)
option('rtprio-client',
description : 'PipeWire clients realtime priority',
type : 'integer',
min: 11,
max: 99,
value: 83)
option('rlimits-rtprio',
description : 'RR and FIFO scheduler priority permitted for realtime threads of the matching user(s)',
type : 'integer',