hhmmoonn -- Command

Monitor the COHERENT System
hhmmoonn

The command hhmmoonn continually  displays a summary of your system's activity.
It uses an interactive display with which you can easily send a signal to a
selected process.

When you invoke hhmmoonn, it displays a display that resembles the following:

Idle:100.00% User: 0.00% Sys: 0.00% Load:  0.00 Load Avg. 1:0.00 5:0.00 20:0.00
Last PID: 8469 Total Mem: 7784K Free Mem: 5152K (66.19%)
#total: 12 #running: 1 #zombies: 0 #locked: 0 #waiting: 3 #sleeping: 8
PID   PPID Username Ksize User  Sys   %User %Sys  Flag tty     S Command
88446699    5555 ffrreedd       114444 0000:0000 0000:0000  00.0000  00.0000 44000011 ccoolloorr11  RR hhmmoonn
8468     1 root        28 00:00 00:00  0.00  0.00 4001 com3l   S getty
8460  7861 fred       208 00:00 00:00  0.00  0.00 6001 color0  S me
7861     1 fred       136 00:00 00:00  0.00  0.00 6001 color0  W ksh
  58     1 root        28 00:00 00:00  0.00  0.00 4001 com2l   S getty
  55     1 fred       128 00:00 00:00  0.00  0.00 6001 color1  W ksh
  54     1 root        28 00:00 00:00  0.00  0.00 4001 color2  S getty
  53     1 root        28 00:00 00:00  0.00  0.00 4001 color3  S getty
  49     1 daemon      59 00:17 00:03  0.00  0.00    1 null    S lpsched
  47     1 root        36 00:01 00:04  0.00  0.00    1 null    S cron
  37     1 root        16 00:00 00:02  0.00  0.00 4001 console S update
   1     0 root        24 00:05 00:01  0.00  0.00 4001 ------- W init


The first three lines

Idle:100.00% User: 0.00% Sys: 0.00% Load:  0.00 Load Avg. 1:0.00 5:0.00 20:0.00
Last PID: 8469 Total Mem: 7784K Free Mem: 5152K (66.19%)
#total: 12 #running: 1 #zombies: 0 #locked: 0 #waiting: 3 #sleeping: 8

summarize  your system's  status.   The lines  that  follow summarize  each
process.  Each line contains the following information:

PPIIDD  The process identifier.

PPPPIIDD The process identifier its parent process.  Note that process 1, iinniitt,
     has no parent process.  For more details on iinniitt, see its entry in the
     Lexicon

UUsseerrnnaammee
     The name of the user who owns this process.

KKssiizzee
     The process's  size, in  kilobytes.  Note  that this does  _n_o_t include
     memory that the process allocates for itself.

UUsseerr The amount of user time that this process has consumed.

SSyyss  The amount of system time that this process has consumed.

%UUsseerr
     The percent of user time this process has consumed.

%SSyyss The percent of system time this process has consumed.

FFllaagg The process's flag bits OR'd together, as follows:

     PPFFCCOORREE  00001 Process is in core
     PPFFLLOOCCKK  00002 Process is locked in core
     PPFFSSWWIIOO  00004 Swap I/O in progress
     PPFFSSWWAAPP  00010 Process is swapped out
     PPFFWWAAIITT  00020 Process is stopped (not waited)
     PPFFSSTTOOPP  00040 Process is stopped (waited on)
     PPFFTTRRAACC  00100 Process is being traced
     PPFFKKEERRNN  00200 Kernel process
     PPFFAAUUXXMM  00400 Auxiliary segments in memory
     PPFFDDIISSPP  01000 Dispatch at earliest convenience
     PPFFNNDDMMPP  02000 Command mode forbids dump
     PPFFWWAAKKEE  04000 Wakeup requested

     For  example, process  8460 has  flag ``4001''.   This means  that the
     process is swapped out and and that a wakeup has been requested.  This
     is consistent  with the `S'  status, which means that  it is sleeping.
     Note that the flags for  swapping do not contain useful information as
     COHERENT does not yet support demand paging.

ttttyy  The  port  from which  the  process  was launched.   This  can be  the
     console, a pseudo-tty, or a serial port.

SS    The process's status, as follows:

     RR   Ready to run (waiting for CPU time)
     SS   Stopped for other reasons (I/O completion, pause, etc.)
     TT   Process is being traced by another process
     WW   Waiting for an existent child
     ZZ   Zombie (dead, but parent not waiting)

CCoommmmaanndd
     The name of the program that this process represents.

Note that one of the process  lines is highlighted.  You can shift the line
of  highlighting by  pressing the  keys ^  and v.  When  a process  line is
highlighted, you can  send it a signal simply by  pressing a number key, as
follows:

11    Send signal HHUUPP. Equivalent to typing kkiillll -11.

22    Send signal IINNTTRR. Equivalent to typing kkiillll -22.

33    Send signal QQUUIITT. Equivalent to typing kkiillll -33.

99    Send signal KKIILLLL. Equivalent to typing kkiillll -99.

Whether the signal  has any effect will, of course,  depend upon the degree
of control you have over that process.

To quit hhmmoonn, type QQ.

_S_e_e _A_l_s_o
ccoommmmaannddss, ppss

_N_o_t_e_s
For hhmmoonn to  display the amount of system memory  available, you must first
have installed  the device  driver mmzz.  For details, see  its entry  in the
Lexicon.

hhmmoonn  uses ccuurrsseess  to  manage its  display.   Your screen  will not  appear
properly if  the environmental variable  TTEERRMM is not set  correctly for the
display device you are using, or if its tteerrmmiinnffoo entry is not correct.

hhmmoonn was written by Harry C. Pulley, IV.

