[PlanetCCRMA] FC5 xruns

Fernando Lopez-Lezcano nando@ccrma.Stanford.EDU
Mon May 29 11:38:02 2006


On Mon, 2006-05-29 at 13:20 -0500, Link Swanson wrote:
> I recently upgraded a my FC4 CCRMA system, which ran free of xruns, to
> FC5, and now I get loads of xruns when running jack.
> 
> I am running an HDSP Multiface and my motherboard sound is disabled.
> 
> I'm a big noob so all help is welcome. Thanks
> 
> Here is some JACK output:
> 
> JACK compiled with System V SHM support.
> cannot lock down memory for jackd (Cannot allocate memory)
> loading driver ..
> Enhanced3DNow! detected
> SSE2 detected
> apparent rate = 44100
> creating alsa driver ... hw:0|hw:0|512|2|44100|0|0|nomon|swmeter|-|32bit
> control device hw:0
> configuring for 44100Hz, period = 512 frames, buffer = 2 periods
> nperiods = 2 for capture
> nperiods = 2 for playback
> JACK: unable to mlock() port buffers: Cannot allocate memory
> cannot use real-time scheduling (FIFO at priority 72) [for thread
> -1229542496, from thread -1229542496] (1: Operation not permitted) cannot
> use real-time scheduling (FIFO at priority 62) [for thread
> -1240032352, from thread -1240032352] (1: Operation not permitted)
> 12:46:32.385 Server configuration saved to "/home/bozone/.jackdrc".
> 12:46:32.386 Statistics reset.
> 12:46:32.387 Client activated.
> 12:46:32.388 Audio connection change.
> 12:46:32.389 Audio connection graph change.
> Enhanced3DNow! detected
> SSE2 detected
> cannot lock down memory for RT thread (Cannot allocate memory)
> cannot use real-time scheduling (FIFO at priority 61) [for thread
> -1211110496, from thread -1211110496] (1: Operation not permitted)
> subgraph starting at qjackctl-2517 timed out (subgraph_wait_fd=11, status
> = 0, state = Triggered)
> **** alsa_pcm: xrun of at least 2.189 msecs
> 12:46:32.458 XRUN callback (1).

Jack is not running with realtime scheduling and is not locking memory,
you _are_ supposed to get xruns :-)

How did you install the core Planet CCRMA components in fc5? (kernel,
etc). If you installed the meta package ("yum install
planetccrma-core-*") you should have a custom version of pam with
realtime scheduling and memory locking enabled for non-root users - and
the rtirq irq priority reordering startup script. See which version you
have ("rpm -q pam"), if it does not have a "rhfc5" in the release field
then you need to upgrade it to the Planet CCRMA version. 

-- Fernando