Re: [proaudio] pam rlimits aware setup

[ Thread Index | Date Index | More lists.tuxfamily.org/proaudio Archives ]


Dominique Michel wrote:
Le Wed, 17 May 2006 23:11:57 +0200,
Frieder Bürzele <evermind@xxxxxxxxxxxxx> a écrit :

Dominique Michel wrote:
Le Wed, 17 May 2006 15:21:56 -0500,
"Colin Shapiro" <cmshapiro@xxxxxxxxx> a écrit :

Do the default values in /etc/security/limits.conf not work when you emerge
the version of pam from the proaudio overlay?

# REALTIME support for audio group users
@audio          -       rtprio          100
@audio          -       nice            -10
@audio          -       memlock         250000
yes for sure I use this version. I've added the rlimits aware pam to the overlay
It is the value I have been used from a few weeks with pam + rt-lsm. And it is the value I used for the test and what I use now. It just run out of the box after the install.

Ciao,
Dominique

In your description in the forums you wrote that pam would not work properly on non rt-kernels. Does jackd get realtime priority with non rt kernels?

You have to  run jackd as root with a non realtime kernel to get realtime priority. But it will be rt in jack, not full premption as with a rt-kernel. The premption depend in all case on the kernel. With a non rt kernel, you will only get a higher priority when runing jack with rt priority.

If you read not only my last post on the forum with the test, but the other ones, I talk about compiling a vanilla kernel and testing pam-Rlimit with it. I get wird system behaviour as the whole system freezing to death with a low cpu usage. With the same 2.6.16 kernel, but rt22, all is working fine.

Dominique

up to now I was forced to use a non-rt kernel because using reiser4 as filesystem, but now I've added successfully reiser4 to rt-sources.
pam setup fails anyway
this is what jackd gives me

$ jackd -R -d alsa

jackd 0.100.7
Copyright 2001-2005 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details

JACK compiled with System V SHM support.
loading driver ..
Enhanced3DNow! detected
creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
control device hw:0
[snip]
cannot use real-time scheduling (FIFO at priority 20) [for thread -1228706896, from thread -1228706896] (1: Operation not permitted) cannot use real-time scheduling (FIFO at priority 10) [for thread -1237099600, from thread -1237099600] (1: Operation not permitted)


can you post your useflags when you do a emerge pam -pv

# emerge -pv pam

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] sys-libs/pam-0.78-r6  +berkdb -nis -pam_chroot -pam_console -pam_timestamp -pwdb (-selinux) 0 kB [1]

thx
    Frieder
I haven't actually tried getting it to work yet, but I noticed the above
lines were automatically put in my /etc/security/limits.conf.  I will test
them later today.

- Colin


On 5/17/06, Frieder Bürzele <evermind@xxxxxxxxxxxxx> wrote:
Hi,
It seems that I can't get a pam rlimits aware setup.
So for now I'm forced to use realtime-lsm.

I think I miss something to get pam working correctly on my setup
I've tried several settings in /etc/security/limits.conf but nothing
seems to work.

So please any hints for me?


Thx

    Frieder








Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/