手机版
你好,游客 登录 注册
背景:
阅读新闻

Linux vmstat监控系统负载

[日期:2012-01-12] 来源:Linux社区  作者:aqszhuaihuai [字体: ]

使用vmstat监控系统负载

环境:

[plain]
  1. [Oracle@simpleit ~]$ uname -a    
  2. Linux simpleit.domain.cn 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:35 EDT 2010 i686 athlon i386 GNU/Linux    
  3. [oracle@simpleit ~]$ cat /etc/RedHat-release    
  4. CentOS release 5.5 (Final)    

[plain]
  1. [oracle@simpleit ~]$ vmstat 5 5  
  2. procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------  
  3.  r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st  
  4.  0  0      0 346220  28848 493544    0    0   109    55 1014  155  0  1 98  1  0  
  5.  0  0      0 346220  28848 493544    0    0     0    21  698   93  0  0 100  0  0  
  6.  0  0      0 346220  28856 493544    0    0     0    48  703  102  0  0 100  0  0  
  7.  0  0      0 346220  28856 493544    0    0     0    21  693   94  0  0 100  0  0  
  8.  0  0      0 346220  28860 493544    0    0     0    30  701   95  0  0 100  0  0  
  9.   
  10. DESCRIPTION  
  11.        vmstat reports information about processes, memory, paging, block IO, traps, and cpu activ-ity.  
  12.          
  13. FIELD DESCRIPTION FOR VM MODE  
  14.    Procs  
  15.        r: The number of processes waiting for run time.  
  16.        b: The number of processes in uninterruptible sleep.  
  17.   
  18.    Memory  
  19.        swpd: the amount of virtual memory used.  
  20.        free: the amount of idle memory.  
  21.        buff: the amount of memory used as buffers.  
  22.        cache: the amount of memory used as cache.  
  23.        inact: the amount of inactive memory. (-a option)  
  24.        active: the amount of active memory. (-a option)  
  25.   
  26.    Swap  
  27.        si: Amount of memory swapped in from disk (/s).  
  28.        so: Amount of memory swapped to disk (/s).  
  29.   
  30.    IO  
  31.        bi: Blocks received from a block device (blocks/s).  
  32.        bo: Blocks sent to a block device (blocks/s).  
  33.   
  34.    System  
  35.        in: The number of interrupts per second, including the clock.  
  36.        cs: The number of context switches per second.  
  37.   
  38.    CPU  
  39.        These are percentages of total CPU time.  
  40.        us: Time spent running non-kernel code. (user time, including nice time)  
  41.        sy: Time spent running kernel code. (system time)  
  42.        id: Time spent idle. Prior to Linux 2.5.41, this includes IO-wait time.  
  43.        wa: Time spent waiting for IO. Prior to Linux 2.5.41, included in idle.  
  44.        st: Time stolen from a virtual machine. Prior to Linux 2.6.11, unknown.  
linux
相关资讯       Linux基础教程 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款