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

原文地址:https://www.cnblogs.com/new0801/p/6175973.html