pipewire -pulse -alsa -jack, all provide same latency?

Optimize your system for ultimate performance.

Moderators: MattKingUSA, khz

Post Reply
talby
Established Member
Posts: 77
Joined: Tue Aug 22, 2023 6:47 pm
Has thanked: 93 times
Been thanked: 27 times

pipewire -pulse -alsa -jack, all provide same latency?

Post by talby »

Do I understand correctly that, when using pipewire, the latency is the same for using (connecting to) any of the pipewire compatibility interfaces (pipewire-pulse, pipewire-alsa or pipewire-jack)?
For example, if my DAW offers me to interface to the Linux audio system either via PulseAudio or JACK, then, concerning latency, it doesn't make any difference anymore which of these options I choose?

Refining my amateur musicianship by reviewing my rehearsals.
Adding more and more extra sounds and post processing to it.
(Tracktion WAVEFORM PRO & Ocenaudio @ Debian with KDE(X11) on older Laptop with SSL12 audiointerface)

User avatar
Axel-Erfurt
Established Member
Posts: 109
Joined: Tue Dec 05, 2023 6:06 pm
Has thanked: 26 times
Been thanked: 38 times
Contact:

Re: pipewire -pulse -alsa -jack, all provide same latency?

Post by Axel-Erfurt »

What is your DAW?

talby
Established Member
Posts: 77
Joined: Tue Aug 22, 2023 6:47 pm
Has thanked: 93 times
Been thanked: 27 times

Re: pipewire -pulse -alsa -jack, all provide same latency?

Post by talby »

I am using Tracktion Waveform 13 Pro. Would be great if there is even a specific answer regarding this DAW!

Still, not targeting a particular DAW but looking only at the design of pipewire, I am also interested to find the information if handling of all streams passing those interface APIs (-alsa, -pulse, - jack) is designed and supposed to process them without any priorities towards the one or the other.
After hours of research I couldn't find a clear statement about this. Pointing me to relevant documentation would also be appreciated, but maybe someone here knows about this already and can confirm my believing that there indeed is no priority ranking, or correct me please.

Refining my amateur musicianship by reviewing my rehearsals.
Adding more and more extra sounds and post processing to it.
(Tracktion WAVEFORM PRO & Ocenaudio @ Debian with KDE(X11) on older Laptop with SSL12 audiointerface)

User avatar
Audiojunkie
Established Member
Posts: 618
Joined: Thu Feb 21, 2019 4:27 pm
Has thanked: 516 times
Been thanked: 266 times

Re: pipewire -pulse -alsa -jack, all provide same latency?

Post by Audiojunkie »

talby wrote: Fri Mar 28, 2025 2:12 pm

Do I understand correctly that, when using pipewire, the latency is the same for using (connecting to) any of the pipewire compatibility interfaces (pipewire-pulse, pipewire-alsa or pipewire-jack)?
For example, if my DAW offers me to interface to the Linux audio system either via PulseAudio or JACK, then, concerning latency, it doesn't make any difference anymore which of these options I choose?

My understanding is that the latency for each can be set independently. So, it would depend on to what latency they were configured for. Also, I would imagine (at least theoretically) ALSA could potentially be lower, since Pipewire resides on top of ALSA. Also, JACK should be lower (just above ALSA) because of the IRQ scheduling (provided the Pro Audio profile is being used). PulseAudio should potentially be the slowest.

User avatar
Axel-Erfurt
Established Member
Posts: 109
Joined: Tue Dec 05, 2023 6:06 pm
Has thanked: 26 times
Been thanked: 38 times
Contact:

Re: pipewire -pulse -alsa -jack, all provide same latency?

Post by Axel-Erfurt »

In Tracktion Waveform 13, where did you look? At the latency monitor?

Attachments
2025-03-28_21-34.png
2025-03-28_21-34.png (21 KiB) Viewed 315 times
magill
Established Member
Posts: 87
Joined: Wed Apr 05, 2023 9:11 am
Has thanked: 18 times
Been thanked: 54 times
Contact:

Re: pipewire -pulse -alsa -jack, all provide same latency?

Post by magill »

talby
Established Member
Posts: 77
Joined: Tue Aug 22, 2023 6:47 pm
Has thanked: 93 times
Been thanked: 27 times

Re: pipewire -pulse -alsa -jack, all provide same latency?

Post by talby »

Axel-Erfurt wrote: Fri Mar 28, 2025 8:30 pm

In Tracktion Waveform 13, where did you look? At the latency monitor?

By now, I simply considered the Device Settings dialog and wonder about the general expectations if going to use pipewire instead of the classic Linux audio system interfaces having been direct/ALSA, PulseAudio/ALSA and JACK2:

Screenshot_20250329_014542.jpg
Screenshot_20250329_014542.jpg (40.9 KiB) Viewed 254 times

Refining my amateur musicianship by reviewing my rehearsals.
Adding more and more extra sounds and post processing to it.
(Tracktion WAVEFORM PRO & Ocenaudio @ Debian with KDE(X11) on older Laptop with SSL12 audiointerface)

talby
Established Member
Posts: 77
Joined: Tue Aug 22, 2023 6:47 pm
Has thanked: 93 times
Been thanked: 27 times

Re: pipewire -pulse -alsa -jack, all provide same latency?

Post by talby »

magill wrote: Fri Mar 28, 2025 9:47 pm

Pipewire devs did some testing: https://gitlab.freedesktop.org/pipewire ... ce#latency

Oh! Kind of what I was searching for! Thanks a lot.
Obviously, at a first glance, these measurements state: "it depends...." . Will study them to more detail, and am afraid that I have to figure out how to perform my own measurements for my own particular situation, then. Didn't really expect this. Thought the answer could be much more general. But those are the current facts then, real measurement data, real results, ... real eye opener that it much depends on the particular situation.
I now need to consider if the differences would indeed impact my musical works, or only affect my nerdy technical (Linux) interests.

Refining my amateur musicianship by reviewing my rehearsals.
Adding more and more extra sounds and post processing to it.
(Tracktion WAVEFORM PRO & Ocenaudio @ Debian with KDE(X11) on older Laptop with SSL12 audiointerface)

magill
Established Member
Posts: 87
Joined: Wed Apr 05, 2023 9:11 am
Has thanked: 18 times
Been thanked: 54 times
Contact:

Re: pipewire -pulse -alsa -jack, all provide same latency?

Post by magill »

jack_delay is a tool to measure latency yourself: https://kokkinizita.linuxaudio.org/linuxaudio/ It will work with Jack and Pipewire. For Alsa, you could use Ardour as it has a tool for that. I would expect Alsa do perform the best. Jack and Pipewire shouldn't be far behind.

Post Reply