Please add support for RT prio & nice rlimits

Bug #17348 reported by Lee Revell
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pam (Ubuntu)
Fix Released
Wishlist
Colin Watson

Bug Description

Linus recently merged support for two new rlimits for max RT priority
and nice value, as of kernel 2.6.12-rc3 or -rc4. For this to work the following
patch to PAM is required.

http://steamballoon.com/pam/pam-limits2.patch

Then, something like the following would be added to /etc/security/limits.conf:

* - rt_priority 0
* - nice 0

@audio - rt_priority 50
@audio - nice -10

I've tested this with breezy and it works perfectly.
See the linux-audio-user mailing list, LKML, or the above wiki for more information.

Thanks,

Lee

http://www.steamballoon.com/wiki/Rlimits: http://www.steamballoon.com/wiki/Rlimits

Revision history for this message
Lee Revell (rlrevell) wrote :

Created an attachment (id=2467)
Patch to PAM for RT rlimit support

Revision history for this message
WillDyson (will-dyson) wrote :

Created an attachment (id=5256)
Backport of upstream pam-rtlimits

As described in: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=326555

Maybe someone at Canonical is paying more attention than the debian maintainer?

This is my backport of the version of the rtlimits patch now merged in
the linux-pam CVS. Differences to previous patch are:

 - item name in limits.conf is "rt_prio" rather than "rt_priority"
 - nice value goes from -20 to 19, rather than 0 to 39.
 - do not define RLIMIT_FOO values, but rather get them from kernel
   headers (where available), and protect uses of them with #ifdef

Revision history for this message
Dana Olson (adolson) wrote : Patch for Dapper's libpam-modules as of 20060206

See the attached patch for libpam-modules as of 20060206.

I applied it like this:

cd /tmp/
apt-get source libpam-modules
sudo apt-get build-dep libpam-modules
wget http://www.ubuntustudio.com/uploads/pam-0.79-rlimits.patch
cd pam-0.79/
mv ../pam-0.79-rlimits.patch debian/patches-applied/61-rlimits
patch -p1 < debian/patches-applied/61-rlimits
nano debian/changelog
# Edit the changelog accordingly: added rlimits patch
debuild -us -uc
dpkg -i libpam-modules_0.79-3ubuntu8dolson1_i386.deb

Works great here. Please put this into Dapper before it ships for all the musicians out there!

Colin Watson (cjwatson)
Changed in pam:
assignee: debzilla → kamion
Revision history for this message
Colin Watson (cjwatson) wrote :

pam (0.79-3ubuntu10) dapper; urgency=low

  * debian/patches-applied/061_pam_rlimits_nice_rtprio: Support "nice" and
    "rtprio" rlimits, new in Linux 2.6.12. Backported from upstream thanks
    to Dana Olson and others (closes: Malone #17348).

 -- Colin Watson <email address hidden> Thu, 23 Feb 2006 16:22:12 +0000

Changed in pam:
status: Unconfirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.