[LAU] reducing xruns (System configuration)

Max abonnements at revolwear.com
Wed Jul 18 19:27:26 CEST 2018


Hi Jeanette, thank you for your advice.

On 18.07.2018 18:49, Jeanette C. wrote:
> for a start, do look at /proc/interrupts as suggestd by the script. 

            CPU0       CPU1       CPU2       CPU3       CPU4       CPU5 
      CPU6       CPU7
   0:         22          0          0          0          0          0 
         0          0   IO-APIC   2-edge      timer
   1:          0          0          0          0          0          0 
       195          0   IO-APIC   1-edge      i8042
   8:          0          0          0          0          0          0 
         0          1   IO-APIC   8-edge      rtc0
   9:          0       6144          0          0          0          0 
         0          0   IO-APIC   9-fasteoi   acpi 

  12:          0          0          0          0          0        499 
         0          0   IO-APIC  12-edge      i8042 

  16:          0          0         31          0          0          0 
         0          0   IO-APIC  16-fasteoi   ehci_hcd:usb1 

  23:          0          0          0         35          0          0 
         0          0   IO-APIC  23-fasteoi   ehci_hcd:usb2 

  24:          0   55975374          0          0        753          0 
         0          0   PCI-MSI 327680-edge      xhci_hcd 

  25:         22          0          0          0          0          0 
         0          0   PCI-MSI 1572864-edge      rtsx_pci
  26:          0      14018          0          0          0          0 
    350867          0   PCI-MSI 512000-edge      ahci[0000:00:1f.2]
  27:          0          0          0          0        122          0 
         0     581368   PCI-MSI 2097152-edge      enp4s0
  28:          0          0        748    1746778          0          0 
         0          0   PCI-MSI 32768-edge      i915
  29:          0          0          0         18          0          0 
         0          0   PCI-MSI 360448-edge      mei_me
  31:          0          0          0          0          0      12035 
         0          0   PCI-MSI 2621440-edge      iwlwifi
  32:          0          0          0          0          0          0 
        89          0   PCI-MSI 49152-edge      snd_hda_intel:card0
  33:          0          0          0          0          0          0 
         0      81843   PCI-MSI 442368-edge      snd_hda_intel:card1
NMI:        229        233        244        137        188         99 
      147        107   Non-maskable interrupts
LOC:    8147412   11215181    8654677    7200413    6723892    2734777 
  4631806    2358955   Local timer interrupts
SPU:          0          0          0          0          0          0 
        0          0   Spurious interrupts
PMI:        229        233        244        137        188         99 
      147        107   Performance monitoring interrupts
IWI:       2900        885       1195     309101       1956       2702 
     5074       3143   IRQ work interrupts
RTR:          0          0          0          0          0          0 
        0          0   APIC ICR read retries
RES:    2223602    2119245    1217195     695903     667320      97291 
   114748      73705   Rescheduling interrupts
CAL:     895506     552115     863706     521526     842682     695239 
  1098867     768611   Function call interrupts
TLB:     842180     507316     819848     475430     799540     649222 
  1055178     722638   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
DFR:          0          0          0          0          0          0 
        0          0   Deferred Error APIC interrupts
MCE:          0          0          0          0          0          0 
        0          0   Machine check exceptions
MCP:         86         87         87         87         87         87 
       87         87   Machine check polls
HYP:          0          0          0          0          0          0 
        0          0   Hypervisor callback interrupts
HRE:          0          0          0          0          0          0 
        0          0   Hyper-V reenlightenment interrupts
HVS:          0          0          0          0          0          0 
        0          0   Hyper-V stimer0 interrupts
ERR:          0
MIS:          0
PIN:          0          0          0          0          0          0 
        0          0   Posted-interrupt notification event
NPI:          0          0          0          0          0          0 
        0          0   Nested posted-interrupt event
PIW:          0          0          0          0          0          0 
        0          0   Posted-interrupt wakeup event

I#m not sure how to read this table..

> Looking at /proc/asound/cards will also give you a list of your 
> currently recognised ALSA soundcards.

cat /proc/asound/cards
  0 [HDMI           ]: HDA-Intel - HDA Intel HDMI
                       HDA Intel HDMI at 0xf2610000 irq 32
  1 [PCH            ]: HDA-Intel - HDA Intel PCH
                       HDA Intel PCH at 0xf2614000 irq 33
  2 [CODEC          ]: USB-Audio - USB AUDIO  CODEC
                       BurrBrown from Texas Instruments USB AUDIO  CODEC 
at usb-0000:00:14.0-1, full s

> Set the IRQ of the soundcard that you want to use for your realtime 
> audio. And probably do it with:
> export VARIABLENAME=irq_number
> (if you're in bash/sh).

For the card 2 this would be
"export SOUND_CARD_IRQ=usb-0000:00:14.0-1" ?

> Next, you might want to check your swap-space. I had problems with that. 
> My hard disk is a little slow and both swapping and recording/streaming 
> from the same disk might cause issues. If you're drive is new and fast 
> enough: don't worry.

It's a SSD. Not brand new, but reasonably fast I believe. I have a 2 GB 
swap partition on the drive.

> If you're using JACK, check the periods and buffersize. Perhaps it's a 
> little low.

It is.. :)

> The quickscan script didn't find your filesystem types, it appears, 
> unless that was only the missing /tmp to which that "not found" 
> referred. Check your partition filesystems. You can look at /etc/fstab 
> or /etc/mtab. The first specifies how your partitions should be handled, 
> but that might contain the odd automatic discovery. mtab gives you the 
> status quo of everything currently mounted. Don't worry about all the 
> /proc, /sys and /dev items.

I think I am only missing /tmp, but does it matter? The rest of the file 
system is ext4

> In the end, you might want to install a kernel with realtime preemtion. 
> Since it's kubuntustudio, I exptect they have a preemt kernel in their 
> package repos.

I am using a lowlatency kernel in a normal kubuntu with kxstudio repos, 
not ubuntustudio. Is that a problem?

thanks

m.


More information about the Linux-audio-user mailing list