ubuntu-进程及内存监控

进程监控

top运行中的说明
Z,B       Global: 'Z' change color mappings; 'B' disable/enable bold
  l,t,m     Toggle Summaries: 'l' load avg; 't' task/cpu stats; 'm' mem info
  1,I       Toggle SMP view: '1' single/separate states; 'I' Irix/Solaris mode

  f,o     . Fields/Columns: 'f' add or remove; 'o' change display order
  F or O  . Select sort field
  <,>     . Move sort field: '<' next col left; '>' next col right
  R,H     . Toggle: 'R' normal/reverse sort; 'H' show threads
  c,i,S   . Toggle: 'c' cmd name/line; 'i' idle tasks; 'S' cumulative time
  x,y     . Toggle highlights: 'x' sort field; 'y' running tasks
  z,b     . Toggle: 'z' color/mono; 'b' bold/reverse (only if 'x' or 'y')
  u       . Show specific user only
  n or #  . Set maximum tasks displayed

  k,r       Manipulate tasks: 'k' kill; 'r' renice
  d or s    Set update interval
  W         Write configuration file
  q         Quit
          ( commands shown with '.' require a visible task display window )

deepfuture@deepfuture-laptop:~$ top

top - 17:27:53 up  8:58,  2 users,  load average: 0.26, 0.09, 0.10
Tasks: 137 total,   2 running, 134 sleeping,   0 stopped,   1 zombie
Cpu(s):  9.3%us,  2.0%sy,  0.0%ni, 88.5%id,  0.0%wa,  0.1%hi,  0.1%si,  0.0%st
Mem:    501180k total,   485952k used,    15228k free,    22864k buffers
Swap:  1461872k total,    50532k used,  1411340k free,   141460k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                         
 2479 root      20   0  397m  76m 9084 S   14 15.7  25:36.20 Xorg                                                            
11836 deepfutu  20   0 45800  15m  10m S    3  3.3   0:18.65 gnome-terminal                                                  
 7418 deepfutu  20   0  252m 105m  28m S    2 21.6  78:09.92 firefox                                                         
 3290 deepfutu  20   0 51884  17m  11m S    1  3.5   2:12.17 gnome-panel                                                     
 3402 deepfutu  20   0 31604 9.8m 7176 S    1  2.0   0:21.10 gtk-window-deco                                                 
 3289 deepfutu  20   0 27500 8048 4200 S    0  1.6   3:51.43 compiz.real                                                     
 3426 deepfutu  20   0 20360 8124 6472 S    0  1.6   2:11.72 gnome-screensav                                                 
13933 deepfutu  20   0  2448 1196  912 R    0  0.2   0:00.20 top                                                             
 3192 deepfutu  20   0 42896  12m  10m S    0  2.6   3:30.67 scim-panel-gtk                                                  
 3314 deepfutu  20   0 40796 8676 5196 S    0  1.7   0:03.51 gnome-power-man                                                 
 3483 root      15  -5     0    0    0 S    0  0.0   0:11.94 rt73usb                                                         
    1 root      20   0  1904  536  484 S    0  0.1   0:01.79 init                                                            
    2 root      15  -5     0    0    0 S    0  0.0   0:00.00 kthreadd                                                        
    3 root      RT  -5     0    0    0 S    0  0.0   0:00.02 migration/0                                                     
    4 root      15  -5     0    0    0 S    0  0.0   0:01.16 ksoftirqd/0                                                     
    5 root      RT  -5     0    0    0 S    0  0.0   0:00.00 watchdog/0                                                      
    6 root      RT  -5     0    0    0 S    0  0.0   0:00.05 migration/1                                                     
    7 root      15  -5     0    0    0 S    0  0.0   0:00.54 ksoftirqd/1                                                     
    8 root      RT  -5     0    0    0 S    0  0.0   0:00.00 watchdog/1                                                      
    9 root      15  -5     0    0    0 S    0  0.0   0:00.56 events/0                                                        
   10 root      15  -5     0    0    0 S    0  0.0   0:00.02 events/1                                                        
   11 root      15  -5     0    0    0 S    0  0.0   0:00.00 khelper      
内存监控                                                
deepfuture@deepfuture-laptop:~$ free -kb -s 10
             total       used       free     shared    buffers     cached
Mem:     513208320  497172480   16035840          0   23445504  144855040
-/+ buffers/cache:  328871936  184336384
Swap:   1496956928   51744768 1445212160

             total       used       free     shared    buffers     cached
Mem:     513208320  497553408   15654912          0   23445504  144855040
-/+ buffers/cache:  329252864  183955456
Swap:   1496956928   51744768 1445212160

你可能感兴趣的:(cache,ubuntu,F#,Solaris,firefox)