I have a process (jackd) that runs several threads. One of the threads it runs should be in realtime, the others run on normal priorities. I'd like to check if it actually runs on realtime. What program can I use for this task?
Asked
Active
Viewed 1.1k times
2 Answers
5
You can use ps with the -m switch to show all threads, and -l ("long" format) to show the priority. The full command would look like:
ps -m -l [TASK PID]
Breakthrough
- 34,227
- 10
- 105
- 149
-
1Cool, didn't know about the -m switch! It seems it is also possible to list all threads with their realtime priorities (if available) with something like `ps -eO rtprio -m`. – Turion Aug 01 '12 at 15:42
1
(1)Command which gives the Process ID of a process is
ps -e | grep
(2)Command which gives a process related all the ThreadIds scheduling policy and priority is
chrt -a -p < PId >
(3)Command which gives the list of processes and its ThreadIDs with name
ps -eL
Now you can map the ThreadId to ThreadName from step 3) command and see the corresponding IDs scheduling policy and priority from step 2).
Sundeep R
- 11
- 1