LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1851|回复: 1

[求助]ps ax中STAT列代表的是什么意思呢?

[复制链接]
发表于 2007-10-6 07:28:39 | 显示全部楼层 |阅读模式
RT

  1. #ps ax
  2.   PID TTY      STAT   TIME COMMAND
  3.     1    ?         S        0:04  init [3]
  4.     2    ?         SW     0:00  [keventd]
  5.     3    ?         SWN   0:00  [ksoftirqd_CPU0]
  6.     4    ?         SW     0:00  [kswapd]
  7.     5    ?         SW     0:00  [kreclaimd]
  8.     6    ?         SW     0:00  [bdflush]
  9.     7    ?         SW     0:00  [kupdated]
  10.     8    ?         SW<   0:00  [mdrecoveryd]
  11.   920  ?         S<L    0:00  quorumd

  12. 其中STAT列中的字符S   SW   SWN   SW<   S<L代表什么意思?
复制代码
发表于 2007-10-6 13:01:01 | 显示全部楼层
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
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表