I'm trying to reduce xruns on my workstation (it's actually not music workstation, 3d workstation I use jack as DSP and patchbay not for music production). I found that you can reduce xruns by increasing latency and that can be achieved by increasing [Periods/Buffer] and [Frames/Period] in qjacktl. However even if I set some crazy value resulting in latency > 1000 ms displayed in qjackctl settings panel I still get 10ms. I'm using Asus Xonar D2 soundcard. Logs show that jackd is run with proper parameters. Here's full log:
Code: Select all
09:26:42.858 JACK is starting...
09:26:42.858 /usr/bin/jackd -v -P10 -dalsa -dhw:D2 -r192000 -p4096 -n8 -m -H -M
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
09:26:42.866 JACK was started with PID=11600.
Cannot create RT messagebuffer thread: Operation not permitted (1)
Retrying messagebuffer thread without RT scheduling
Messagebuffer not realtime; consider enabling RT scheduling for user
no message buffer overruns
Cannot create RT messagebuffer thread: Operation not permitted (1)
Retrying messagebuffer thread without RT scheduling
Messagebuffer not realtime; consider enabling RT scheduling for user
no message buffer overruns
Cannot create RT messagebuffer thread: Operation not permitted (1)
Retrying messagebuffer thread without RT scheduling
Messagebuffer not realtime; consider enabling RT scheduling for user
no message buffer overruns
`default' server already active
Failed to open server
jackdmp 1.9.10
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2014 Grame.
jackdmp 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
09:26:42.885 JACK was stopped with exit status=255.
09:26:45.046 Could not connect to JACK server as client. - Overall operation failed. - Unable to connect to server. Please check the messages window for more info.
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
09:26:49.302 JACK connection change.
09:26:49.309 Client activated.
Cannot lock down 86605722 byte memory area (Cannot allocate memory)
... <and here lots of debug about new patchbay connections>
And xruns still occur when I launch anything more CPU intensive (and of course I do run because it's workstation). It's okay that sound glitches when I'm running some render on all 8 cores 100% let's be realistic, but it's quite disturbing when glitches occur also while I'm just recording screencasts with my work. Disturbing both for me and people watching screencasts as captured sound also glitches. It's not really something THAT computationally heavy, in worst case takes around 100-200% cpu so technically 6 cores are still free. I can minimize xruns by playing with chrt and CPU affinity to core-separate audio related apps and computationally heavy apps and make jack realtime however I'd rather prefer to increase latency. After all I don't have any reason to need latency below even 100ms. I'd be totally fine even with 200ms as long as it wouldn't glitch under higher load.