一般使用iostat命令监控I/O性能
1.iostat命令可用参数列表:

OPTIONS
-c Display the CPU utilization report. -d Display the device utilization report. -h Make the NFS report displayed by option -n easier to read by a human. -k Display statistics in kilobytes per second instead of blocks per second. Data displayed are valid only with kernels 2.4 and
later. -m Display statistics in megabytes per second instead of blocks or kilobytes per second. Data displayed are valid only with ker-
nels 2.4 and later. -N Display the registered device mapper names for any device mapper devices. Useful for viewing LVM2 statistics. -n Display the network filesystem (NFS) report. This option works only with kernel 2.6. and later. -p [ { device [,...] | ALL } ]
The -p option displays statistics for block devices and all their partitions that are used by the system. If a device name is
entered on the command line, then statistics for it and all its partitions are displayed. Last, the ALL keyword indicates that
statistics have to be displayed for all the block devices and partitions defined by the system, including those that have
never been used. Note that this option works only with post 2.5 kernels. -t Print the time for each report displayed. The timestamp format may depend on the value of the S_TIME_FORMAT environment vari-
able (see below). -V Print version number then exit. -x Display extended statistics. This option works with post 2.5 kernels since it needs /proc/diskstats file or a mounted sysfs
to get the statistics. This option may also work with older kernels (e.g. 2.4) only if extended statistics are available in
/proc/partitions (the kernel needs to be patched for that). -z Tell iostat to omit output for any devices for which there was no activity during the sample period.

2.iostat 常用参数举例:
iostat -d -x -k 1 10

$ iostat -d -x -k
Linux 2.6.-.el6.x86_64 (vnode1) 2015年02月25日 _x86_64_ ( CPU) Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await svctm %util
sda 7.23 2923.45 111.97 158.24 4305.81 12331.61 123.14 0.42 1.53 1.55 41.99 Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await svctm %util
sda 0.00 0.00 1313.00 0.00 38884.00 0.00 59.23 13.14 10.14 0.76 100.10 Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await svctm %util
sda 0.00 19604.00 587.00 361.00 8380.00 55624.00 135.03 80.47 64.34 1.05 100.00 Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await svctm %util
sda 1.00 11641.00 93.00 1079.00 4436.00 67312.00 122.44 143.71 119.34 0.85 100.00 Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await svctm %util
sda 0.00 12925.00 91.00 1036.00 6612.00 54072.00 107.69 142.63 133.53 0.89 100.00 Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await svctm %util
sda 0.00 15597.00 66.00 1101.00 3284.00 69080.00 124.02 142.49 124.61 0.86 100.00 Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await svctm %util
sda 4.00 6834.00 326.00 766.00 10532.00 37696.00 88.33 75.73 80.81 0.92 100.00 Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await svctm %util
sda 0.00 7322.00 417.00 331.00 6796.00 22568.00 78.51 65.42 68.01 1.34 100.00 Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await svctm %util
sda 0.00 12862.00 80.00 1464.00 1424.00 63416.00 83.99 121.29 87.37 0.65 100.00 Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await svctm %util
sda 0.00 0.00 857.00 10.00 12512.00 1972.00 33.41 11.65 14.53 1.15 100.00

iostat -d -k 1 10

$ iostat -d -k
Linux 2.6.-.el6.x86_64 (vnode1) 2015年02月25日 _x86_64_ ( CPU) Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn
sda 270.40 4306.84 12331.65 Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn
sda 812.00 35820.00 56.00 Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn
sda 1175.00 24940.00 508.00 Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn
sda 910.00 10056.00 12224.00 Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn
sda 733.00 2672.00 20064.00 Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn
sda 836.00 712.00 10456.00 Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn
sda 995.00 604.00 13052.00 Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn
sda 966.00 104.00 14264.00 Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn
sda 811.00 268.00 19728.00 Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn
sda 1056.00 124.00 16788.00

更多关于iostat命令的说明可参见转载文章:http://www.cnblogs.com/jyzhao/articles/4299419.html

Linux的IO性能监控的更多相关文章

  1. 磁盘IO性能监控(Linux 和 Windows)

    磁盘IO性能监控(Linux 和 Windows) 作者:终南   <li.zhongnan@hotmail.com> 磁盘的IO性能是衡量计算机总体性能的一个重要指标.Linux提供了i ...

  2. 【转载】Linux系统与性能监控

    原文地址:http://kerrigan.sinaapp.com/post-7.html Linux System and Performance Monitoring http://www.hous ...

  3. Linux系统与性能监控

    原文地址:http://kerrigan.sinaapp.com/post-7.html Linux System and Performance Monitoring http://www.hous ...

  4. Linux系统和性能监控之CPU篇

    Linux系统和性能监控之CPU篇 性能优化就是找到系统处理中的瓶颈以及去除这些的过程.本文由sanotes.net站长tonnyom在2009年8月翻译自Linux System and Perfo ...

  5. 转载 IMP时数据库的IO性能监控,并提供IOPS的计算方法

     IMP时数据库的IO性能监控,并提供IOPS的计算方法 2011-07-15 17:36:10 分类: Linux [root@ntkdb oradata]# iostat -x 1 10     ...

  6. 018 磁盘 IO 性能监控/压测工具(sar、iotop、fio、iostat)

    1 sar 命令查看当前磁盘 IO 读写 sar(System Activity Reporter 系统活动情况报告)是 Linux 上最为全面的系统性能分析工具之一,可以从多方面对系统的活动进行报告 ...

  7. 通过iostat来查看linux硬盘IO性能|实例分析

    iostat查看linux硬盘IO性能 rrqm/s: 每秒进行 merge 的读操作数目.即 delta(rmerge)/s wrqm/s: 每秒进行 merge 的写操作数目.即 delta(wm ...

  8. Linux下Java性能监控

    Linux下Java性能监控 一.JVM堆内存使用监控 获取thread dump的3种方法: 1)使用$JAVA_HOME/bin/jcosole中的MBean,到MBean>com.sun. ...

  9. Linux的IO性能监控工具iostat详解

    Linux系统出现了性能问题,一般我们可以通过top.iostat.free.vmstat等命令来查看初步定位问题.其中iostat可以提供更丰富的IO性能状态数据. . 基本使用 $iostat - ...

随机推荐

  1. linux ssh config

    Host code.engineering.redhat.com    HostName code.engineering.redhat.com    Port 29418    User jiall ...

  2. 使用Spring注解来简化ssh框架的代码编写

     目的:主要是通过使用Spring注解的方式来简化ssh框架的代码编写. 首先:我们浏览一下原始的applicationContext.xml文件中的部分配置. <bean id="m ...

  3. .NET Framework 基础知识总结

    C#: 1. public:同一个程序集的任何代码或引用该程序集的其他程序集都可以访问该类型或成员 internal:同一个程序集的任何代码都可以访问该类型或成员 private :只有在结构或类中的 ...

  4. Golang通过Thrift框架完美实现跨语言调用

    每种语言都有自己最擅长的领域,Golang 最适合的领域就是服务器端程序. 做为服务器端程序,需要考虑性能同时也要考虑与各种语言之间方便的通讯.采用http协议简单,但性能不高.采用TCP通讯,则需要 ...

  5. 我的ORM之四--删除

    我的ORM索引 删除语法 var 影响行数 = dbr.表.Delete(条件).Execute(); 问题 1.如果没有Where条件,同样会报错.

  6. GOOGLE PROTOBUF开发者指南

    原文地址:http://www.cppblog.com/liquidx/archive/2009/06/23/88366.html 译者: gashero 目录 1   概览 1.1   什么是pro ...

  7. ASP.NET MVC 随想录——探索ASP.NET Identity 身份验证和基于角色的授权,中级篇

    在前一篇文章中,我介绍了ASP.NET Identity 基本API的运用并创建了若干用户账号.那么在本篇文章中,我将继续ASP.NET Identity 之旅,向您展示如何运用ASP.NET Ide ...

  8. 定时关闭AWS上的EC2机器实例

    最近一段时间在做一个产品从阿里云向亚马逊云中国区迁移的前期试验.亚马逊中国区并没有开放免费体验账号,使用的每一份资源都要实打实的掏钱.而为了实验我们使用时一般要启动好几台EC2实例.为了不浪费辛辛苦苦 ...

  9. Git学习笔记(10)——搭建Git服务器

    本文主要记录了Git服务器的搭建,以及一些其他的配置,和最后的小总结. Git远程仓库服务器 其实远程仓库和本地仓库没啥不同,远程仓库只是每天24小时开机为大家服务,所以叫做服务器.我们完全可以把自己 ...

  10. eclipse启动不了

    因为eclipse运行变得非常慢,我想再次增加一下eclipse的最大内存,以期待使eclipse能够快速的响应. 参照某些资料,我也不知道什么时候改成了这样: -vmargs-Xms512m-Xmx ...