根据MAN帮助翻译的,不知道准不准确:
D 不可中断的休眠进程(一般为 IO相关的)
R 正在运行的或将运行的(在运行队列中)
S 忆中断的休眠进程 (等待一个事件去结束它)
T 已这止的, 不管是任务控制流还是已经传输完毕的.
W 请求中进程,可能没有足够的内存空间了。(2.6.xx 以后已经没有了)
X 死掉(被杀死)进程(一般不会看到,杀死后就没有了)
Z 停卡("僵死")进程, 已终止,但不能被父进程回收/释放资源.
在BSD模式下显示STAT项的话,还可能出现以下的几种情况:
< 高优先级(对其它用户不利)
N 低优先级 (对其它用户有利)
L 页面锁定到内存(实时的且与客户进行IO的)
s session leader进程,一般启动时要设置SID的,这种进程脱离控制终端。一般的deamon都要调用setsid把自己设置为session leader,与控制终端脱离关系,这样控制终端退出产生的SIGHUP信号就不会发送到这些进程了。这个行为与用nohup执行应用的作用相同。
l 多线种进程(如CLONE_THREAD, NPTL )
+ 前端进程组内的进程
原文内容:
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