LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-24-2022, 09:53 AM   #1
bodisha
Member
 
Registered: Oct 2016
Posts: 36

Rep: Reputation: Disabled
Confused by ps output


Thanks in advance to anyone that can offer me guidance on my questions... Which is about the priority and addr columns in the 'ps' output


My 1st question is about the priority column (PR PRI)... From what I've read the range of numerical values that exist should be between 1 - 139

But I'm seeing negative numerical values on some kernel threads (migration:-40; watchdog: -40)... And top displays them as 'rt'... Which I thought meant the numerical value of 99 and what I'd expect there

When I look at the output of the irq/18-vmwgfx kernel thread though... ps displays a value of 0... But top displays it as -51

I've searched and haven't seen anything about negative values for priority... Could someone give me a brief explanation of the differences please?

And my second question is about the ADDR column... Which I understand is the starting memory address of a process

This field is always empty... I'm wondering if there's a way to populate this field somehow... Or to understand why nothing appears in it

But once again... thanks!

Click image for larger version

Name:	ps el output.jpg
Views:	11
Size:	171.8 KB
ID:	39767

Last edited by bodisha; 10-24-2022 at 12:43 PM.
 
Old 10-24-2022, 10:27 AM   #2
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,328
Blog Entries: 3

Rep: Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726
Quote:
Originally Posted by bodisha View Post
But I'm seeing negative numerical values on some kernel threads (migration:-40; watchdog: -40)... And top displays them as 'rt'... Which I thought meant the numerical value of 99 and what I'd expect there
Some of that depends on the version of ps which you are using and the rest on the options you have passed (or not) to it as you run it. For priority, the numbers range from -20 to 19 and the higher the number the lower the priority for that process. rt means real time priority.

See "man nice", "man 2 nice", "man renice", or "man 7 sched".
 
Old 10-24-2022, 12:32 PM   #3
bodisha
Member
 
Registered: Oct 2016
Posts: 36

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Turbocapitalist View Post
For priority, the numbers range from -20 to 19 and the higher the number the lower the priority for that process. rt means real time priority.

See "man nice", "man 2 nice", "man renice", or "man 7 sched".
Thanks for the reply... Unfortunately, You're talking about the nice of a process... The priority column (PR or PRI) should have a range between 1 - 139

Quote:
Nicenesses range from -20 (most favorable scheduling) to 19 (least favorable).
 
Old 10-25-2022, 09:26 AM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,671
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
"Kernel threads" are, of course, "parts of the kernel, itself" which are for convenience being dispatched "as a process" so that they can more-easily "do asynchronous things." But they do not play by ordinary rules.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Confused LEACH output times linuxUser123linux Linux - Software 0 07-17-2013 05:44 AM
Confused audio channel output on hda-intel based device netsurf Linux - Hardware 1 10-18-2010 06:09 AM
learning java input output: tutorials for a confused student sought! titanium_geek Programming 9 12-10-2008 11:27 PM
Confused nay Very Confused chrystlenight SUSE / openSUSE 3 08-28-2007 05:57 PM
the sound gives output when using mic but no output when run a music file medo Debian 0 04-19-2004 07:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration