POSIX 1.e Realtime Capability with PAM
From Bennet
Revision as of 13:00, 7 July 2009 by 192.168.0.16 (Talk)
Specifically, this HOWTO pertains to giving any requesting process POSIX 1.e capabilities (Realtime Operation) with PAM (Pluggable Authentication Modules). There is no need to patch PAM anymore or to use the realtime module.
This method is referred to as RLIMIT and RTLIMIT.
As of PAM 0.79, the name was changed to rtprio.
#Begin /etc/security/limits.conf @audio - rtprio 99 @audio - nice -10 @audio - memlock 452192 #End /etc/security/limits.conf
Then put yourself in the "audio" group. You need to relogin, for the changes to take effect. To verify that you're in the "audio" group, run the "groups" command.
If you want to give any users access to realtime scheduling and memory locking, then:
* - rtprio 99 * - nice -10 * - memlock 4000000
Please see my Setting up a Realtime System HOWTO

