[LAU] Too many xruns

Kevin Cosgrove kevinc at cosgroves.us
Wed Sep 5 19:24:26 UTC 2012


On 5 September 2012 at 9:11, Jeremy Jongepier <jeremy at autostatic.com> wrote:

> On 09/05/12 06:17, Kevin Cosgrove wrote:
> > Hello,
> >
> > I'm trying to record on a new system, and I'm getting xruns.  My
> > old system produced no xruns.
> >
> > The problem system runs:
> >
> >    Fedora 17
> >    Kernel 3.5.2-3.fc17.x86_64
> >    Ardour 2.8.14
> >    JACK 1.9.8
> >    Intel i7, 16GB RAM, SATA 6Gb/s drives
> >
> > My user ID is a member of the "jackuser" group.
> >
> > Jack is running as:
> >
> > /usr/bin/jackd \
> >    -T -ndefault -p 256 -R -P 60 -T -d alsa -n 2 -r 48000 -p 1024 -d hw:2,0
> >
> > In 43 minutes I've had almost 6700 xruns.
> >
> >
> > The working system runs:
> >
> >    Mandriva 2010.2
> >    Kernel 2.6.33.7-server-2mnb
> >    Ardour 2.8.11
> >    JACK 1.9.5
> >    Intel Q9650, 4GB RAM, IDE drives
> >
> >
> > Reading through the CCRMA documentation here:
> >
> > http://ccrma.stanford.edu/planetccrma/software/installplanetsixteen.html
> >
> > It looks like the kernel and jack for F17 are built for "proper
> > realtime priority".  What am I missing.  Is there something
> > I need to do beyond being a member of "jackuser" in order to
> > operate with acceptable xruns?
> >
> > I think I'll go back to the old system for a while.
> >
> > Thanks....
> >
> > --
> > Kevin
> 
> 
> Hello Kevin,
> 
> Could you post the output of:
> cat /proc/asound/cards

Xrunning system says:

 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xf7e20000 irq 70
 1 [M1010          ]: ICE1712 - M Audio Delta 1010
                      M Audio Delta 1010 at 0xa040, irq 16
 2 [NVidia         ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xf7080000 irq 17

Fine system says:

 0 [Intel          ]: HDA-Intel - HDA Intel
                      HDA Intel at 0xfbff8000 irq 30
 1 [M1010          ]: ICE1712 - M Audio Delta 1010
                      M Audio Delta 1010 at 0xec00, irq 17

I'm using the Delta 1010 cards on each system with Jack & Ardour.

> cat /proc/interrupts

Xrunning system says:

           CPU0       CPU1       CPU2       CPU3       CPU4       CPU5       CPU6       CPU7
  0:        129          0          0          0          0          0          0          0   IO-APIC-edge      timer
  1:          3          0          0          0          0          0          0          0   IO-APIC-edge      i8042
  8:          1          0          0          0          0          0          0          0   IO-APIC-edge      rtc0
  9:          0          0          0          0          0          0          0          0   IO-APIC-fasteoi   acpi
 12:      17478          0          0          0          0          0          0          0   IO-APIC-edge      i8042
 16:      56322          0          0          0          0          0          0          0   IO-APIC-fasteoi   ahci, ehci_hcd:usb1, firewire_ohci, snd_ice1712, nvidia
 17:        154          0          0          0          0          0          0          0   IO-APIC-fasteoi   snd_hda_intel
 23:        289          0          0          9          0          0          0          0   IO-APIC-fasteoi   ehci_hcd:usb2
 49:      10439      82409       9643        133          0          0          0          0   PCI-MSI-edge      ahci
 50:          5          0          0          0          0          0          0          0   PCI-MSI-edge      ahci
 51:          1          0          0          0          0          0          0          0   PCI-MSI-edge      xhci_hcd
 52:          0          0          0          0          0          0          0          0   PCI-MSI-edge      xhci_hcd
 53:          0          0          0          0          0          0          0          0   PCI-MSI-edge      xhci_hcd
 54:          0          0          0          0          0          0          0          0   PCI-MSI-edge      xhci_hcd
 55:          0          0          0          0          0          0          0          0   PCI-MSI-edge      xhci_hcd
 56:          0          0          0          0          0          0          0          0   PCI-MSI-edge      xhci_hcd
 57:          0          0          0          0          0          0          0          0   PCI-MSI-edge      xhci_hcd
 58:          0          0          0          0          0          0          0          0   PCI-MSI-edge      xhci_hcd
 59:          1          0          0          0          0          0          0          0   PCI-MSI-edge      xhci_hcd
 60:          0          0          0          0          0          0          0          0   PCI-MSI-edge      xhci_hcd
 61:          0          0          0          0          0          0          0          0   PCI-MSI-edge      xhci_hcd
 62:          0          0          0          0          0          0          0          0   PCI-MSI-edge      xhci_hcd
 63:          0          0          0          0          0          0          0          0   PCI-MSI-edge      xhci_hcd
 64:          0          0          0          0          0          0          0          0   PCI-MSI-edge      xhci_hcd
 65:          0          0          0          0          0          0          0          0   PCI-MSI-edge      xhci_hcd
 66:          0          0          0          0          0          0          0          0   PCI-MSI-edge      xhci_hcd
 67:         11          0          0          0          0          0          0          0   PCI-MSI-edge      mei
 68:         71          0          0     497508          0          0          0          0   PCI-MSI-edge      em1
 69:          0          0          0          0          0          0          0          0   PCI-MSI-edge      p121p1
 70:        816          0          0          0          0          0          0          0   PCI-MSI-edge      snd_hda_intel
NMI:         20         23         16         26          3          3          2          2   Non-maskable interrupts
LOC:      41295     171368      36696     193528      13059       9923       8421      11449   Local timer interrupts
SPU:          0          0          0          0          0          0          0          0   Spurious interrupts
PMI:         20         23         16         26          3          3          2          2   Performance monitoring interrupts
IWI:          0          0          0          0          0          0          0          0   IRQ work interrupts
RTR:          7          0          0          0          0          0          0          0   APIC ICR read retries
RES:      31602       6824       1130        666        841        419        249        359   Rescheduling interrupts
CAL:        474        704        676        725        704        745        722        777   Function call interrupts
TLB:        420        366        352        427        930        717        170        414   TLB shootdowns
TRM:          0          0          0          0          0          0          0          0   Thermal event interrupts
THR:          0          0          0          0          0          0          0          0   Threshold APIC interrupts
MCE:          0          0          0          0          0          0          0          0   Machine check exceptions
MCP:          9          9          9          9          9          9          9          9   Machine check polls
ERR:          0
MIS:          0

Fine system says:

            CPU0       CPU1       CPU2       CPU3
   0:         35          0          0          0   IO-APIC-edge      timer
   1:          4          2          5          3   IO-APIC-edge      i8042
   4:          0          0          1          1   IO-APIC-edge
   6:          2          0          2          0   IO-APIC-edge      floppy
   8:          0          0          0          1   IO-APIC-edge      rtc0
   9:          0          0          0          0   IO-APIC-fasteoi   acpi
  12:        313        271         45         48   IO-APIC-edge      i8042
  14:          0          0          0          0   IO-APIC-edge      ide0
  15:          0          0          0          0   IO-APIC-edge      ide1
  16:      14878      13436        479        480   IO-APIC-fasteoi   uhci_hcd:usb1, uhci_hcd:usb6, pata_marvell, nvidia
  17:          0          0          0          0   IO-APIC-fasteoi   ICE1712
  18:        164        165        328        289   IO-APIC-fasteoi   uhci_hcd:usb5, ehci_hcd:usb7
  19:          0          0          0          0   IO-APIC-fasteoi   uhci_hcd:usb4
  21:          9         10         11          9   IO-APIC-fasteoi   uhci_hcd:usb2
  23:          0          0          0          0   IO-APIC-fasteoi   uhci_hcd:usb3, ehci_hcd:usb8
  28:       1672       1672       4348       3307   PCI-MSI-edge      ahci
  29:         33         40         38       5319   PCI-MSI-edge      eth0
  30:         70         71         67         69   PCI-MSI-edge      hda_intel
 NMI:          0          0          0          0   Non-maskable interrupts
 LOC:      10557      10313      10611      11666   Local timer interrupts
 SPU:          0          0          0          0   Spurious interrupts
 PMI:          0          0          0          0   Performance monitoring interrupts
 PND:          0          0          0          0   Performance pending work
 RES:        431        221        441        425   Rescheduling interrupts
 CAL:       3098       1409       3750       1325   Function call interrupts
 TLB:        682        535        805        608   TLB shootdowns
 TRM:          0          0          0          0   Thermal event interrupts
 THR:          0          0          0          0   Threshold APIC interrupts
 MCE:          0          0          0          0   Machine check exceptions
 MCP:          1          1          1          1   Machine check polls
 ERR:          3
 MIS:          0

> cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

Xrunning system says:

  ondemand
  ondemand
  ondemand
  ondemand
  ondemand
  ondemand
  ondemand
  ondemand

Fine system says:

  cat: No match.

There is no scaling_govenor file in the .../system/cpu/... tree.
This kernel is 2.6.33.  Whereas the other system kernel is 3.5.3.

> More information on tweaking your setup:
> http://wiki.linuxmusicians.com/doku.php?id=system_configuration

Excellent resource.  I was also going to try installing the CCRMA
RT kernel and any "accessories" it might require.

Thanks much!

--
Kevin




More information about the Linux-audio-user mailing list