由於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
參考內容: