Linux Process status

Source: Internet
Author: User

When using the ps command, there is a column in the Process status, for example

[David P @ Supernova: ~] $ PS u 

User PID % CPU % mem vsz RSS tty stat Start Time Command

David P 3995 0.0 0.4 3324 1956 pts/2SSAug17 0: 00/bin/bash

David P 25049 0.0 0.8 7104 pts/5S +Aug19 0: 10 irssi

David P 26180 0.0 0.1 2656 908 pts/0R +PS u

 

The stat column lists the Process status.

 

TheCodesUsed are:

Code Meaning
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 (shocould 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:

Code Meaning
< 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 foregroundProcessGroup

~~ Discussion ~~

 

From: http://wiki.preshweb.co.uk/doku.php? Id = Linux: psflags
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.