[ardour-users] Problems running jack with RT prio

Michael Gerdau mgd at technosis.de
Wed May 9 01:40:30 PDT 2007


Hi list,

not sure whether problems with jack are OT - if so then please
answer off list. However I'm sure there are lots of knowledgeable
folks around that hopefully can help me sort out my problems with
jack.

Problem is I can't enable RT priority and without I have lots of
XRUNs.

When I try to run as root it doesn't start at all (log from qjackctl
further down), when I try under my regular account I get an
"Operation not permitted" (log further down as well).

I'm on openSUSE 10.2 and have PAM installed. I am member of group
audio and have added these lines to /etc/security/limits.conf:
@audio           -       rtprio          99
@audio           -       nice            -10
@audio           -       memlock         4000000

I have done the same for my userid directly but no change. According
to /etc/pam.d pam_limits.so is loaded for each and every session.
CONFIG_TMPFS is enabled and I do see jack related entries in /dev/shm
while qjackctl ist running.

A long time ago I had this working using realtime_lsm but AFAIK
with PAM that no longer needed. Or should I go back ?
I have no idea how to proceed to get it working and would welcome
any hints.

Find the aforementioned logs below:
As user root:
snip -- snip -- snip -- snip -- snip -- snip -- snip -- snip -- snip
07:26:54.163 Patchbay deactivated.
07:26:54.173 Statistics reset.
07:26:54.234 MIDI connection graph change.
JACK tmpdir identified as [/dev/shm]
07:27:00.902 Startup script...
07:27:00.903 artsshell -q terminate
JACK tmpdir identified as [/dev/shm]
starting artsd!
kbuildsycoca running...
07:27:02.474 Startup script terminated with exit status=256.
07:27:02.474 JACK is starting...
07:27:02.474 jackd -R -p128 -dalsa -dhw:0 -r44100 -p1024 -n2 -m -i2 -o2 -zt
07:27:02.490 JACK was started with PID=13982 (0x369e).
jackd 0.103.0
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 POSIX SHM support.
/dev/shm/jack-0 already exists, but is not a directory!
cannot create server sockets
cannot create engine
07:27:02.532 JACK was stopped successfully.
07:27:02.533 Post-shutdown script...
07:27:02.533 killall jackd
jackd: no process killed
starting artsd!
07:27:02.965 Post-shutdown script terminated with exit status=256.
starting artsd!
There are already artsd objects registered, looking if they are active...
Error: Can't add object reference (probably artsd is already running).
       If you are sure it is not already running, remove the relevant files:
       /tmp/ksocket-root/Arts_SoundServerV2
       /tmp/ksocket-root/Arts_SoundServer
       /tmp/ksocket-root/Arts_SimpleSoundServer
       /tmp/ksocket-root/Arts_PlayObjectFactory
       /tmp/ksocket-root/Arts_AudioManager
starting artsd!
There are already artsd objects registered, looking if they are active...
07:27:04.616 Could not connect to JACK server as client. Please check the messages window for more info.
JACK tmpdir identified as [/dev/shm]
Error: Can't add object reference (probably artsd is already running).
       If you are sure it is not already running, remove the relevant files:
       /tmp/ksocket-root/Arts_SoundServerV2
       /tmp/ksocket-root/Arts_SoundServer
       /tmp/ksocket-root/Arts_SimpleSoundServer
       /tmp/ksocket-root/Arts_PlayObjectFactory
       /tmp/ksocket-root/Arts_AudioManager
There are already artsd objects registered, looking if they are active...
Error: Can't add object reference (probably artsd is already running).
       If you are sure it is not already running, remove the relevant files:
       /tmp/ksocket-root/Arts_SoundServerV2
       /tmp/ksocket-root/Arts_SoundServer
       /tmp/ksocket-root/Arts_SimpleSoundServer
       /tmp/ksocket-root/Arts_PlayObjectFactory
       /tmp/ksocket-root/Arts_AudioManager
snip -- snip -- snip -- snip -- snip -- snip -- snip -- snip -- snip

As user mgd:
snip -- snip -- snip -- snip -- snip -- snip -- snip -- snip -- snip
07:57:25.450 Patchbay activated.
07:57:25.464 Statistics reset.
07:57:25.521 Startup script...
07:57:25.522 artsshell -q terminate
JACK tmpdir identified as [/dev/shm]
JACK tmpdir identified as [/dev/shm]
07:57:25.556 MIDI connection graph change.
unix_connect: can't connect to server (unix:/tmp/ksocket-mgd/seneca.site-648c-4628bf6e)
07:57:26.797 Startup script terminated with exit status=256.
07:57:26.798 JACK is starting...
07:57:26.798 jackd -R -p64 -dalsa -dhw:0 -r44100 -p1024 -n4 -H -M
07:57:26.803 JACK was started with PID=6191 (0x182f).
07:57:27.005 MIDI active patchbay scan...
jackd 0.103.0
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 POSIX SHM support.
cannot switch to normal scheduling priority(Operation not permitted)
loading driver ..
apparent rate = 44100
creating alsa driver ... hw:0|hw:0|1024|4|44100|0|0|hwmon|hwmeter|-|32bit
control device hw:0
configuring for 44100Hz, period = 1024 frames, buffer = 4 periods
ALSA: final selected sample format for capture: 32bit little-endian
ALSA: use 4 periods for capture
ALSA: final selected sample format for playback: 32bit little-endian
ALSA: use 4 periods for playback
07:57:29.086 Server configuration saved to "/home/mgd/.jackdrc".
07:57:29.086 Statistics reset.
07:57:29.396 Client activated.
07:57:29.396 Audio connection change.
07:57:29.398 Audio connection graph change.
JACK tmpdir identified as [/dev/shm]
07:57:29.446 XRUN callback (1).
07:57:29.597 Audio active patchbay scan...
07:57:31.442 XRUN callback (13 skipped).
jackd watchdog: timeout - killing jackd
07:57:32.610 Shutdown notification.
07:57:32.630 Client deactivated.
07:57:32.630 JACK was stopped successfully.
zombified - calling shutdown handler
cannot read result for request type 7 from server (Die Verbindung wurde vom Kommunikationspartner zurückgesetzt)
cannot send request type 7 to server
cannot read result for request type 7 from server (Datenübergabe unterbrochen (broken pipe))
snip -- snip -- snip -- snip -- snip -- snip -- snip -- snip -- snip

Best,
Michael
-- 
 Technosis GmbH, Geschäftsführer: Michael Gerdau, Tobias Dittmar
 Sitz Hamburg; HRB 89145 Amtsgericht Hamburg
 Vote against SPAM - see http://www.politik-digital.de/spam/
 Michael Gerdau       email: mgd at technosis.de
 GPG-keys available on request or at public keyserver
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.ardour.org/pipermail/ardour-users-ardour.org/attachments/20070509/fde1f1ba/attachment-0002.pgp>


More information about the Ardour-Users mailing list