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 - ...
 
随机推荐
- NSString格式校验
			
在项目开发过程中,NSString类型的变量是经常用到的,而且我们常常会对其格式进行对应的各种校验,你比如,在登录注册的时候,需要验证用户名的长度,用户名的字符组成等等,其实现在也有很多第三方提供的N ...
 - 【转】VC中的字符串处理
			
http://hi.baidu.com/nmn714/item/ab8d2a96d0f2d6f228164727 貌似不少人刚开始做windows程序时都会纠结在字符串处理上,所以我把关于字符串处理的 ...
 - postfix下dovecot查收邮件连接错误
			
[root@localhost ~]# telnet mail.izyno.com 110 Trying 192.168.199.133... Connected to mail.izyno.com. ...
 - wampserver 2.5 首页链接问题,wampserver Your Projects
			
在wampserver 2.5之后,在首页的Your projects里面,链接的地址为http://直接加你的系统名称,会导致无法访问, 正常的应该为http://localhost+你的系统名称, ...
 - poj 3070
			
Fibonacci Time Limit: 1000 MS Memory Limit: 65536 KB 64-bit integer IO format: %I64d , %I64u Java cl ...
 - unity初始篇 选择游戏对象
			
之前两任社长都在一直强调要写博客,一直没有写过,现在我已经踏上了博客的道路! 首先声明:本人才疏学浅,对unity认识不深,有错误的地方欢迎大家指出,在此谢过! 本文所说的选择对象,是指在游戏过程中动 ...
 - SQLSERVER 里SELECT COUNT(1) 和SELECT COUNT(*)哪个性能好?
			
SQLSERVER 里SELECT COUNT(1) 和SELECT COUNT(*)哪个性能好? 今天遇到某人在我以前写的一篇文章里问到 如果统计信息没来得及更新的话,那岂不是统计出来的数据时错误的 ...
 - 如何禁用Marlin温度保护
			
最近在玩3D打印,搞了套MEGA 2560 + RAMPS 1.4 + A4988,刷Marlin(https://github.com/MarlinFirmware/Marlin)固件,接上电机调试 ...
 - Android度量单位说明(DIP,DP,PX,SP)  (转帖)
			
(一)概念 dip: device independent pixels(设备独立像素). 不同设备有不同的显示效果,这个和设备硬件有关,一般我们为了支持WVGA.HVGA和QVGA 推荐使用这个,不 ...
 - hadoop 笔记(hbase)
			
hbase 基础: hbase是基于列的数据,其数据模式如下: 1.安装 1.1)hbase安装分为单机.伪分布式.分布式,单机下安装不依赖于hadoop:因为不需要分布式文件系统支持: 1.2)安装 ...