Re: [LAU] Too many xruns

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-audio-user@...>, Kevin Cosgrove <kevinc@...>
Date: Saturday, September 8, 2012 - 6:09 pm

On 09/07/2012 02:40 AM, Jeremy Jongepier wrote:

What I use with success is (and this is all done by rtirq and jackd if
properly configured). All soft interrupts are left alone at their
default value of 50 (anything running with SCHED_FIFO or SCHED_RR
priority has priority over "normal" SCHED_OTHER scheduled processes -
the number does not really matter and the default of 50 is fine[*]). The
soundcard related software interrupts are raised so that sound
processing takes priority over everything else. All jack SCHED_FIFO
threads should run with a priority that is between 50 and the priority
of the soundcard related software interrupts. There should be enough
"irq priority space" around jack so that jack clients are not below 50
and not above the soundcard software interrupts. Some clients
(jconvolver is one) would benefit from additional headroom as they run
extra threads right below the priority of the client thread and you
probably don't want that to go below 50 (if you keep the default). This
assumes you run jackd with -R and the os is set up to allow a normal
user to do that and also lock memory down.

I have never had to tweak the hardware interrupts in the BIOS or
elsewhere, software interrupts have always been enough.

You might want to make sure that, say, the HDMI sound interface does not
have the priority raised if you are not using it.

-- Fernando

[*] some stuff, for example pd, runs some of its extra threads with
SCHED_FIFO with low priorities (1 or 2, I think).
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-user

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAU] Too many xruns, Kevin Cosgrove, (Wed Sep 5, 4:17 am)
Re: [LAU] Too many xruns, S. Massy, (Thu Sep 6, 1:55 pm)
Re: [LAU] Too many xruns, Kevin Cosgrove, (Thu Sep 6, 3:48 pm)
Re: [LAU] Too many xruns, Lorenzo Sutton, (Wed Sep 5, 7:50 am)
Re: [LAU] Too many xruns, Kevin Cosgrove, (Wed Sep 5, 2:43 pm)
Re: [LAU] Too many xruns, Kevin Cosgrove, (Wed Sep 5, 7:30 pm)
Re: [LAU] Too many xruns, Ralf Mardorf, (Wed Sep 5, 8:02 am)
Re: [LAU] Too many xruns, Kevin Cosgrove, (Wed Sep 5, 2:47 pm)
Re: [LAU] Too many xruns, Ralf Mardorf, (Wed Sep 5, 7:30 am)
Re: [LAU] Too many xruns, Kevin Cosgrove, (Wed Sep 5, 7:29 pm)
Re: [LAU] Too many xruns, Jeremy Jongepier, (Wed Sep 5, 7:11 am)
Re: [LAU] Too many xruns, Kevin Cosgrove, (Wed Sep 5, 7:24 pm)
Re: [LAU] Too many xruns, Kevin Cosgrove, (Thu Oct 11, 6:33 am)
Re: [LAU] Too many xruns, Paul Davis, (Thu Oct 11, 10:55 am)
Re: [LAU] Too many xruns, Kevin Cosgrove, (Thu Oct 11, 4:17 pm)
Re: [LAU] Too many xruns, Brendan Jones, (Fri Oct 12, 12:33 pm)
Re: [LAU] Too many xruns, Kevin Cosgrove, (Fri Oct 12, 4:07 pm)
Re: [LAU] Too many xruns, Brendan Jones, (Fri Oct 12, 6:55 pm)
Re: [LAU] Too many xruns, Kevin Cosgrove, (Fri Oct 12, 7:01 pm)
Re: [LAU] Too many xruns, Jeremy Jongepier, (Thu Oct 11, 6:01 pm)
Re: [LAU] Too many xruns, Kevin Cosgrove, (Thu Oct 11, 6:17 pm)
Re: [LAU] Too many xruns, Kevin Cosgrove, (Thu Oct 11, 4:50 pm)
Re: [LAU] Too many xruns, SxDx, (Thu Oct 11, 12:24 pm)
Re: [LAU] Too many xruns, R. Mattes, (Thu Oct 11, 3:45 pm)
Re: [LAU] Too many xruns, Jeremy Jongepier, (Thu Oct 11, 11:00 am)
Re: [LAU] Too many xruns, Jeremy Jongepier, (Thu Oct 11, 7:07 am)
Re: [LAU] Too many xruns, Kevin Cosgrove, (Thu Oct 11, 8:06 am)
Re: [LAU] Too many xruns, Jeremy Jongepier, (Thu Oct 11, 8:55 am)
Re: [LAU] Too many xruns, Kevin Cosgrove, (Thu Oct 11, 3:53 pm)
Re: [LAU] Too many xruns, Jeremy Jongepier, (Thu Oct 11, 5:58 pm)
Re: [LAU] Too many xruns, Len Ovens, (Thu Oct 11, 9:22 pm)
Re: [LAU] Too many xruns, Kevin Cosgrove, (Thu Oct 11, 6:03 pm)
Re: [LAU] Too many xruns, Len Ovens, (Thu Sep 6, 5:24 am)
Re: [LAU] Too many xruns, Kevin Cosgrove, (Thu Sep 6, 3:43 pm)
Re: [LAU] Too many xruns, Kevin Cosgrove, (Thu Sep 6, 5:02 pm)
Re: [LAU] Too many xruns, Joakim Hernberg, (Fri Sep 7, 8:18 am)
Re: [LAU] Too many xruns, Kevin Cosgrove, (Fri Sep 7, 8:25 pm)
Re: [LAU] Too many xruns, Jeremy Jongepier, (Fri Sep 7, 8:30 am)
Re: [LAU] Too many xruns, Joakim Hernberg, (Fri Sep 7, 9:23 am)
Re: [LAU] Too many xruns, Jeremy Jongepier, (Fri Sep 7, 9:40 am)
Re: [LAU] Too many xruns, Fernando Lopez-Lezcano, (Sat Sep 8, 6:09 pm)
Re: [LAU] Too many xruns, Joakim Hernberg, (Fri Sep 7, 10:46 am)
Re: [LAU] Too many xruns, Jeremy Jongepier, (Fri Sep 7, 11:03 am)
Re: [LAU] Too many xruns, Jeremy Jongepier, (Thu Sep 6, 7:12 pm)
Re: [LAU] Too many xruns, Len Ovens, (Thu Sep 6, 4:55 pm)
Re: [LAU] Too many xruns, Kevin Cosgrove, (Thu Sep 6, 5:08 pm)
Re: [LAU] Too many xruns, Paul Davis, (Thu Sep 6, 5:10 pm)
Re: [LAU] Too many xruns, Kevin Cosgrove, (Thu Sep 6, 5:30 pm)
Re: [LAU] Too many xruns, Ralf Mardorf, (Fri Sep 7, 2:15 am)
Re: [LAU] Too many xruns, Joakim Hernberg, (Fri Sep 7, 7:52 am)
Re: [LAU] Too many xruns, Paul Davis, (Fri Sep 7, 10:53 am)
[LAU] PCIe audio gear [was: Too many xruns], Kevin Cosgrove, (Fri Sep 7, 2:21 am)
Re: [LAU] PCIe audio gear [was: Too many xruns], Paul Davis, (Fri Sep 7, 4:02 am)
Re: [LAU] PCIe audio gear [was: Too many xruns], Len Ovens, (Fri Sep 7, 3:29 am)
Re: [LAU] PCIe audio gear [was: Too many xruns], Ralf Mardorf, (Fri Sep 7, 3:58 am)
Re: [LAU] PCIe audio gear [was: Too many xruns], Len Ovens, (Fri Sep 7, 4:47 am)
Re: [LAU] PCIe audio gear [was: Too many xruns], Kevin Cosgrove, (Fri Sep 7, 4:58 am)
Re: [LAU] PCIe audio gear [was: Too many xruns], Len Ovens, (Fri Sep 7, 1:08 pm)
Re: [LAU] PCIe audio gear [was: Too many xruns], Kevin Cosgrove, (Fri Sep 7, 8:31 pm)
Re: [LAU] PCIe audio gear [was: Too many xruns], Kevin Cosgrove, (Fri Oct 12, 5:18 pm)
Re: [LAU] PCIe audio gear [was: Too many xruns], Fernando Lopez-Lezcano, (Sat Sep 8, 6:59 pm)
Re: [LAU] PCIe audio gear [was: Too many xruns], Kevin Cosgrove, (Sun Sep 9, 4:14 pm)
Re: [LAU] PCIe audio gear [was: Too many xruns], Len Ovens, (Sat Sep 8, 9:53 pm)
Re: [LAU] PCIe audio gear [was: Too many xruns], Ralf Mardorf, (Mon Sep 10, 10:46 am)
Re: [LAU] PCIe audio gear [was: Too many xruns], Ralf Mardorf, (Fri Sep 7, 2:42 am)
Re: [LAU] Too many xruns, Jeremy Jongepier, (Thu Sep 6, 9:07 am)
Re: [LAU] Too many xruns, Len Ovens, (Thu Sep 6, 2:36 pm)
Re: [LAU] Too many xruns, Kevin Cosgrove, (Thu Sep 6, 3:50 pm)
Re: [LAU] Too many xruns, Len Ovens, (Thu Sep 6, 5:00 pm)
Re: [LAU] Too many xruns, S. Massy, (Thu Sep 6, 4:54 pm)
Re: [LAU] Too many xruns, Kevin Cosgrove, (Thu Sep 6, 5:04 pm)
Re: [LAU] Too many xruns, Rui Nuno Capela, (Thu Sep 6, 8:51 pm)
Re: [LAU] Too many xruns, Jeremy Jongepier, (Wed Sep 5, 7:42 pm)
Re: [LAU] Too many xruns, Kevin Cosgrove, (Mon Oct 1, 1:35 am)
Re: [LAU] Too many xruns, Fernando Lopez-Lezcano, (Wed Sep 5, 7:55 pm)
Re: [LAU] Too many xruns, Simon Wise, (Wed Sep 5, 5:02 am)
Re: [LAU] Too many xruns, Kevin Cosgrove, (Wed Sep 5, 2:37 pm)