Real Time Thread Priority
Real time priority scheduling is now enabled in the SRN containers. There are two key changes that users should be aware of:
Real time will only work for processes run as a child process of the init daemon within the container or from an SSH session. Users should note that RadioAPI scripts such as start.sh will not be able to spawn child processes with real time priority.
Two CPU cores are now held in reserve for the SRN host system, so containers will have access to the remaining 46 CPU cores.
Below are some examples for working with real time priority within your container:
To run something with real time priority:
chrt 50 echo "RTPRIO works"
To print rtprio limits:
prlimit -rExpected output:
RESOURCE DESCRIPTION SOFT HARD UNITS RTPRIO max real-time priority 99 99
To set the priority of a running process:
chrt -p <priority> <pid>
To check the priority of a running process:
chrt -p <pid>
For more information on running processes with real time priority, see the Linux man pages for chrt and prlimit.