User Tools

Site Tools


adjusting_audio_latency

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
adjusting_audio_latency [2018/10/03 14:27]
rryan
adjusting_audio_latency [2018/10/03 14:33] (current)
rryan clarify that realtime thread scheduling policy doesn't require an rt kernel
Line 16: Line 16:
 === User permissions to create realtime threads. === === User permissions to create realtime threads. ===
  
-Enabling ​real time scheduling in your kernel will only have an effect if your user has permission to run Mixxx with realtime ​priority. Set the maximum rtprio for your user by editing ''/​etc/​security/​limits.conf''​ as root and add ''//<​your user name>// - rtprio ​ 99''​ to allow Mixxx (and other processes you run) to increase their thread priority to maximum. Reboot for this to take effect.+Whether you are using a generic kernel or a kernel with the "real-time patch set", ​your user needs permission to create threads with a real-time scheduling policy (''​SCHED_FIFO''​ or ''​SCHED_RR''​). This permission is disabled by default on major distributions due to denial-of-service risks (a user with realtime ​permissions can easily hard-lock a machine, requiring reboot). Distributions such as Ubuntu Studio enable this permission by default. 
 + 
 +Set the maximum rtprio for your user by editing ''/​etc/​security/​limits.conf''​ as root and add ''//<​your user name>// - rtprio ​ 99''​ to allow Mixxx (and other processes you run) to increase their thread priority to maximum. Reboot for this to take effect.
  
 On Arch linux, install [[https://​www.archlinux.org/​packages/​community/​any/​realtime-privileges/​|realtime-privileges]],​ and ''​usermod $USER -a -G realtime''​ to add your user to the ''​realtime''​ group. Logout and log back in for the changes to take effect. On Arch linux, install [[https://​www.archlinux.org/​packages/​community/​any/​realtime-privileges/​|realtime-privileges]],​ and ''​usermod $USER -a -G realtime''​ to add your user to the ''​realtime''​ group. Logout and log back in for the changes to take effect.
adjusting_audio_latency.txt · Last modified: 2018/10/03 14:33 by rryan