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
8624d8c1
Commit
8624d8c1
authored
Feb 17, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc/user.xml: example "ps" command for real-time scheduling check
parent
420582ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
user.xml
doc/user.xml
+28
-0
No files found.
doc/user.xml
View file @
8624d8c1
...
...
@@ -1399,6 +1399,34 @@ database {
<programlisting>
zgrep ^CONFIG_RT_GROUP_SCHED /proc/config.gz
</programlisting>
<para>
You can verify whether the real-time scheduler is active with
the
<command>
ps
</command>
command:
</para>
<programlisting>
# ps H -q `pidof -s mpd` -o 'pid,tid,cls,rtprio,comm'
PID TID CLS RTPRIO COMMAND
16257 16257 TS - mpd
16257 16258 TS - io
16257 16259 FF 50 rtio
16257 16260 TS - player
16257 16261 TS - decoder
16257 16262 FF 50 output:ALSA
16257 16263 IDL 0 update
</programlisting>
<para>
The
<varname>
CLS
</varname>
column shows the CPU scheduler;
<parameter>
TS
</parameter>
is the normal scheduler;
<parameter>
FF
</parameter>
and
<parameter>
RR
</parameter>
are
real-time schedulers. In this example, two threads use the
real-time scheduler: the
<command>
output
</command>
thread and
the
<command>
rtio
</command>
(real-time I/O) thread; these two
are the important ones. The database update thread uses the
idle scheduler ("
<parameter>
IDL
</parameter>
in
<command>
ps
</command>
), which only gets CPU when no other
process needs it.
</para>
<note>
<para>
There is a rumor that real-time scheduling improves audio
...
...
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