前言
fio是测试IOPS的非常好的工具,用来对硬件进行压力测试和验证,支持13种不同的I/O引擎,包括:sync,mmap, libaio, posixaio, SG v3, splice, null, network, syslet, guasi, solarisaio 等等。
- 简单好用的磁盘性能测试工具
测试准备
工具:fio- Flexible IO Tester
官网:
[http://freecode.com/projects/fio] (http://freecode.com/projects/fio)
[http://brick.kernel.dk/snaps/] (http://brick.kernel.dk/snaps/)
扩展阅读:
fio man:[http://linux.die.net/man/1/fio] (http://linux.die.net/man/1/fio)
注意:性能测试建议直接通过写裸盘的方式进行测试,会得到较为真实的数据。但直接测试裸盘会破坏文件系统结构,导致数据丢失,请在测试前确认磁盘中数据已备份。
