Site Tools


ps
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

Discussion

Constantin Conovaloff, 2015/04/06 18:32
# ps lfh | grep -i prefo
0     0  5271 29612  20   0  78912  7776 ep_pol S+   pts/27     0:00          \_ python ./prefork-reuse-port-example.py
1     0  5272  5271  20   0  78912  5100 ep_pol S+   pts/27     0:00              \_ python ./prefork-reuse-port-example.py
1     0  5273  5271  20   0  78912  5100 ep_pol S+   pts/27     0:00              \_ python ./prefork-reuse-port-example.py
1     0  5274  5271  20   0  78912  5100 ep_pol S+   pts/27     0:00              \_ python ./prefork-reuse-port-example.py
1     0  5275  5271  20   0  78912  5100 ep_pol S+   pts/27     0:00              \_ python ./prefork-reuse-port-example.py
1     0  5276  5271  20   0  78912  5100 ep_pol S+   pts/27     0:00              \_ python ./prefork-reuse-port-example.py
0     0  5561 28342  20   0  17860   956 pipe_w S+   pts/22     0:00                  \_ grep --color=auto -i prefo
# ps aux | grep -i prefo
root      5271  0.0  0.0  78912  7776 pts/27   S+   17:26   0:00 python ./prefork-reuse-port-example.py
root      5272  0.0  0.0  78912  5100 pts/27   S+   17:26   0:00 python ./prefork-reuse-port-example.py
root      5273  0.0  0.0  78912  5100 pts/27   S+   17:26   0:00 python ./prefork-reuse-port-example.py
root      5274  0.0  0.0  78912  5100 pts/27   S+   17:26   0:00 python ./prefork-reuse-port-example.py
root      5275  0.0  0.0  78912  5100 pts/27   S+   17:26   0:00 python ./prefork-reuse-port-example.py
root      5276  0.0  0.0  78912  5100 pts/27   S+   17:26   0:00 python ./prefork-reuse-port-example.py
root      5623  0.0  0.0  17860   956 pts/22   R+   17:31   0:00 grep --color=auto -i prefo
Constantin Conovaloff, 2015/04/10 17:42
ps -flp 4689 
Constantin Conovaloff, 2015/04/14 19:43

Более полный вывод

ps auxww

-w     Wide output.  Use this option twice for unlimited width.
You could leave a comment if you were logged in.
ps.txt · Last modified: 2013/12/02 16:29 by conovaloff

Page Tools