Rtlimits-enabled pam

From Rivendell Wiki

Jump to: navigation, search

From an email on jackit-devel@lists.sourceforge.net

You definitely *do* need a rtlimits-enabled pam and set up
/etc/security/limits.conf accordingly by adding something like this:

@audio         -       nice            -10
@audio         -       rtprio          99
@audio         -       memlock         unlimited

and put yourself in group audio. This doesn't have anything to do with
the kernel version you run, you need to do this for any (newer)
kernel.

It doesn't make your kernel run any better, but it allows you to
elevate the priority of applications as a non-root user. Without this,
even a highly tuned kernel will be of no use to non-root users.

One thing people often get confused about when hearing the term
"realtime" is that tuning and optimizing realtime operation on one
hand and managing access to what realtime features available on the
other hand are different issues.

You can tune your realtime kernel with various kernel options,
interrupt tuning etc. And you manage access to realtime features with
libpam/limits.conf. However without allowing access to the realtime
features with libpam, all your tuning effort would be in vain.

Ciao
--
 Frank Barknecht                 _ ______footils.org_ __goto10.org__
Personal tools