Pipewire configuration for low latency

Optimize your system for ultimate performance.

Moderators: MattKingUSA, khz

apokalyptyk
Posts: 1
Joined: Thu Feb 25, 2021 11:13 pm
Has thanked: 1 time

Re: Pipewire configuration for low latency

Post by apokalyptyk »

I don't think you want to rename the conf file. Those are 2 confs, 1 for regular clients, and 1 for rt clients, I believe. You'll want to go to the pipewire-jack conf and set the buffer size and samplerate you want for jack apps, whatever you used for jack. You can also set the system default in the main conf if you don't like the default. The jack and rt confs also let you set the rt priority for pipewire and rt apps. Hope this helps.
User avatar
ycollette
Established Member
Posts: 87
Joined: Sun Jul 03, 2016 8:53 pm
Has thanked: 14 times
Been thanked: 16 times
Contact:

Re: Pipewire configuration for low latency

Post by ycollette »

I reinstalled a new PC with Fedora 37 and decided to give it another try to pipewire Jack.

https://www.youtube.com/watch?v=DEuqUlMmbho

Video made on Fedora 37 with OBS Studio.
Guitarix / TuxGuitar / Non Mixer / Ray Session and pipewire jack configured to use 256 samples buffer and 48 kHz sample rate.
There are still some Xruns from time to time but the situation has greatly improved when I compare the last try I made.
I used a 5.10 RT kernel. I will try with a recent one, maybe pipewire will be more confortable with a recent RT kernel.
The pipewire configuration is the standard one.

asbak
Established Member
Posts: 897
Joined: Thu Sep 11, 2014 3:04 pm
Has thanked: 71 times
Been thanked: 64 times

Re: Pipewire configuration for low latency

Post by asbak »

sysrqer wrote: Sat Jan 08, 2022 12:03 pm
ycollette wrote: Mon Jan 03, 2022 10:54 am

I found some interesting links about tuning for low latency. I will try this on Friday.

The tuning you must make for low latency:
https://gitlab.freedesktop.org/pipewire ... nce-tuning

I just tried this and I'm a bit confused about the RLIMITs section. I've added the suggested file but I do not have a pipewire group. Is this necessary, or rather is this different than the settings in the pipewire config?

Yes you'll need to create the pipewire group manually on Ubuntu / Mint etc. For some unknown reason the installer doesn't take care of this.

groupadd -g 200 pipewire
usermod -a -G pipewire <your user>

Then add the pipewire values in /etc/security/limits.conf

Code: Select all

@pipewire - rtprio 95
@pipewire - memlock 4194304
@pipewire - priority -19
Some Focal / 20.04 audio packages and resources https://midistudio.groups.io/g/linuxaudio
Post Reply