LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 06-22-2007, 10:02 AM   #1
armandino
Member
 
Registered: Oct 2005
Posts: 72

Rep: Reputation: 15
ps STAT fields


I'm not able to find any clear explanations about the meaning of what the ps command outputs under the STAT column.
I understand that the first letter tells the main state of a process (man pages explain that), BUT I would like to know the meaning of the strings like "Ss" and "Ss+" which appear so often (I'm using Fedora).
What does the second "s" (in lower case) mean?
What does the plus sign stand for?

I know this is not a vital issue but... thanks for any help.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 06-22-2007, 01:44 PM   #2
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 3,177

Rep: Reputation: Disabled
man ps
Code:
PROCESS STATE CODES
Here are the different values that the s, stat and state output specifiers
(header "STAT" or "S") will display to describe the state of a process.
D    Uninterruptible sleep (usually IO)
R    Running or runnable (on run queue)
S    Interruptible sleep (waiting for an event to complete)
T    Stopped, either by a job control signal or because it is being traced.
W    paging (not valid since the 2.6.xx kernel)
X    dead (should never be seen)
Z    Defunct ("zombie") process, terminated but not reaped by its parent.

For BSD formats and when the stat keyword is used, additional characters may
be displayed:
<    high-priority (not nice to other users)
N    low-priority (nice to other users)
L    has pages locked into memory (for real-time and custom IO)
s    is a session leader
l    is multi-threaded (using CLONE_THREAD, like NPTL pthreads do)
+    is in the foreground process group
 
2 members found this post helpful.
Old 06-24-2007, 12:14 PM   #3
armandino
Member
 
Registered: Oct 2005
Posts: 72

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Emerson
man ps
Code:
PROCESS STATE CODES
Here are the different values...
Well, thanks a lot. My system's man pages (Fedora Core 6) do not seem to contain such infomation.
 
Old 06-24-2007, 02:12 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
It should be there....the man page for ps is big. Try this:

man ps|grep -A 20 'output specifiers'
 
1 members found this post helpful.
Old 06-24-2007, 02:21 PM   #5
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 3,177

Rep: Reputation: Disabled
man pages are usually viewed with less, "/" lets you search in less. See man less how to use it.
 
Old 07-29-2008, 06:29 AM   #6
arnaudvre
LQ Newbie
 
Registered: Dec 2007
Location: Dublin
Distribution: Fedora 8
Posts: 2

Rep: Reputation: 0
linuxquestions.org to the rescue again, our linux lab server isn't working but I got the info I needed here. Thanks Emerson
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Two New LQ Profile Fields jeremy LQ Suggestions & Feedback 8 07-12-2005 11:10 PM
Help me using kernel_stat fields... arunka Programming 0 03-24-2005 06:18 AM
inittab fields env Linux - General 2 03-04-2005 12:36 PM
Linux stat to Windows Stat sridurai Programming 3 09-24-2004 04:07 PM
compulsory fields masand LQ Suggestions & Feedback 20 09-07-2004 04:33 PM


All times are GMT -5. The time now is 12:32 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration