Bug#612023: jackd1: Jack1/2 no longer run with Realtime permissions following update

2011-02-04 Thread Adrian Knoth
On Fri, Feb 04, 2011 at 03:19:58PM -0500, Glen MacArthur wrote:

Hi!

 A routine update on 20110204 renders both JACK1 and JACK2 unable to run with
 Realtime permissions thus rendering both unuseable for low-latency audio

I fear we need more information here.

AFAICS, no real changes regarding priority scheduling have been applied
upstream. It's even more suspicious that both, jackd1 and jackd2, should
be affected.

Let's first make sure you have the POSIX prios in place. Can you verify
/etc/security/limits.d/audio.conf looks more or less like this?

adi@chopin:~$ cat /etc/security/limits.d/audio.conf
# Provided by the jackd package.
#
# Changes to this file will be preserved.
#
# If you want to enable/disable realtime permissions, run
#
#dpkg-reconfigure -p high jackd

@audio   -  rtprio 95
@audio   -  memlockunlimited
#@audio   -  nice  -19


Next, please verify that those limits are really active:

adi@chopin:~$ ulimit -l -r
max locked memory   (kbytes, -l) unlimited
real-time priority  (-r) 95

 sched_get_priority_min(SCHED_RR)= 1
 sched_setscheduler(0, SCHED_RR, { 1 })  = -1 EPERM (Operation not permitted)

Here we can see it's even failing with the lowest realtime permission of
only 1.

I suspect we (you) are facing the CGROUP thing:

   http://jackaudio.org/linux_group_sched

Can you check your kernel config, either via /boot/config-`uname -r` or
/proc/config.gz, if available?


You could also try to boot the stock Debian squeeze kernel, because I
have no idea about the settings in this kernel:

 Kernel: Linux 2.6.36-liquorix-2.6.36-3.dmz.2-avlinux-default (SMP w/1
 CPU core; PREEMPT)

Could be everything.


Cheers and please report back. ;)

-- 
mail: a...@thur.de  http://adi.thur.de  PGP/GPG: key via keyserver



___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-multimedia-maintainers


Bug#612023: jackd1: Jack1/2 no longer run with Realtime permissions following update

2011-02-04 Thread Adrian Knoth
On Fri, Feb 04, 2011 at 02:27:24PM -0800, i...@bandshed.net wrote:

 Hi Adi,

Hi!

 Limits look messed up!
 
 tester@av5devel:~$ ulimit -l -r
 max locked memory   (kbytes, -l) 64
 real-time priority  (-r) 0
 tester@av5devel:~$

Ok, so the good news is: it's not caused by jackd, jackd failing is
only the consequence and we're now looking for the root cause.

tester is member of the audio group?

 I have been using this kernel for a few weeks, and it runs JACK1 fine on
 another Squeeze system that has not been upgraded.

Who else might mess with limits? Pam? libc? systemd? I only see libc in
your list of upgradeable packages.

Could you try to manually upgrade/downgrade libc6-i686 (probably back
and forth)?


Cheers

-- 
mail: a...@thur.de  http://adi.thur.de  PGP/GPG: key via keyserver



___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-multimedia-maintainers