iozone 是一個(gè)開源的文件系統(tǒng)benchmark 測(cè)試工具。可用來檢測(cè)當(dāng)前或者指定磁盤的讀寫性能。
http://www.iozone.org/
安裝
先確保rpmforge repository源已經(jīng)安裝。具體參考:
http://www.tkk7.com/miaoyachun/archive/2012/02/03/369319.html
然后直接yum安裝
yum install iozone
測(cè)試
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.