Please add support for RT prio & nice rlimits

Bug #17348 reported by Lee Revell on 2005-05-22
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pam (Ubuntu)
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.

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.



Lee Revell (rlrevell) wrote :

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

WillDyson (will-dyson) wrote :

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

As described in:

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

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
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) on 2006-02-22
Changed in pam:
assignee: debzilla → kamion
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  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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