Page 1 of 1

Periodic bursts of xruns

Posted: Sun Mar 01, 2015 3:29 pm
by stefan
Hi,

I've tried every Jack combination there is but he still throws me a dozen xruns every 5 minutes. It's always like that. 10 to 25 xruns every 5 minutes, or so. So I turn to You for some advice on how to move forward. I really would like my latency to drop below 10ms. But I can't without getting this periodic xrun problem... If I change the "Buffer size" to 512 I get no xruns but "Block Latency" jumps up to 10.7ms. I still get a peak in "DSP Load" every 5 minutes, but no xruns.

I use:
Focusrite Scarlett 2i2
Asus Zenbook (model UX31E with motherboard N13219)
kxstudio 14.04 64bit

Maybe 10.7ms latency is what I would expect and get on with it?

Code: Select all

uname -a
 Linux kxstudio 3.13.0-46-lowlatency #75-Ubuntu SMP PREEMPT Tue Feb 10 15:41:07 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Code: Select all

cat /proc/asound/cards                                                                                                                                                                                         
 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xdfe00000 irq 53
 1 [Loopback       ]: Loopback - Loopback
                      Loopback 1
 2 [O25            ]: USB-Audio - Oxygen 25
                      M-Audio Oxygen 25 at usb-0000:03:00.0-1, full speed
 3 [USB            ]: USB-Audio - Scarlett 2i2 USB

Code: Select all

cat /etc/security/limits.conf
 ...
 @audio        -       rtprio          99
 @audio        -       memlock         unlimited
 ...

Code: Select all

cat /proc/interrupts 
           CPU0       CPU1       CPU2       CPU3       
  0:         33          0          0          0  IR-IO-APIC-edge      timer
  1:       2254          0          0          0  IR-IO-APIC-edge      i8042
  8:          1          0          0          0  IR-IO-APIC-edge      rtc0
  9:       1855          0          0          0  IR-IO-APIC-fasteoi   acpi
 12:     178859          0          0          0  IR-IO-APIC-edge      i8042
 17:      62856          0          0          0  IR-IO-APIC-fasteoi   ath9k
 23:     984995    2889591          0          0  IR-IO-APIC-fasteoi   ehci_hcd:usb1
 40:          0          0          0          0  DMAR_MSI-edge      dmar0
 41:          0          0          0          0  DMAR_MSI-edge      dmar1
 42:          0          0          0          0  IR-PCI-MSI-edge      PCIe PME
 43:          0          0          0          0  IR-PCI-MSI-edge      PCIe PME
 44:          0          0          0          0  IR-PCI-MSI-edge      PCIe PME
 45:        123         64          0          0  IR-PCI-MSI-edge      xhci_hcd
 46:          0          0          0          0  IR-PCI-MSI-edge      xhci_hcd
 47:          0          0          0          0  IR-PCI-MSI-edge      xhci_hcd
 48:          0          0          0          0  IR-PCI-MSI-edge      xhci_hcd
 49:          0          0          0          0  IR-PCI-MSI-edge      xhci_hcd
 50:      44255       8491          0          0  IR-PCI-MSI-edge      ahci
 51:     114914          0          0          0  IR-PCI-MSI-edge      i915
 52:         15          0          0          0  IR-PCI-MSI-edge      mei_me
 53:        308          0          0          0  IR-PCI-MSI-edge      snd_hda_intel
NMI:         24         26         20         20   Non-maskable interrupts
LOC:     496686     453084     462511     567017   Local timer interrupts
SPU:          0          0          0          0   Spurious interrupts
PMI:         24         26         20         20   Performance monitoring interrupts
IWI:       5131       7223       5853       4480   IRQ work interrupts
RTR:          0          0          0          0   APIC ICR read retries
RES:      78690      75395     106406     105449   Rescheduling interrupts
CAL:        906        591        892        803   Function call interrupts
TLB:      17583      17186      14810      14884   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:          9          9          9          9   Machine check polls
ERR:          0
MIS:          0

Re: Periodic bursts of xruns

Posted: Mon Mar 02, 2015 4:19 am
by tramp
Your Realtime priority (10) seems to be very low, I've mine always set to 85.
Besides that, it sounds like a system service which cause the trouble.

Re: Periodic bursts of xruns

Posted: Tue Mar 03, 2015 1:29 am
by glowrak guy
Install htop, and run it from a terminal, should let you know what's causing the xruns. Shows all the running processes,
their priority, memory and cpu use, among other useful things.
Cheers

Re: Periodic bursts of xruns

Posted: Tue Mar 03, 2015 6:23 pm
by Broomy
Do you have wlan on?
This could cause some trouble.