During such a wave (lasts from ~10 secs to a minute), I hear a low-frequency humming sound, sometimes changing pitch a little before it recovers. qjackctl shows many messages 'XRUN callback (nnn skipped).'
No particular audio processing is done (also happens when nothing is playing). Both CPU and DSP loads are at a few percent. During such a wave, the load does not go up, nothing particular seen in top.
It also happens with 128 and 256 frames/period. Only at 512 frames or longer does the issue not appear to occur at all anymore.
Has anyone experienced such a behaviour before and could shed some light on a possible cause/remedy?
Testing done so far
All of the following was tested and did not improve the issue:
- PREEMPT_RT kernel (normally I use lowlatency), also GRUB_CMDLINE_LINUX="threadirqs" is set
- Disabling the on-board sound completely in BIOS, or unloading the Pulse modules jack-source/jack-sink
- Removing a2jmidi
- Disabling AMD Cool’n’Quiet (frequency throtteling) in the BIOS (usually I use the performance frequency governor)
- Disabling SMT (CPU multithreading) in the BIOS
- Using the rtirq script to boost the realtime priority of the USB bus interrupt (IRQ 57). I verified that this IRQ does actually is boosted.
- Stopping JACK and using ALSA directly with Ardour in an empty session.
- Using 3 periods/buffer in JACK
Set-up
- Xubuntu 20.04 LTS
- AMD Ryzen 5 3400G (on-board graphics) on Gigabyte B450M S2H mainboard, 16 GByte RAM
- Three SATA devices: an SSD, a harddisk (not mounted), and a DVD drive (not used)
- Mainboard audio handled by Pulse, USB audio by JACK, a2jmidi for bridging ALSA MIDI
- USB sound card is the only device on its USB bus
- No swap enabled
I recently upgraded from a eleven-year old system, and wanted to explore smaller latencies than before.