In the top
and htop
tools, processes (or/and threads depending on display settings) having the highest realtime priority (99 from the userland API point of view) with either the scheduling policy SCHED_RR
or SCHED_FIFO
the priority is displayed as RT
.
For all the other real time processes, the priority is displayed as a number p defined by:
p = -userprio -1
I am wondering why top
and htop
don't display -100
for higest priority real time processes ?
top
andhtop
list four processes withpriority = RT
:migration/0
migragion/1
,watchdog/0
watchdog/1
in my case. However,ps -eo rtprio,comm
lists their priority as99
. – Sebastian Sep 10 '14 at 6:47ps -o rtprio,state,pid,comm -A | grep -Ev '^\s+- '
? – Volker Siegel Sep 10 '14 at 6:47