top LINUX进程几种状态:
Z(zombie):僵尸进程
T(terminal):暂停状态
R:运行
D: 不间断睡眠(IO)
ps -uax进程状态符号意义(man ps中PROCESS STATE CODES章节copy过来):
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
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
