<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级片免费观看视频| 中文毛片无遮挡高潮免费| 久久亚洲AV无码精品色午夜麻豆| 久久国产精品免费| 亚洲乱码无码永久不卡在线| 亚洲欧洲国产视频| 亚洲精品免费在线| 国产亚洲情侣一区二区无| av电影在线免费看| 女人毛片a级大学毛片免费| 亚洲综合国产成人丁香五月激情| 天天干在线免费视频| 亚洲精华国产精华精华液 | 亚洲精品久久久久无码AV片软件| 国产情侣激情在线视频免费看| 亚洲免费综合色在线视频| 亚洲综合无码无在线观看| 毛片免费观看的视频在线| 亚洲Av永久无码精品三区在线| 一区二区免费视频| 亚洲一区二区三区在线视频| 99在线免费观看| 亚洲第一精品电影网| 国产色无码精品视频免费| 亚洲an天堂an在线观看| 成年女人毛片免费播放视频m | 一级黄色毛片免费看| 国产亚洲3p无码一区二区| 在线a免费观看最新网站| 亚洲av永久中文无码精品| 国产精品亚洲综合一区| 中文字幕视频免费| 亚洲av无码专区在线电影天堂 | 亚洲国产精品成人久久蜜臀 | 拍拍拍无挡免费视频网站| 亚洲欧洲视频在线观看| 免费a级毛片网站| 亚洲最大天堂无码精品区| 亚洲日韩在线观看| 国产91色综合久久免费分享|