求助linux下ps命令显示含义.
來源:互聯網 2010-03-01 00:28:47 評論
分類: 電腦/網絡 >> 操作系統/系統故障
問題描述:
linux下ps命令后的status项
显示Rs代表什么含义,
R表示run
s代表sleep
那么R与s合起来是什么?
以及大写S与小写s有什么区别.
经常看到Ss的状态。
參考答案:
刚刚装了RHEL5β2版本
发现这个版本的ps和top里面是有Ss的
man了一下 ps和top
解释如下
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
[b]分类:[/b] 电脑/网络 >> 操作系统/系统故障[br][b]问题描述:[/b][br]linux下ps命令后的status项
显示Rs代表什么含义,
R表示run
s代表sleep
那么R与s合起来是什么?
以及大写S与小写s有什么区别.
经常看到Ss的状态。[br][b]参考答案:[/b][br]刚刚装了RHEL5β2版本
发现这个版本的ps和top里面是有Ss的
man了一下 ps和top
解释如下
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