Kodama's home / tips.

今どんなプログラムが動いているか?(ps,pstree,top)

~$ ps aux
USER       PID %CPU %MEM  SIZE   RSS TTY STAT START   TIME COMMAND
bin         91  0.0 15.7  7760  3504  ?  S  May 14   1:30 /usr/local/canna/bin/
kdm         92  0.0  0.0  1172     0   1 SW May 14   0:00 (bash)
kdm       2429  0.0  0.0  1176     0  p8 SW May 15   0:00 (bash)
kdm      15586  3.1 15.4  7528  3440   1 S   10:43   8:02 mule -fn 7x14 -geomet
.....略

$ pstree
init-+-3*[agetty]
     |-bash---startx---xinit-+-.xinitrc-+-fvwm
     |                       |          |-kinput2
     |                       |          |-kterm---bash---pstree
     |                       |          |-kterm---bash---bash
     |                       |          |-mule---wakeup
     |                       |          |-oclock
     |                       |          |-xcpustate
     |                       |          |-2*[xeyes]
     |                       |          `-xload
     |                       `-X
     |-cannaserver
     |-cardmgr
     |-crond
     |-inetd
.....略

$ top
  5:24pm  up 4 days, 21:03,  9 users,  load average: 0.00, 0.04, 0.01
89 processes: 87 sleeping, 2 running, 0 zombie, 0 stopped
CPU states:  2.3% user,  1.5% system,  0.0% nice, 96.1% idle
Mem:  1024764K av,  997932K used,   26832K free,       0K shrd,  175808K buff
Swap:  151192K av,    2336K used,  148856K free                  455516K cached

  PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
  205 root      18   0  183M  54M 13456 R     2.3  5.4  56:38 X
  232 kdm       14   0  1052 1052   760 S     0.7  0.1  49:26 top
    1 root       8   0   152  152   128 S     0.0  0.0   0:03 init
    2 root       9   0     0    0     0 SW    0.0  0.0   0:01 keventd
    3 root       9   0     0    0     0 SW    0.0  0.0   0:00 kapmd
    4 root      19  19     0    0     0 SWN   0.0  0.0   0:00 ksoftirqd_CPU0
    5 root       9   0     0    0     0 SW    0.0  0.0   0:01 kswapd
    6 root       9   0     0    0     0 SW    0.0  0.0   0:00 bdflush
....略

Kodama's home / tips.