ITPub博客

首页 > Linux操作系统 > Linux操作系统 > IOSTAT命令

IOSTAT命令

原创 Linux操作系统 作者:haha牛 时间:2013-04-01 11:11:38 0 删除 编辑
iostat用于监控系统中的IO情况,此外还能监控cpu情况。
[oracle@etl ~]$ iostat
Linux 2.6.32-220.el6.x86_64 (etl)  2013年04月01日  _x86_64_ (6 CPU)
avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           0.38    0.00    0.24    0.02    0.00   99.36
Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
sda               3.03         3.04       112.17    6535028  240931324
sdb               0.84         8.62       116.47   18523394  250164280
sdc               0.00         0.01         0.00      27034        248
dm-0              0.02         0.13         0.09     271114     197648
dm-1              0.00         0.01         0.02      17032      51496
dm-2              0.24         0.01         1.91      29138    4098936
dm-3              3.07         0.01         6.13      17222   13177088
dm-4             12.26         1.76        97.83    3788450  210144536
dm-5              0.76         0.20         6.02     423362   12922160
dm-6              0.07         0.91         0.16    1956362     339328
dm-7             14.71         8.57       116.47   18402746  250164240
dm-8              0.01         0.06         0.00     127090        288
1、cpu监控
[oracle@etl ~]$ iostat -c
Linux 2.6.32-220.el6.x86_64 (etl)  2013年04月01日  _x86_64_ (6 CPU)
avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           0.38    0.00    0.24    0.02    0.00   99.36
每一列的含义与vmstat中含义相同
2、io监控
tps 每秒发送到设备上的IO请求次数
BLK read/s   每秒在设备上读取数据块的个数
BLK wrtn/s   每秒在设备上写数据快的个数
BLK read     总的读取数据块的个数
BLK writn     总的写数据块的个数
rrqm/s     每秒进行混合读的次数
wrqm/s   每秒进行混合写的次数
r/s   每秒完成读设备(I/O)次数
w/s 每秒完成写设备(i/o)次数
rsec/s   每秒读扇区数
wsec/s   每秒写扇区淑
avgrq-sz  平均每次设备I/O操作大小
avgqu-sz  平均I/o队列长度
await     平均每次I/O操作的等待时间
svctm   平均每次I/O操作的服务时间
%util    一秒中有百分之多少的时间用于 I/O 操作

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/23655288/viewspace-757561/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: vmstat学习
下一篇: sar命令学习
请登录后发表评论 登录
全部评论

注册时间:2010-04-04

  • 博文量
    102
  • 访问量
    337075