From f901cd042bb7872cc097c6c2d846b70b022ba3f0 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 27 Oct 2015 10:31:50 +0100 Subject: doc/user: section about real-time scheduling --- doc/user.xml | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/doc/user.xml b/doc/user.xml index d1c7ff595..010d2f980 100644 --- a/doc/user.xml +++ b/doc/user.xml @@ -1190,6 +1190,58 @@ database { plugin). + +
+ Real-Time Scheduling + + + On Linux, MPD attempts to configure + real-time + scheduling for some threads that benefit from it. + + + + This is only possible you allow MPD + to do it. This privilege is controlled by + RLIMIT_RTPRIO + RLIMIT_RTTIME. You can configure this + privilege with ulimit before launching + MPD: + + + ulimit -HS -r 50; mpd + + + Or you can use the prlimit program from the + util-linux package: + + + prlimit --rtprio=50 --rttime=unlimited mpd + + + The systemd service file shipped + with MPD comes with this setting. + + + + This works only if the Linux kernel was compiled with + CONFIG_RT_GROUP_SCHED disabled. Use the + following command to check this option for your current + kernel: + + + zgrep ^CONFIG_RT_GROUP_SCHED /proc/config.gz + + + + There is a rumor that real-time scheduling improves audio + quality. That is not true. All it does is reduce the + probability of skipping (audio buffer xruns) when the + computer is under heavy load. + + +
-- cgit v1.2.3