Posted on 2012-04-26 10:49
Milo的海域 阅读(477)
评论(0) 编辑 收藏 所属分类:
Linux
iozone 是一个开源的文件系统benchmark 测试工具。可用来检测当前或者指定磁盘的读写性能。
http://www.iozone.org/
安装
先确保rpmforge repository源已经安装。具体参考:
http://www.blogjava.net/miaoyachun/archive/2012/02/03/369319.html
然后直接yum安装
yum install iozone
测试
iozone -i 0 -r 32 -s 2097152
Iozone: Performance Test of File I/O
Version $Revision: 3.394 $
Compiled for 64 bit mode.
Build: linux
Contributors:William Norcott, Don Capps, Isom Crawford, Kirby Collins
Al Slater, Scott Rhine, Mike Wisner, Ken Goss
Steve Landherr, Brad Smith, Mark Kelly, Dr. Alain CYR,
Randy Dunlap, Mark Montague, Dan Million, Gavin Brebner,
Jean-Marc Zucconi, Jeff Blomberg, Benny Halevy, Dave Boone,
Erik Habbinga, Kris Strecker, Walter Wong, Joshua Root,
Fabrice Bacchella, Zhenghua Xue, Qin Li, Darren Sawyer.
Ben England.
Run began: Wed Apr 25 19:36:55 2012
Record Size 32 KB
File size set to 2097152 KB
Command line used: iozone -i 0 -r 32 -s 2097152
Output is in Kbytes/sec
Time Resolution = 0.000001 seconds.
Processor cache size set to 1024 Kbytes.
Processor cache line size set to 32 bytes.
File stride size set to 17 * record size.
random random bkwd record stride
KB reclen write rewrite read reread read write read rewrite read fwrite frewrite fread freread
2097152 32 844758 2001670
iozone test complete.