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
更多文章、技術交流、商務合作、聯系博主
微信掃碼或搜索:z360901061

微信掃一掃加我為好友
QQ號聯系: 360901061
您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。
【本文對您有幫助就好】元
