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

@ -45,7 +45,7 @@
* with mlockall() on many systems */
#define THREAD_STACK 524288
#define DEFAULT_RT_MAX 88
#define DEFAULT_RT_MAX RTPRIO_CLIENT
#define JACK_CLIENT_NAME_SIZE 256
#define JACK_PORT_NAME_SIZE 256