Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
f901cd04
Commit
f901cd04
authored
Oct 27, 2015
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc/user: section about real-time scheduling
parent
5719207d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
0 deletions
+52
-0
user.xml
doc/user.xml
+52
-0
No files found.
doc/user.xml
View file @
f901cd04
...
...
@@ -1190,6 +1190,58 @@ database {
plugin).
</para>
</section>
<section
id=
"realtime"
>
<title>
Real-Time Scheduling
</title>
<para>
On Linux,
<application>
MPD
</application>
attempts to configure
<ulink
url=
"https://en.wikipedia.org/wiki/Real-time_computing"
>
real-time
scheduling
</ulink>
for some threads that benefit from it.
</para>
<para>
This is only possible you allow
<application>
MPD
</application>
to do it. This privilege is controlled by
<varname>
RLIMIT_RTPRIO
</varname>
<varname>
RLIMIT_RTTIME
</varname>
. You can configure this
privilege with
<command>
ulimit
</command>
before launching
<application>
MPD
</application>
:
</para>
<programlisting>
ulimit -HS -r 50; mpd
</programlisting>
<para>
Or you can use the
<command>
prlimit
</command>
program from the
<application>
util-linux
</application>
package:
</para>
<programlisting>
prlimit --rtprio=50 --rttime=unlimited mpd
</programlisting>
<para>
The
<application>
systemd
</application>
service file shipped
with
<application>
MPD
</application>
comes with this setting.
</para>
<para>
This works only if the Linux kernel was compiled with
<varname>
CONFIG_RT_GROUP_SCHED
</varname>
disabled. Use the
following command to check this option for your current
kernel:
</para>
<programlisting>
zgrep ^CONFIG_RT_GROUP_SCHED /proc/config.gz
</programlisting>
<note>
<para>
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.
</para>
</note>
</section>
</chapter>
<chapter
id=
"use"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment