Linux的IO性能监控
一般使用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性能监控的更多相关文章
- 磁盘IO性能监控(Linux 和 Windows)
磁盘IO性能监控(Linux 和 Windows) 作者:终南 <li.zhongnan@hotmail.com> 磁盘的IO性能是衡量计算机总体性能的一个重要指标.Linux提供了i ...
- 【转载】Linux系统与性能监控
原文地址:http://kerrigan.sinaapp.com/post-7.html Linux System and Performance Monitoring http://www.hous ...
- Linux系统与性能监控
原文地址:http://kerrigan.sinaapp.com/post-7.html Linux System and Performance Monitoring http://www.hous ...
- Linux系统和性能监控之CPU篇
Linux系统和性能监控之CPU篇 性能优化就是找到系统处理中的瓶颈以及去除这些的过程.本文由sanotes.net站长tonnyom在2009年8月翻译自Linux System and Perfo ...
- 转载 IMP时数据库的IO性能监控,并提供IOPS的计算方法
IMP时数据库的IO性能监控,并提供IOPS的计算方法 2011-07-15 17:36:10 分类: Linux [root@ntkdb oradata]# iostat -x 1 10 ...
- 018 磁盘 IO 性能监控/压测工具(sar、iotop、fio、iostat)
1 sar 命令查看当前磁盘 IO 读写 sar(System Activity Reporter 系统活动情况报告)是 Linux 上最为全面的系统性能分析工具之一,可以从多方面对系统的活动进行报告 ...
- 通过iostat来查看linux硬盘IO性能|实例分析
iostat查看linux硬盘IO性能 rrqm/s: 每秒进行 merge 的读操作数目.即 delta(rmerge)/s wrqm/s: 每秒进行 merge 的写操作数目.即 delta(wm ...
- Linux下Java性能监控
Linux下Java性能监控 一.JVM堆内存使用监控 获取thread dump的3种方法: 1)使用$JAVA_HOME/bin/jcosole中的MBean,到MBean>com.sun. ...
- Linux的IO性能监控工具iostat详解
Linux系统出现了性能问题,一般我们可以通过top.iostat.free.vmstat等命令来查看初步定位问题.其中iostat可以提供更丰富的IO性能状态数据. . 基本使用 $iostat - ...
随机推荐
- 3.使用CXF开发webService
CXF 简介 关于 Apache CXF Apache CXF = Celtix + XFire,Apache CXF 的前身叫 Apache CeltiXfire,现在已经正式更名为 Apache ...
- 【原创】--linux平台下opencv安装
1.到opencv官网下载源码 也可以下载此链接http://pan.baidu.com/s/1mgId5ZM 2.解压到任意目录 可以使用右键-提取到此处,也可以在命令行中使用指令解压(linux中 ...
- iptables 四表五链
netfilter/iptables IP 信息包过滤系统是一种功能强大的工具,可用于添加.编辑和除去规则,这些规则是在做信息包过滤决定时,防火墙所遵循和组成的规则.这些规则存储在专用的信息包过滤表中 ...
- C#的linq在winform中简单应用
一.创建窗体应用程序 二.在窗体应用程序中添加linqtosql类,并且连接到sql server数据库中去 三.在资源管理器里打开数据表拖入linqtosql的视图中,并自己设置主键,并将同步设置为 ...
- week 4 日志
周一 上上个星期感冒,上个星期看完奇幻森林后痔疮发作,打了整整一礼拜的针,有点背.. 今天看了 css知多少(6)——选择器的优先级 http://www.cnblogs.com/wangfupeng ...
- 【菜鸟玩Linux开发】在Linux中使用VS Code编译调试C++项目
最近项目需求,需要在Linux下开发C++相关项目,经过一番摸索,简单总结了一下如何通过VS Code进行编译调试的一些注意事项. 关于VS Code在Linux下的安装这里就不提了,不管是CentO ...
- openfire/spark/asmack 环境调试纪要
项目需要简单搭建openfire/spark/asmack的环境及程序demo,本文简单记录以免遗忘. 1.openfire/spark 是java编写的xmpp服务器及PC客户端,安装过程相当简单一 ...
- C#可扩展编程之MEF学习笔记(一):MEF简介及简单的Demo
在文章开始之前,首先简单介绍一下什么是MEF,MEF,全称Managed Extensibility Framework(托管可扩展框架).单从名字我们不难发现:MEF是专门致力于解决扩展性问题的框架 ...
- 为jQuery的$.ajax设置超时时间
jQuery的ajax模块封装了非常强大的功能,有时候我们在发送一个ajax请求的时候希望能有一个超时的时间,想让程序在一段时间请求不到数据时做出一些反馈.幸运的是jQuery为我们提供了这样的参数: ...
- java提高篇(六)-----使用序列化实现对象的拷贝
我们知道在Java中存在这个接口Cloneable,实现该接口的类都会具备被拷贝的能力,同时拷贝是在内存中进行,在性能方面比我们直接通过new生成对象来的快,特别是在大对象的生成上,使得性能的提升非常 ...