Slackware real-time priority audio


These settings are useful if you run a DAW or want to prioritise audio to solve stuttering issues on Slackware.

Audio group

Add user to audio group.

gpasswd -a your_user audio

Slackbuild

Install rtirq slackbuild.

Kernel

Edit /etc/lilo.conf add threadirqs to the value of the append= keyword, and re-run lilo.

CPU frequency scaling

Edit /etc/default/cpufreq and add the following:

SCALING_GOVERNOR=performance

Real-time scheduling

Create /etc/security/limits.d/rt_audio.conf and add the following:

# Real-Time Priority allowed for user in the 'audio' group:
# Use 'unlimited' with care,a misbehaving application can
# lock up your system. Try reserving half your physical memory:
#@audio - memlock 2097152
@audio - memlock unlimited
@audio - rtprio 95

Udev rule

Create /etc/udev/rules.d/40-timer-permissions.rules and add the following:

KERNEL=="rtc0", GROUP="audio"
KERNEL=="hpet", GROUP="audio"

sysctl.conf

Add the following to /etc/sysctl.conf

dev.hpet.max-user-freq = 3072
fs.inotify.max_user_watches = 524288
vm.swappiness = 10

Reboot!!

Comments


There are no comments yet.

Add a Comment

 Atom Comments Feed