Update RTThreadPriority.md
This commit is contained in:
@@ -3,15 +3,34 @@
|
||||
The TooB Convolution Reverb and TooB Cab IR effects require realtime scheduling to be enabled for the current user
|
||||
in order process convolution data on background threads while audio is running in realtime.
|
||||
|
||||
The procedure for enabling realtime scheduling varies between various Linux distributions. There are two ways to enable realtime scheduling:
|
||||
using native Linux scheduler calls; or using the RTKIT DBus service.
|
||||
The procedure for enabling realtime scheduling varies between Linux distributions.
|
||||
|
||||
Most modern distributions have an RTKIT DBus service. But the restrictions imposed by the RTKIT DBus service may prevent the TooB plugins from
|
||||
starting up realtime threads. RTKIT does have some configuration options, but the procedure for configuring RTKIT is unusually difficult. If
|
||||
the TooB plugins exceed the limits imposed by RTKIT, the easier solution is to configure realtime permissions for the Linux native scheduler.
|
||||
Most modern distributions have the RTKIT DBus service, which allow programs to request realtime priority. But the restrictions imposed by the RTKIT
|
||||
DBus service may prevent the TooB plugins from starting. RTKIT does have configuration options, but the procedure for configuring RTKIT is unusually difficult.
|
||||
If TooB plugins exceed the limits imposed by RTKIT (or if the RTKIT service doesn't exist), the easiest solution is to grant realtime scheduling permissions to
|
||||
the current user.
|
||||
|
||||
The native Linux scheduler calls require the user to have appropriate permissions. To grant permissions for the TooB plugins, make the following
|
||||
modifications to your system.
|
||||
modifications to your system.
|
||||
|
||||
...
|
||||
On many Linux distros, any user of the audio group is granted realtime scheduling permissions. Check for files in the `/etc/limits.d/` directory named nn-audio.conf.
|
||||
If such a file exists, open it to see which group has been granted permissions. There should be a lime simular to the following:
|
||||
|
||||
```
|
||||
@audio - rtprio 95
|
||||
```
|
||||
|
||||
If the file exists, add your user-id to the audio group, and reboot to make the change take effect.
|
||||
|
||||
To grant realtime scheduling permissions to your user-id , add the following line to `/etc/security/limits.conf`:
|
||||
|
||||
```
|
||||
youruserid - rtprio 95
|
||||
```
|
||||
or add the following line to grant realtime scheduling permissions for all users:
|
||||
```
|
||||
* - rtprio 95
|
||||
```
|
||||
|
||||
Once you have made the change, reboot to make the change take effect.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user