Ardour 8 on Ubuntu 24.04 – Set memory unlimited and real-time priority.

Install Ardour 8 from Flathub or build it yourself. Flatpak is not installed on Ubuntu 24.04 so you will need to set it up.

This should also work for Renoise if it uses Pipewire. The limits file will not work.

When you run Ardour you will likely receive the following warning:

Your system has a limit for maximum amount of locked memory. This might cause Ardour to run out of memory before your system runs out of memory.

The fix is easy.

sudo apt install realtime-privileges

On Arch: sudo pack -S realtime-privileges

Add your user to the realtime group: sudo usermod -aG realtime your_username

reboot

You should be good, but you can also try the following. I don’t think limits.conf is still used, but you can try that as well. limits.conf lives in /etc/security

Edit the following files.

sudo nano /etc/security/limits.d/25-pw-rlimits.conf (your file may or may not be the same name)

Add following and change the values to those below, or whatever suits your needs:

@pipewire – rtprio 95
@pipewire – nice -19
@pipewire – memlock unlimited

Save the file with Ctrl + o then enter. Ctrl + x will exit nano.

@pipewire is a group so you need to edit one more file.

sudo nano /etc/group

Add your username to the @pipewire group, i.e., pipewire:x:118:your_user_name (your_user_name should be your actual user name).

Be sure to start your audio in Ardour session as Pulse, which should be using Pipewire. I have had mixed results between Linux distros and even versions.

Save the file then reboot.