iostat 離線安裝

由於lucene需要一定的io讀寫顧安裝iostat來對磁盤io進行監控

iostat 屬於sysstat下的功能

git路徑如下:https://github.com/sysstat/sysstat

第一步,需要下載該文件

http://sebastien.godard.pagesperso-orange.fr/download.html

第二部,則需要開始編譯了,與其他程序安裝相似

./configure

make && make install

安裝完成後就可以使用了.

[root@gather11 home]# iostat -x 1 10

Linux 2.6.18-194.el5 (gather11)         05/04/2014      _x86_64_        (16 CPU)

 

avg-cpu:  %user   %nice %system %iowait  %steal   %idle

           0.01    0.00    0.00    0.01    0.00   99.98

 

Device:         rrqm/s   wrqm/s     r/s     w/s    rkB/s    wkB/s avgrq-sz avgqu-sz   await r_await w_await  svctm  %util

sda               0.00     1.94    0.00    0.57     0.04    10.02    35.31     0.02   43.39    3.65   43.64   4.11   0.23

參考內容:

http://www.ha97.com/4546.html

發佈了116 篇原創文章 · 獲贊 53 · 訪問量 53萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章