This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
realtime:documentation:howto:tools:cyclictest:faq [2024/09/03 12:30] ptesarik fix typo (begin โ being) |
realtime:documentation:howto:tools:cyclictest:faq [2025/01/19 21:12] (current) costa.shul ps -cLPC cyclictest |
||
---|---|---|---|
Line 9: | Line 9: | ||
==== Why does ps show Cyclictest as being scheduled under a normal policy (SCHED_OTHER) not a real-time policy? ==== | ==== Why does ps show Cyclictest as being scheduled under a normal policy (SCHED_OTHER) not a real-time policy? ==== | ||
- | The Cyclictest task always has one or more threads, several measuring threads which are scheduled under a real-time policy and a main thread (used to aggregate the measurements) which is scheduled under a normal policy. The command ''ps -ce'' only shows the main process and not its measuring threads. To also see the measuring threads, use the command ''ps -eLc | grep cyclic'' which shows the main-process and all its threads which are indicated as being scheduled under a real-time policy (SCHED_FIFO). An example of output from the correct command is below. The first column is PID (process ID), the second column is LWP (light weight process ID, thread ID), the third column is CLS (scheduling class, scheduling policy), and the fourth column is PRI (priority). | + | The Cyclictest task always has one or more threads, several measuring threads which are scheduled under a real-time policy and a main thread (used to aggregate the measurements) which is scheduled under a normal policy. The command ''ps -cC cyclictest'' only shows the main process and not its measuring threads. To also see the measuring threads, use the command ''ps -cLPC cyclictest'' which shows the main-process and all its threads which are indicated as being scheduled under a real-time policy (SCHED_FIFO). An example of output from the correct command is below. The first column is PID (process ID), the second column is LWP (light weight process ID, thread ID), the third column is PSR (CPU), the fourth column is CLS (scheduling class, scheduling policy), and the fifth column is PRI (priority). |
<code bash> | <code bash> |