Add summary of process state meanings
authorSiraaj Khandkar <siraaj@khandkar.net>
Wed, 29 Aug 2018 15:25:22 +0000 (11:25 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Wed, 29 Aug 2018 15:25:22 +0000 (11:25 -0400)
bin/khatus_bar

index b1e9e36..b8e47e6 100755 (executable)
@@ -175,6 +175,19 @@ function make_status_mem(    total, used, percent, status) {
 }
 
 function make_status_procs() {
+    # From man ps:
+    #   D    uninterruptible sleep (usually IO)
+    #   R    running or runnable (on run queue)
+    #   S    interruptible sleep (waiting for an event to complete)
+    #   T    stopped by job control signal
+    #   t    stopped by debugger during the tracing
+    #   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
+    #
+    # Additionally, not documented in ps man page:
+    #   I    Idle
+    #
     src = "khatus_sensor_procs"
     all = cache_get_fmt_def(src, "total_procs"            , 15, "%d")
     r   = cache_get_fmt_def(src, "total_per_state" Kfs "R", 15, "%d", "0")
This page took 0.029693 seconds and 4 git commands to generate.