IOzone

IOzone is a filesystem benchmark tool. The benchmark generates and measures a variety of file operations. Iozone has been ported to many machines and runs under many operating systems.

Iozone is useful for performing a broad filesystem analysis of a vendors
computer platform.

The benchmark tests file I/O performance for the following operations: Read, write, re-read, re-write, read backwards, read strided, fread, fwrite, random read, pread ,mmap, aio_read, aio_write.
 


 

Install IOzone

Download the latest iozone rpm from
http://apt.sw.be/redhat/el7/en/x86_64/rpmforge/RPMS/

wget http://apt.sw.be/redhat/el7/en/x86_64/rpmforge/RPMS/iozone-3.424-2.el7.rf.x86_64.rpm

 
Install iozone rpm package
rpm -Uvh iozone-3.424-2.el7.rf.x86_64.rpm

 

Run IOzone

Sequential Read/Write

./iozone -s 10g -i 0 -i 1 -r 64k -f /mnt/storage/iozone-data -Rb ./iozone.xls

 
Random Read/Write
./iozone -s 10g -i 2 -r 64k -f /mnt/storage/iozone-data -Rb ./iozone.xls

X.

测试格式为-i #,比如测试写:-i 0,测试读和写:-i 0 -i 1。  

-R 产生execl格式的输出日志  

-b 将产生二进制的execl的日志文件名。 

-s 测试的文件大小 -r 文件块大小 

-a 在希望的文件系统上测试,不过只有-a的话会进行全面测试,要花费很长时间,最好用-i指定测试范围。 

-g 指定最大测试文件大小  

-n 指定最小测试文件大小 

 -t 启动线程的个数 

-f 指定临时测试文件 

-F 指定临时测试文件组  

-C 显示每个节点的吞吐量。  

-c 测试包括文件的关闭时间 

-e 测试包括flush时间 

-w 测试结束后保留测试时产生的测试文件
除非特別註明,本頁內容採用以下授權方式: Creative Commons Attribution-ShareAlike 3.0 License