Linux Disk utilization iostat
来源:互联网 发布:byte数组转string乱码 编辑:程序博客网 时间:2024/05/21 22:23
iostat syntax for disk utilization report
iostat -d -x interval count
- -d : Display the device utilization report (d == disk)
- -x : Display extended statistics including disk utilization
- interval : It is time period in seconds between two samples . iostat 2 will give data at each 2 seconds interval.
- count : It is the number of times the data is needed . iostat 2 5 will give data at 2 seconds interval 5 times
命令
iostat -d -x 5 3
- rrqm/s : The number of read requests merged per second that were queued to the hard disk
- wrqm/s : The number of write requests merged per second that were queued to the hard disk
- r/s : The number of read requests per second
- w/s : The number of write requests per second
- rsec/s : The number of sectors read from the hard disk per second
- wsec/s : The number of sectors written to the hard disk per second
- avgrq-sz : The average size (in sectors) of the requests that were issued to the device.
- avgqu-sz : The average queue length of the requests that were issued to the device
- await : The average time (in milliseconds) for I/O requests issued to the device to be served. This includes the time spent by the requests in queue and the time spent servicing them.
- svctm : The average service time (in milliseconds) for I/O requests that were issued to the device
- %util : Percentage of CPU time during which I/O requests were issued to the device (bandwidth utilization for the device). Device saturation occurs when this value is close to 100%.
How do I interpret the output result for optimization?
First you need to note down following values from the iostat output:
- The average service time (svctm)
- Percentage of CPU time during which I/O requests were issued (%util)
- See if a hard disk reports consistently high reads/writes (r/s and w/s)
If any one of these are high, you need to take one of the following action:
- Get high speed disk and controller for file system (for example move from SATA I to SAS 15k disk)
- Tune software or application or kernel or file system for better disk utilization
- Use RAID array to spread the file system
For example, from about iostat report it appears that /dev/sdb under load. Hope this information will help you diagnose and optimize disk related issues.
http://www.cyberciti.biz/tips/linux-disk-performance-monitoring-howto.htm
0 0
- Linux Disk utilization iostat
- Linux CPU Utilization
- linux iostat
- Linux-iostat
- linux iostat
- Linux iostat
- linux iostat
- linux iostat
- linux iostat
- linux性能分析 -- iostat
- Linux iostat详解
- Linux命令之iostat
- Linux iostat命令解析
- linux iostat监控脚本
- linux iostat 命令详解!
- linux命令iostat详解。
- Linux server iostat分析
- linux基本监控 -iostat
- java.lang.NoClassDefFoundError: com.google.gson.stream.JsonReader 类似的在eclipse通过bulidpath导入包发生异常
- java中write(byte[] b)与write(byte[] b,int off,int len)区别
- gcc编译c++程序
- poj3274
- 文件读写
- Linux Disk utilization iostat
- win7要用到很多运行命令
- hdu1128解题报告
- 输出去除数字后的字符串
- 盗版XP成主要恶意攻击对象
- 硬盘
- 盗版XP成主要恶意攻击对象
- 算法导论第八章线性时间排序课后答案
- C/C++之define用法小结