Linux系统磁盘I/O测试性能工具汇总

在我的《KVM虚拟化技术:实战与原理解析》书中8.5节“磁盘I/O性能测试”中也提到了这几个工具的具体用法。
(最近没有做多少Linux system level的事情了,看着草稿箱中还有以前写的这篇文章,凑合着发出来吧)
1. dd
2. iozone
3. bonnie++
4. hdparm
5. Fio
6. iometer

Using hdparm - Speed Test
Before any of your drive's settings are changed a speed test should be done, so we can refer to it later to make sure that the drive's speed has been increased and we are not just wasting our time.
To do this hdparm can perform two benchmarks:
The speed of reading directly from the Linux buffer cache without disk access. (-t option)
The speed of reading through the buffer cache to the disk without any prior caching of data. (-T option)
The first shows us an indication of the throughput of the processor, cache, and memory of the system under test. The second measures how fast the drive can sustain sequential data reads, without any filesystem overhead.It is best to run these tests together as the second results are corrected for the first. It is also as usual to run these a couple of times to get accurate results. Here is the command you need to use:
hdparm -Tt /dev/hdb
You should some results similar to these below

Linux上许多的Benchmark汇总:http://www.gnutoolbox.com/linux-benchmark-tools/

IOzone:
http://linux.die.net/man/1/iozone
http://www.linux-mag.com/id/7525/
http://www.linux-mag.com/id/7547/

关于bonnie++:
关于bonnie: http://www.garloff.de/kurt/linux/bonnie/

Oracle ORION: http://www.oracle.com/technetwork/topics/index-089595.html

可参考:http://liuyonggang.blog.com/2011/10/21/disk-performance-characterization-dd-fio-hdparm-bonnie-seekmark-and-etc/

master

Stay hungry, stay foolish.

发表评论

邮箱地址不会被公开。 必填项已用*标注

*