JackLab/PAM for rtprios

From openSUSE

User realtime with PAM for rt_prio

This is the official SuSE-recommended way to give realtime priority to audio applications.

For SUSE 10.0, rt_prio for audio failed with the SUSE distributed PAM, so there is a fixed PAM available in the jacklab repository.

PAM is finally working "out of the box" for audio on SUSE 10.1/10.2 now. It is supposed to be as fast as rt-lsm, but more secure for the system. It is possible to use PAM for rt prios with the SUSE 10.1 standard kernel, but with a lack of performance.

For 10.2 users who have installed the PAM update from the jacklab-repo, the following will be inserted automatically, but you can still tune the values.

To activate PAM for audio realtime priority, edit your /etc/security/limits.conf (as root). Insert following lines at the end of the file:

@audio          -       rtprio          90
@audio          -       nice            15
@audio          -       memlock         4000000
# End of file

EDIT- the original said "@audio - nice -15" but I could only get mine to work on removing the "-". If this breaks your setup try putting the - back in before the 15.

It may be possible to use other values, like rtprio 99, nice -20 or something like that (-20 is the highest, 20 the lowest nice priority for processes).

PAM stops audioApps if they use more CPU than allowed (max.-> 99%). This can be very counter-productive in a session--in the middle of the synth solo the app quitting because there was a short high peak with 100% CPU. If you need more stability, or if you have graphical problems with PAM, try rt-lsm.