一般使用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. 安利eclipse插件之log4E

    敲完代码之后,据说要加注释.加log:OTL~~~~~~~~,在我仰天长叹之际,师父发给我了一个插件压缩包,解压-->拷贝-->重启-->了事.安装方法已经如此之便捷,简直是我辈懒癌 ...

  2. 原生Ajax封装随笔

    XMLHttpRequest 对象用于和服务器交换数据.我们使用 XMLHttpRequest 对象的 open() 和 send() 方法: open(method,url,async) metho ...

  3. ListView 加载更多列表 Load More mono forandroid 项目笔记

    今天项目经理找我说Listview加载更多的时候会出现一些问题,主要表现在会顿一下.让我我就去找Java的方法看看.自己写出了mono 的加载更多功能.和大家分享一下 先看效果 首先是模型类ListI ...

  4. java Map及Map.Entry详解

    Map是java中的接口,Map.Entry是Map的一个内部接口. Map提供了一些常用方法,如keySet().entrySet()等方法. keySet()方法返回值是Map中key值的集合:e ...

  5. Sql Server tempdb原理-缓存机制解析实践

    Tempdb就像Sqlserver的临时仓库,各式各样的对象,数据在里面进行频繁计算,操作.大量的操作使得tempdb可能面临很大压力,tempdb中缓存的设计就是为了缓解这些压力.这次就为大家介绍下 ...

  6. QQ揭秘:如何实现窗体靠边隐藏?【低调赠送:QQ高仿版GG 4.2 最新源码】

    QQ有个靠边隐藏的功能,使用起来很方便:在屏幕上拖动QQ的主窗体,当窗体的上边沿与屏幕的上边沿对齐时,主窗体就会duang~~地隐藏起来,当将鼠标移到屏幕上边沿的对应区域时,主窗体又会duang~~显 ...

  7. C#Light/Evil合体啦

    决定将C#Light和C#Evil合并成一个项目,毕竟C#Evil包含C#Light所有的功能,分开两个,基本的表达式方面有什么bug还得两头改 暂时就C#Light/Evil这么叫吧,庆祝合体,画了 ...

  8. [SQLServer大对象]——FileTable初体验

    阅读导航 启用FILESTREAM设置 更改FILESTRAM设置 启用数据库非事务性访问级别 FileTable 在我接触FileTable之前,存储文件都是存储文件的链接和扩展名到数据,其实并没有 ...

  9. 4、CC2541芯片中级教程-OSAL操作系统(简单AT指令实现+IIC软件和硬件实现驱动MPU6050)

    本文根据一周CC2541笔记汇总得来—— 适合概览和知识快速索引—— 全部链接: 中级教程-OSAL操作系统\OSAL操作系统-实验01 OSAL初探 [插入]SourceInsight-工程建立方法 ...

  10. 如何在 ASP.NET MVC 中集成 AngularJS(1)

    介绍 当涉及到计算机软件的开发时,我想运用所有的最新技术.例如,前端使用最新的 JavaScript 技术,服务器端使用最新的基于 REST 的 Web API 服务.另外,还有最新的数据库技术.最新 ...