ERROR: JackEngine::XRun: client

Optimize your system for ultimate performance.

Moderators: MattKingUSA, khz

merlyn
Established Member
Posts: 1392
Joined: Thu Oct 11, 2018 4:13 pm
Has thanked: 168 times
Been thanked: 247 times

Re: ERROR: JackEngine::XRun: client

Post by merlyn »

Post the output of

Code: Select all

$ rtirq status
christobal
Established Member
Posts: 108
Joined: Sun Sep 01, 2019 12:58 pm
Has thanked: 21 times
Been thanked: 11 times

Re: ERROR: JackEngine::XRun: client

Post by christobal »

rtprio status:

Code: Select all

 PID CLS RTPRIO  NI PRI %CPU STAT COMMAND
    184 FF      50   -  90  0.0 S    irq/9-acpi
    195 FF      50   -  90  0.0 S    irq/25-AMD-Vi
    201 FF      50   -  90  0.0 S    irq/29-aerdrv
    203 FF      50   -  90  0.0 S    irq/30-aerdrv
    205 FF      50   -  90  0.0 S    irq/31-aerdrv
    207 FF      50   -  90  0.0 S    irq/32-aerdrv
    221 FF      50   -  90  0.0 S    irq/39-ahci[000
    245 FF      50   -  90  0.0 S    irq/41-ahci[000
    249 FF      50   -  90  0.0 S    irq/43-ahci[000
    253 FF      50   -  90  0.0 S    irq/8-rtc0
    309 FF      50   -  90  0.0 S    irq/44-xhci_hcd
    310 FF      50   -  90  0.4 S    irq/46-xhci_hcd
    311 FF      50   -  90  0.0 S    irq/47-xhci_hcd
    312 FF      50   -  90  0.0 S    irq/48-xhci_hcd
    313 FF      50   -  90  0.0 S    irq/49-xhci_hcd
    314 FF      50   -  90  0.0 S    irq/50-xhci_hcd
    315 FF      50   -  90  0.0 S    irq/51-xhci_hcd
    316 FF      50   -  90  0.0 S    irq/52-xhci_hcd
    317 FF      50   -  90  0.0 S    irq/53-xhci_hcd
    460 FF      50   -  90  0.0 S    irq/7-pinctrl_a
    552 FF      50   -  90  0.0 S    irq/59-snd_hda_
    680 FF      50   -  90  0.0 S    irq/58-enp34s0
    977 FF      50   -  90  0.2 S    irq/60-nvidia
    196 FF      49   -  89  0.0 S    irq/25-s-AMD-Vi
    202 FF      49   -  89  0.0 S    irq/29-s-aerdrv
    204 FF      49   -  89  0.0 S    irq/30-s-aerdrv
    206 FF      49   -  89  0.0 S    irq/31-s-aerdrv
    208 FF      49   -  89  0.0 S    irq/32-s-aerdrv
    978 FF      49   -  89  0.8 S    irq/60-s-nvidia
      9 TS       -   0  19  0.0 S    ksoftirqd/0
     21 TS       -   0  19  0.0 S    ksoftirqd/1
     28 TS       -   0  19  0.0 S    ksoftirqd/2
     35 TS       -   0  19  0.0 S    ksoftirqd/3
     42 TS       -   0  19  0.0 S    ksoftirqd/4
     49 TS       -   0  19  0.0 S    ksoftirqd/5
     56 TS       -   0  19  0.0 S    ksoftirqd/6
     63 TS       -   0  19  0.0 S    ksoftirqd/7
     70 TS       -   0  19  0.0 R    ksoftirqd/8
     77 TS       -   0  19  0.0 S    ksoftirqd/9
     84 TS       -   0  19  0.0 S    ksoftirqd/10
     91 TS       -   0  19  0.0 S    ksoftirqd/11
     98 TS       -   0  19  0.0 S    ksoftirqd/12
    105 TS       -   0  19  0.0 S    ksoftirqd/13
    112 TS       -   0  19  0.0 S    ksoftirqd/14
    119 TS       -   0  19  0.0 R    ksoftirqd/15


Also, full interrupts:

Code: Select all

   0: IR-IO-APIC    2-edge      timer
   7: IR-IO-APIC    7-fasteoi   pinctrl_amd
   8: IR-IO-APIC    8-edge      rtc0
   9: IR-IO-APIC    9-fasteoi   acpi
  25: PCI-MSI 4096-edge      AMD-Vi
  29: IR-PCI-MSI 116736-edge      aerdrv
  30: IR-PCI-MSI 133120-edge      aerdrv
  31: IR-PCI-MSI 135168-edge      aerdrv
  32: IR-PCI-MSI 137216-edge      aerdrv
  39: IR-PCI-MSI 1574912-edge      ahci[0000:03:00.1]
  41: IR-PCI-MSI 25165824-edge      ahci[0000:30:00.0]
  43: IR-PCI-MSI 25690112-edge      ahci[0000:31:00.0]
  44: IR-PCI-MSI 1572864-edge      xhci_hcd
  46: IR-PCI-MSI 20977664-edge      xhci_hcd
  47: IR-PCI-MSI 20977665-edge      xhci_hcd
  48: IR-PCI-MSI 20977666-edge      xhci_hcd
  49: IR-PCI-MSI 20977667-edge      xhci_hcd
  50: IR-PCI-MSI 20977668-edge      xhci_hcd
  51: IR-PCI-MSI 20977669-edge      xhci_hcd
  52: IR-PCI-MSI 20977670-edge      xhci_hcd
  53: IR-PCI-MSI 20977671-edge      xhci_hcd
  58: IR-PCI-MSI 17825792-edge      enp34s0
  59: IR-IO-APIC   31-fasteoi   snd_hda_intel:card0
  60: IR-PCI-MSI 19922944-edge      nvidia

OS: Manjaro
Amp: Echolette M40 / NG51S Tape Echo
Strings: Martin D15M, Yamaha FG-180, Alhambra 5P, Yamaha Revstar
merlyn
Established Member
Posts: 1392
Joined: Thu Oct 11, 2018 4:13 pm
Has thanked: 168 times
Been thanked: 247 times

Re: ERROR: JackEngine::XRun: client

Post by merlyn »

Edit /etc/rtirq.conf with this :

Code: Select all

RTIRQ_NAME_LIST="xhci"
Then do

Code: Select all

$ sudo rtirq restart
Then post

Code: Select all

$ rtirq status
again.

Have you noticed any difference?
christobal
Established Member
Posts: 108
Joined: Sun Sep 01, 2019 12:58 pm
Has thanked: 21 times
Been thanked: 11 times

Re: ERROR: JackEngine::XRun: client

Post by christobal »

Code: Select all

    309 FF      90   - 130  0.0 S    irq/44-xhci_hcd
    310 FF      89   - 129  0.5 S    irq/46-xhci_hcd
    311 FF      88   - 128  0.0 S    irq/47-xhci_hcd
    312 FF      87   - 127  0.0 S    irq/48-xhci_hcd
    313 FF      86   - 126  0.0 S    irq/49-xhci_hcd
    314 FF      85   - 125  0.0 S    irq/50-xhci_hcd
    552 FF      85   - 125  0.0 S    irq/59-snd_hda_
    315 FF      84   - 124  0.0 S    irq/51-xhci_hcd
    316 FF      83   - 123  0.0 S    irq/52-xhci_hcd
    317 FF      82   - 122  0.0 S    irq/53-xhci_hcd
    184 FF      50   -  90  0.0 S    irq/9-acpi
    195 FF      50   -  90  0.0 S    irq/25-AMD-Vi
    201 FF      50   -  90  0.0 S    irq/29-aerdrv
    203 FF      50   -  90  0.0 S    irq/30-aerdrv
    205 FF      50   -  90  0.0 S    irq/31-aerdrv
    207 FF      50   -  90  0.0 S    irq/32-aerdrv
    221 FF      50   -  90  0.0 S    irq/39-ahci[000
    245 FF      50   -  90  0.0 S    irq/41-ahci[000
    249 FF      50   -  90  0.0 S    irq/43-ahci[000
    253 FF      50   -  90  0.0 S    irq/8-rtc0
    460 FF      50   -  90  0.0 S    irq/7-pinctrl_a


Still same scenario, endless stream of xruns the second i connect jack at 32


my max_user_freq is at 64, I dunno if that matters
OS: Manjaro
Amp: Echolette M40 / NG51S Tape Echo
Strings: Martin D15M, Yamaha FG-180, Alhambra 5P, Yamaha Revstar
merlyn
Established Member
Posts: 1392
Joined: Thu Oct 11, 2018 4:13 pm
Has thanked: 168 times
Been thanked: 247 times

Re: ERROR: JackEngine::XRun: client

Post by merlyn »

Debugging, eh? If you keep ruling things out you will get to the problem. Analysing what has happened so far : in the first rtirq status output there were two nvidia IRQs using 0.8 and 0.2 % CPU. It doesn't seem much, but they are wanting attention and could get in the way of the soundcard.

In my rtirq status output the radeon driver interrupt is using 0% CPU :

Code: Select all

308 FF      50   -  90  0.0 S    irq/30-radeon
IRQ 46 is probably your soundcard because it is using some CPU. In rtirq.conf names are preferred because the numbers can change on successive boots.

You've got a powerful chip so you should be able to do better. You could try starting JACK with the internal soundcard to see if it's a USB problem. I haven't seen a list of IRQs that are all xhci. Must be a new thing. There is the possibility that you could do something about that in the BIOS -- a setting like 'enable legacy USB' or something like that.
christobal
Established Member
Posts: 108
Joined: Sun Sep 01, 2019 12:58 pm
Has thanked: 21 times
Been thanked: 11 times

Re: ERROR: JackEngine::XRun: client

Post by christobal »

It's the exact same behavior with the internal card.

BIOS will have to wait, after changing a setting the other day to allow for resizable BAR support, I only get display before OS through HDMI, which I dont have right now ;)


This is my latest output from the realtimequickscan:

Code: Select all

Checking if you are root... no - good
Checking filesystem 'noatime' parameter... 5.8.18 kernel - good
(relatime is default since 2.6.30)
Checking CPU Governors... CPU 0: 'performance' CPU 1: 'performance' CPU 10: 'performance' CPU 11: 'performance' CPU 12: 'performance' CPU 13: 'performance' CPU 14: 'performance' CPU 15: 'performance' CPU 2: 'performance' CPU 3: 'performance' CPU 4: 'performance' CPU 5: 'performance' CPU 6: 'performance' CPU 7: 'performance' CPU 8: 'performance' CPU 9: 'performance'  - good
Checking swappiness... 10 - good
Checking for resource-intensive background processes... none found - good
Checking checking sysctl inotify max_user_watches... >= 524288 - good
Checking whether you're in the 'audio' group... yes - good
Checking for multiple 'audio' groups... no - good
Checking the ability to prioritize processes with chrt... yes - good
Checking kernel support for high resolution timers... found - good
Kernel with Real-Time Preemption... 'threadirqs' kernel parameter - good
Checking if kernel system timer is high-resolution... found - good
Checking kernel support for tickless timer... found - good
== Other checks ==
Checking filesystem types... ok.
Checking for devices at IRQ 46... did not find multiple. ok.


OS: Manjaro
Amp: Echolette M40 / NG51S Tape Echo
Strings: Martin D15M, Yamaha FG-180, Alhambra 5P, Yamaha Revstar
merlyn
Established Member
Posts: 1392
Joined: Thu Oct 11, 2018 4:13 pm
Has thanked: 168 times
Been thanked: 247 times

Re: ERROR: JackEngine::XRun: client

Post by merlyn »

christobal wrote:It's the exact same behavior with the internal card.
That rules out a USB problem. This leaves trying a different graphics card or the nouveau drivers. Now, before @sysrqer jumps in to point out how rubbish the nouveau drivers are this would just be to identify the problem, not as a long term solution, as the nouveau drivers are not the best.

Motherboards don't always have built in graphics these days but if you do you could try that.
christobal
Established Member
Posts: 108
Joined: Sun Sep 01, 2019 12:58 pm
Has thanked: 21 times
Been thanked: 11 times

Re: ERROR: JackEngine::XRun: client

Post by christobal »

The problem was there as I said on AVLinux with rt kernel and nouvou - since AVlinux does not support third party drivers.
OS: Manjaro
Amp: Echolette M40 / NG51S Tape Echo
Strings: Martin D15M, Yamaha FG-180, Alhambra 5P, Yamaha Revstar
christobal
Established Member
Posts: 108
Joined: Sun Sep 01, 2019 12:58 pm
Has thanked: 21 times
Been thanked: 11 times

Re: ERROR: JackEngine::XRun: client

Post by christobal »

I just tested the interface on my friends windows computer, where it runs 96k/32 without any problems. So it's not the card at least.

I tried 96/256 to get latency down, but I do more xruns than I would like there also with both Ardour and Bitwig.

Mostly these:

Code: Select all

Fri Dec 11 19:53:15 2020: ERROR: JackEngine::XRun: client = Bitwig Studio was not finished, state = Running
Fri Dec 11 19:53:15 2020: ERROR: JackAudioDriver::ProcessGraphAsyncMaster: Process error

Fri Dec 11 19:43:29 2020: ERROR: JackEngine::XRun: client = ardour was not finished, state = Running
Fri Dec 11 19:43:29 2020: ERROR: JackAudioDriver::ProcessGraphAsyncMaster: Process error

Edit: After trying all the different kind of hz/buffersize combinations, it seems the problem arises when the block latency goes below whatever combination gives 5.3 ms to whatever combination gives 2.7 ms. No matter the combo at 2.7 there are x-runs. Varying amount depending on freq/buffer.

As long as I keep it at a combination that gives 5.3 (for example 48/256, 96/512, etc) there are no problems really. Still, very odd.
OS: Manjaro
Amp: Echolette M40 / NG51S Tape Echo
Strings: Martin D15M, Yamaha FG-180, Alhambra 5P, Yamaha Revstar
merlyn
Established Member
Posts: 1392
Joined: Thu Oct 11, 2018 4:13 pm
Has thanked: 168 times
Been thanked: 247 times

Re: ERROR: JackEngine::XRun: client

Post by merlyn »

If you told me you had a fast, multi-processor chip and were getting 'good' for everything on realtimeconfigquickscan I would expect your system to go like a rocket so you have my sympathy that that is not the case.

Some ideas

- Borrow an AMD graphics card
- Try a Liquorix kernel
- What options are there in the nvidia control panel? I remember putting the power profile to 'performance' for the nvidia card.
- Any options in the BIOS when you get a chance to look at it?
- Rather technical but what speed of memory does your friend have? Is it the same as yours? There is this 'infinity fabric' thing where Ryzens perform best with a 1:1 relationship between the infinity fabric clock and the memory clock. (long shot).

I hope you can resolve this, partly because I was thinking about getting a Ryzen :D
christobal
Established Member
Posts: 108
Joined: Sun Sep 01, 2019 12:58 pm
Has thanked: 21 times
Been thanked: 11 times

Re: ERROR: JackEngine::XRun: client

Post by christobal »

merlyn wrote: Sat Dec 12, 2020 2:47 pm If you told me you had a fast, multi-processor chip and were getting 'good' for everything on realtimeconfigquickscan I would expect your system to go like a rocket so you have my sympathy that that is not the case.

Some ideas

- Borrow an AMD graphics card
- Try a Liquorix kernel
- What options are there in the nvidia control panel? I remember putting the power profile to 'performance' for the nvidia card.
- Any options in the BIOS when you get a chance to look at it?
- Rather technical but what speed of memory does your friend have? Is it the same as yours? There is this 'infinity fabric' thing where Ryzens perform best with a 1:1 relationship between the infinity fabric clock and the memory clock. (long shot).

I hope you can resolve this, partly because I was thinking about getting a Ryzen :D
Yeah I'm quite perplexed to be honest, haha. I'm considering installing Win10 just to see if it's hardware related, I just can't be bothered right now, I only have one harddrive and everything else is set up real nice right now.

Haven't been able to look into the BIOS more yet no.

We have the same RAM, and I am at 1:1 (3200mhz/1600)

Nvidia is at performance.

My CPU even boosts far higher than his with better temps because of his shitty fan setup. (I dunno how accurate gtkstresstest is in reporting clocks, but my max boost clocks range between 4350 - 4700 on different cores, something that honestly sounds a bit high even if it's just for a second).
OS: Manjaro
Amp: Echolette M40 / NG51S Tape Echo
Strings: Martin D15M, Yamaha FG-180, Alhambra 5P, Yamaha Revstar
Post Reply