Confused by 'ps' output

Bodisha

New Member
Joined
May 19, 2019
Messages
13
Reaction score
1
Credits
151
Thanks in advance to anyone that can offer me any guidance on my questions... Which is about the numerical value I'm seeing in the priority (PR PRI) column of the 'ps -el' output

From what I've read... I'd expect to see a value fall within the range of 1 - 139 for both processes and kernel threads

But I'm seeing negative numerical values on some kernel threads... 'ps -el' displays the priority for both the migration and watchdog kernel threads as -40... Yet top displays them as 'rt'... Which I thought meant the numerical value of 99

Also the 'ps -el' output displays the priority of the irq/18-vmwgfx kernel thread with a value of 0... But top displays it's priority as -51

I've searched and haven't seen anything about the values for the priority of a processes or kernel thread being a negative value... Could someone explain why I'm seeing negative values please? Also why am I seeing different values between the ps and top utilities?

Thanks!
 

Members online


Latest posts

Top