You are not logged in.

#1 2026-11-28 12:27:44

matidfk
Member
Registered: 2022-04-17
Posts: 13

Can't get linux audio performance even remotely close to Windows

For the last month or so, ive been trying without success to replicate atleast comparable conditions on my Arch linux setup as I've had on windows.
I've tried JACK2, pipewire-jack, even just going straight through ALSA, with various configs for each but nothing I do seems to get me anywhere close to the performance I could get on windows.
I've gone and compared the latencies, figuring out that 4096 samples on Linux is the same as 2048 on windows. Then using 128 samples on windows, I was able to run about 100 instances of the TONE3000 plugin at the same time, however with 256 samples on linux (with its native linux version) i can barely run 3. any more and i get horrible constant xruns. I can't even use a NDSP plugin (via yabridge) at a latency i would deem acceptable without constant xruns.

My setup:
OS: Arch linux
Interface: Focusrite Solo 3rd gen via USB
DAW: Reaper (native linux build, tried windows build via wine too)
CPU: Ryzen 5 5600G
Plugins:
Neural DSP Fortin Nameless (windows native VST, on linux via yabridge)
TONE3000 - native versions on both windows and linux

Ive also gone through all I could find, on various forums, Arch's pro audio page, ive gone through the rtcqs checklist and done everything apart from spectre meltdown mitigations.

I'm completely lost as to why this is happening, willing to try anything

Offline

#2 2026-11-28 15:39:13

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,142

Re: Can't get linux audio performance even remotely close to Windows

figuring out that 4096 samples on Linux is the same as 2048 on windows

???

Then using 128 samples on windows … however with 256 samples on linux

Ftr: how'd be the behavior w/ 128?

everything apart from spectre meltdown mitigations

Is the CPU load (even of a single core) particularly high during playback?

I've tried JACK2, pipewire-jack … 100 instances of the TONE3000 plugin

Remove all userspace daemons (pipwire or pulseaudio or jack) and play something w/ eg. "mpv -ao alsa" as testcase.

DAW: Reaper (native linux build, tried windows build via wine too)

Or is it less the audio device and more the midi processing?
Are you sure that happens in the HW and not in some SW emulation (eg. timidity, wildmidi etc)?
And how does eg. https://archlinux.org/packages/extra/x86_64/rosegarden/ perform by comparism?

Offline

#3 2026-11-28 21:01:06

matidfk
Member
Registered: 2022-04-17
Posts: 13

Re: Can't get linux audio performance even remotely close to Windows

???

sorry forgot to say, this is in terms of latency - not reported latency by the daw/driver, but just playing along and checking the timing of it

Ftr: how'd be the behavior w/ 128?

as you'd expect, even worse than 256 - with 256 its stuttering, with 128 it basically refuses to play at all

Is the CPU load (even of a single core) particularly high during playback?

weirdly enough, the CPU load itself is not that high, probably normal but the Realtime CPU usage (as shown by reaper, but also pw-top) is insanely high, sometimes even shows values above 100% lol

Remove all userspace daemons (pipwire or pulseaudio or jack) and play something w/ eg. "mpv -ao alsa" as testcase.

audio in general works fine, playing media clips in reaper or anywhere isnt a problem, its just FX processing that is really slow (or maybe it is, its just not a heavy enough task to detect the issue on)

Or is it less the audio device and more the midi processing?

I dont think it could be the midi, theres no midi in the project, just guitar amp sims, running and monitoring through the daw

Thanks for willing to help with this

Offline

#4 2026-11-28 21:10:35

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,142

Re: Can't get linux audio performance even remotely close to Windows

insanely high, sometimes even shows values above 100% lol

100% per core, you've 12 (6*2) - kernel thread or (which) userspace process?
How's the CPU load on windows w/ comparable tasks?
If the total is similar, does reaper/windows distribute it across multiple cores? Does reaper/windows? Basically, is one core maxed out on linux but not on windows?

Offline

#5 2026-11-28 22:55:38

matidfk
Member
Registered: 2022-04-17
Posts: 13

Re: Can't get linux audio performance even remotely close to Windows

seth wrote:

100% per core, you've 12 (6*2) - kernel thread or (which) userspace process?
How's the CPU load on windows w/ comparable tasks?
If the total is similar, does reaper/windows distribute it across multiple cores? Does reaper/windows? Basically, is one core maxed out on linux but not on windows?

After a bit more testing - the latencies of linux and windows seem to actually be comparable, although on linux it seems that with lower buffer sizes they dont go as low as windows (tested this using a loopback test) - which i think has lead me to a feeling of needing to push it lower on linux only.

Either way, after testing at 256 samples (36ms on windows, 33ms on linux):

lite rig test (stereoizer + Fortin nameless)
windows: 15% CPU, 40% RT - runs fine
linux: 3% CPU, 40% RT - runs fine (occasional xruns when switching window focus/workspaces or other things like that)

full rig test (stereoizer + Fortin Nameless + bunch of EQs, some multiband compressors and utility plugins):
windows: 20% CPU, 50% RT CPU - runs fine
linux: 4% CPU, 75% RT CPU - xrun crackles about every second, kind of unusable

full rig test x2 (2 of the same track)
windows: 24% CPU, 70% RT CPU - runs fine
linux: wont even play a single sound, reaper shows 140% RT CPU

I think looking into specific core usage might be of help, as the gap between windows and linux seems to grow exponentially with heavier tasks - unfortunately btop just shows each core at about 30% (maybe theres a different way to show each cores usage? maybe something specifically for RT usage?)

EDIT: I found that i had turned off the setting to allow live fx multiprocessing within REAPER (the setting warns that it may reduce performance at low latencies). This fixed the problem where the 2 instances wouldnt play, but now is also plagued by constant xruns just like a single instance, which this setting hasnt helped unfortunately

Last edited by matidfk (2026-11-28 23:12:24)

Offline

#6 2026-11-29 10:31:51

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,483

Re: Can't get linux audio performance even remotely close to Windows

Have you tried with a realtime enabled kernel?

In my experience, it performs better.

Also, this is for USB audio, stopping pipewire and using pure jack leads to lower latencies for me with a scarlet 2i2 1st gen.


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#7 2026-11-29 11:03:25

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,142

Re: Can't get linux audio performance even remotely close to Windows

Offline

#8 2026-11-29 11:49:27

matidfk
Member
Registered: 2022-04-17
Posts: 13

Re: Can't get linux audio performance even remotely close to Windows

kokoko3k wrote:

Have you tried with a realtime enabled kernel?

In my experience, it performs better.

Also, this is for USB audio, stopping pipewire and using pure jack leads to lower latencies for me with a scarlet 2i2 1st gen.

I am indeed on the RT kernel, havent noticed much of a difference

by using pure jack you just mean using jack2 and pipewire-jack-client for other apps to connect to jack instead of pipewire-jack for DAW to connect to pipewire right?

I've tried this, unfortunately I cant get pipewire-jack-client to connect to the jack server - it doesnt see it and keeps trying to connect to my monitors nonexistent speakers instead. It was better in terms of latency - at low latencies, i can have a buffer size of 128 with jack2 to get the same latency as only 64 with pipewire-jack. unfortunately I cant really find any info or help on pipewire-jack-client just not working

Last edited by matidfk (2026-11-29 14:13:23)

Offline

#9 2026-11-29 17:43:26

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,142

Re: Can't get linux audio performance even remotely close to Windows

"RT CPU" is a reaper measure?

ps -eo pid,comm,sched,rtprio | awk '$3 == 1 {print}'

does that list reaper or one of its processes?

Offline

#10 2026-11-29 19:00:22

topcat01
Member
Registered: 2019-09-17
Posts: 362

Re: Can't get linux audio performance even remotely close to Windows

Disclaimer: I know very little about pro audio; my own usage is limited to watching movies, and I am still amazed by the concept of "sound servers".

Having said that, I asked a friend who is a pro musician who (amazingly) uses Arch Linux. He runs the linux-rt kernel (although not strictly necessary). According to him, Pipewire's JACK implementation is basically a toy. Once you start pushing things a little, the only way to get good performance is to run PW on top of JACK, or just JACK. He uses PW as a JACK client using the pipewire-jack-client package, which allows normal applications to output audio without any special config. This apparently has zero overhead for DAWs, which can also use JACK directly. He also uses the performance cpu governor so that the cpu does not "speedstep" through clock speeds. You probably have a configuration problem which prevents pipewire-jack-client from working.

Hardware wise, I think he also has a USB Scarlett thing.

Offline

#11 2026-11-29 21:08:13

killertofus
Member
Registered: 2025-02-10
Posts: 300

Re: Can't get linux audio performance even remotely close to Windows

Real-time kernel support was merged into Linux 6.12


I Have Linux Perl Can i Download Gnome???

Offline

#12 2026-11-29 22:18:00

matidfk
Member
Registered: 2022-04-17
Posts: 13

Re: Can't get linux audio performance even remotely close to Windows

seth wrote:

"RT CPU" is a reaper measure?

ps -eo pid,comm,sched,rtprio | awk '$3 == 1 {print}'

does that list reaper or one of its processes?

Reaper shows RT CPU in its performance viewer window, but it seems to correspond pretty much 1 to 1 with pw-top's B/Q

running the command, I dont see anything reaper related. Interestingly, i see yabridge_host.exe at the end, but i ran it and replaced the awk filter with a grep for reaper which reveals this:

~ > ps -eo pid,comm,sched,rtprio | grep "reaper"
    133 oom_reaper        0      -
3201561 reaper            0      -
3202274 reaper_host_x86   0      -
3211535 reaper_host_x86   0      -
3225278 reaper_host_x86   0      -

Could you give me a bit more info on what that third value is?

Offline

#13 2026-11-29 22:28:38

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,142

Re: Can't get linux audio performance even remotely close to Windows

An indication that those processes are not running on the RT scheduler
=> https://wiki.archlinux.org/title/Realti … Using_chrt - but idk. whether that's down to only jack2 being required to be a realtime process

Edit: https://archlinux.org/packages/extra/x86_64/reaper/ is in the repos, you're using that?
Have you brought up the topic in https://forum.cockos.com/index.php ?
What process is the undue/superscaling  load actually attributed to?
Do you have similar problems when using an ACL256 (regular-ass-audio) chip?

Last edited by seth (2026-11-29 22:37:17)

Offline

#14 2026-11-30 16:48:33

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,483

Re: Can't get linux audio performance even remotely close to Windows

matidfk wrote:
kokoko3k wrote:

Have you tried with a realtime enabled kernel?

In my experience, it performs better.

Also, this is for USB audio, stopping pipewire and using pure jack leads to lower latencies for me with a scarlet 2i2 1st gen.

I am indeed on the RT kernel, havent noticed much of a difference

by using pure jack you just mean using jack2 and pipewire-jack-client for other apps to connect to jack instead of pipewire-jack for DAW to connect to pipewire right?

I've tried this, unfortunately I cant get pipewire-jack-client to connect to the jack server - it doesnt see it and keeps trying to connect to my monitors nonexistent speakers instead. It was better in terms of latency - at low latencies, i can have a buffer size of 128 with jack2 to get the same latency as only 64 with pipewire-jack. unfortunately I cant really find any info or help on pipewire-jack-client just not working

Yes.

I use those scripts via qjackctl (in its pre-start and post-start fields (pre jack2 start and post jack2 start)

        sudo setpci -v -s "*:*.*" latency_timer=b0
        echo -n performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

#stop pipewire so that i can remove the onboard chip audio module
        for i in 1 2 3 4 5 6 7 8 9 10; do  
                systemctl --user stop pipewire pipewire-pulse pipewire-media-session pipewire-pulse.socket pipewire.socket
                sleep 0.1
        done

        sudo rmmod snd_hda_intel

(I use sudo without it asking for a pass)

#with dbus jack enabled in qjackctl:  <-----------------------

        for i in 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2; do
                systemctl --user reset-failed pipewire pipewire-pulse pipewire-media-session pipewire-pulse.socket
                systemctl --user start pipewire pipewire-pulse pipewire-media-session pipewire-pulse.socket
                if ! systemctl --user status pipewire &>/dev/null ; then
                        sleep $i
                fi
        done


And my relevant installed packages are:

jack2 1.9.22-2
jack2-dbus 1.9.22-2
jack_capture 0.9.73-8
jamesdsp-pipewire-bin 2.7.0-1
lib32-libpipewire 1:1.6.12-1
lib32-pipewire 1:1.6.12-1
libpipewire 1:1.6.12-1
pipewire 1:1.6.12-1
pipewire-alsa 1:1.6.12-1
pipewire-audio 1:1.6.12-1
pipewire-jack-client 1:1.6.12-1
pipewire-media-session 1:0.4.3-1
pipewire-pulse 1:1.6.12-1
qjackctl 1.0.6-1
linux-rt-lts 6.18.63.rt9.arch1-2


With that, I can reach 3 buffers with 64 frames each, at 48Khz, but that varies depending on the hardware; expected roundtrip time around 7..8ms, because on USB is not stable.

Usual workflow with occasional xruns includes guitarix with lot of effects, jack-mixer, hydrogen, sooperlooper and firefox playing youtube videos on a laptop with Intel(R) Core(TM) i5-1035G1


Hope it helps.

Last edited by kokoko3k (2026-11-30 16:55:05)


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#15 Today 18:14:22

matidfk
Member
Registered: 2022-04-17
Posts: 13

Re: Can't get linux audio performance even remotely close to Windows

Thanks everyone for the input, I've got the issue pretty much resolved now.

What worked:
- switching from pipewire-jack to jack2 with pipewire running as a jack client using pipewire-jack-client.
    > this wasnt working for me for a while, but resetting all the configs for anything pipewire/jack related, along with installing pipewire-pulse helped. Im now using qjackctl to control the buffer sizes for the whole system

- some plugins in my FX stack were unreasonably slow through wine - namely the VTarAmps double tracker and noise suppressor. I removed these and replaced them with something else.

I can now get down to 128 sample buffers at 2/3 periods at 48kHz, for about 8ms latency which is totally fine. JACK2 helped massively in this, as with pipewire 128 samples would still give me about 25-30ms latency in addition to stuttering

Offline

Board footer

Powered by FluxBB