LoadRunner Controller 菜单 tools –> options 中我们可以看到是3秒钟采集一次服务器的资源信息,如下图所示:
这就等价于以下命令:
    iostat –d 3n 输出的tps 
    
    或者 iostat –x 3 中的 r/s+w/s
  
iostat –d 3n 的输出类似如下:
    # iostat -d 3n 
    
    Linux 2.6.18-194.el5 (www2.×××.cn) 01/23/2011 _x86_64_ (8 CPU) 
  
    Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn 
    
    sda 3.94 171.62 80.80 362832 170820 
    
    sdb 0.22 1.53 3.27 3240 6912 
  
    Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn 
    
    sda 1.66 5.32 61.13 16 184 
    
    sdb 0.66 0.00 7.97 0 24 
  
    Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn 
    
    sda 0.00 0.00 0.00 0 0 
    
    sdb 0.00 0.00 0.00 0 0
  
iostat –x 3 的输出类似如下:
    # iostat -x 3 
    
    Linux 2.6.18-194.el5 (www2.×××.cn) 01/23/2011 _x86_64_ (8 CPU) 
  
    avg-cpu: %user %nice %system %iowait %steal %idle 
    
     4.42 0.00 0.34 0.16 0.00 95.08 
  
    Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util 
    
    sda 3.23 7.94 1.90 1.97 167.59 79.25 63.88 0.06 15.07 3.55 1.37 
    
    sdb 0.02 0.32 0.12 0.10 1.49 3.31 21.52 0.00 2.32 1.29 0.03 
  
    avg-cpu: %user %nice %system %iowait %steal %idle 
    
     0.04 0.00 0.08 0.12 0.00 99.75 
  
    Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util 
    
    sda 0.00 5.00 0.00 1.00 0.00 48.00 48.00 0.01 7.67 7.67 0.77 
    
    sdb 0.00 0.33 0.00 0.67 0.00 8.00 12.00 0.00 0.50 0.50 0.03 
  
    avg-cpu: %user %nice %system %iowait %steal %idle 
    
     0.00 0.00 0.04 0.08 0.00 99.88 
  
    Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util 
    
    sda 0.00 2.67 0.00 1.33 0.00 32.00 24.00 0.01 8.00 6.25 0.83 
    
    sdb 0.00 0.33 0.00 0.67 0.00 8.00 12.00 0.00 0.50 0.50 0.03 
  
参考资料
    服务器监控性能指标 
    
    
      http://hi.baidu.com/gotech/blog/item/ce0ded13df132f045baf5354.html
    
  
    unix 计数器disk traffic含义 
    
    
      http://www.51testing.com/?uid-13997-action-viewspace-itemid-5081
    
  


 
     
					 
					