<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Calvin's Tech Space

    成于堅忍,毀于浮躁

       :: 首頁 :: 聯系 :: 聚合  :: 管理

    Code Meaning
    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:

    Code Meaning
    < 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

    Process in D state

    If there are a lot of processes in D state in your system, then something is wrong with it.

    What is D state and a process state in general? A process in Linux can be in several states: running, sleeping, etc. Running process runs on a CPU just now, sleeping process waits for its turn on CPU or for some other event. Using ps command you can obtain information about state of each process in the system: STAT column shows that:

    # ps a
      PID TTY      STAT   TIME COMMAND
     4975 tty1     Ss+    0:00 /sbin/mingetty tty1
     4976 tty2     Ss+    0:00 /sbin/mingetty tty2
     6202 pts/0    Ss+    0:01 -bash
    10312 pts/1    Ss     0:00 -bash
      639 pts/1    R+     0:00 ps a

    First big S stands for Sleeping, R stands for running ("+" means that the process is foreground and small "s" means that the process is session leader, but it is not relevant for this article).

    D state occurs then the process is in uninterruptible sleep. This state is bad, because you can't do anything with the process in D state. Fortunately, process normally remains in such state not for so long. But if you have a heap of D state processes then some logic in system is disrupt. If that is happening, the very important thing is to determine where this unlucky sleep occurs. It is easy to do with ps command with l option. WCHAN column shows the name of the kernel function where the process is sleeping:

    # ps axl | grep D
    F   UID   PID  PPID PRI  NI    VSZ   RSS WCHAN  STAT TTY        TIME COMMAND
    vass     13478  7.2  0.0   1732   624 pts/1    D+   17:36   0:00 find ./

    http://wiki.preshweb.co.uk/doku.php?id=linux:psflags
    http://wiki.openvz.org/Processes_in_D_state
    posted on 2011-06-08 17:38 calvin 閱讀(368) 評論(0)  編輯  收藏 所屬分類: Linux
    主站蜘蛛池模板: 四虎永久免费影院在线| 最近免费中文在线视频| 免费国产高清视频| 亚洲日本一线产区和二线 | 亚洲成a人片77777群色| 最近2019中文免费字幕在线观看| 国产亚洲精品自在线观看| 国产精品免费看久久久香蕉| 国产亚洲AV手机在线观看| 在线免费观看伊人三级电影| 亚洲日韩精品无码一区二区三区 | 色噜噜噜噜亚洲第一| 国产一级淫片视频免费看| 曰批免费视频播放在线看片二| 免费一级肉体全黄毛片| 一区二区三区在线免费观看视频 | 亚洲乱亚洲乱淫久久| **aaaaa毛片免费同男同女| 久久亚洲精品国产亚洲老地址| 日本免费一区二区三区最新 | 亚洲欧洲国产精品香蕉网| 无码少妇精品一区二区免费动态 | 国内精自视频品线六区免费| 美女视频黄免费亚洲| 亚洲成?Ⅴ人在线观看无码| 中文在线免费观看| 亚洲丝袜美腿视频| 啦啦啦www免费视频| 一区二区免费在线观看| 亚洲欧洲在线观看| 噜噜嘿在线视频免费观看| 国产免费久久精品丫丫| 亚洲成人高清在线观看| 四虎免费久久影院| 日本在线看片免费人成视频1000| 亚洲中文字幕久久精品无码A| 亚洲国产成人五月综合网| 亚洲免费电影网站| 一级毛片高清免费播放| 亚洲国产高清在线精品一区| 国产伦精品一区二区三区免费迷|