项目背景:
我们需要对硬盘的读写性能有较深的了解,最好有个免费的开源软件可以完成!
实验环境:
vmware workstation 11
centos6.5的系统下
服务器:ip:192.168.0.57
iozone3_327
SecureCRT (ssh远程连接软件)
软件介绍:
iozone是一个文件系统的benchmark工具,可以测试不同的操作系统中文件系统的读写性能。 可以测试 Read, write, re-read,re-write, read backwards, read strided, fread, fwrite, random read, pread, mmap, aio_read, aio_write 等等不同的模式下的硬盘的性能。 测试的时候请注意,设置的测试文件的大小一定要大过你的内存(最佳为内存的两倍大小),不然linux会给你的读写的内容进行缓存。会使数值非常不真实。
实验过程:
一、软件安装
1、软件下载:
yum install gnuplot* -y
wget http://www.iozone.org/src/current/iozone3_327.tar
2、软件解包
tar xvf iozone3_327.tar
3、进入 cd iozone3_327/src/current/
4、make linux
ok!!!!!!
二、软件使用
#./iozone -a -n 512m -g 4g -i 0 -i 1 -i 5 -f /mnt/iozone -Rb ./iozone.xls
注:进行全面测试.最小测试文件为512M直到测试到4G.测试read,write,和Strided Read.测试的地方在mnt下。生成Excel的文件.
[root@localhost current]# ./iozone -a -n 512m -g 16g -i 0 -i 1 -i 5 -f /mnt/iozone -Rb ./iozone.xls
Iozone: Performance Test of File I/O
Version $Revision: 3.327 $
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,
Erik Habbinga, Kris Strecker, Walter Wong, Joshua Root.
Run began: Tue Mar 22 05:51:11 2016
Auto Mode
Using minimum file size of 524288 kilobytes.
Using maximum file size of 16777216 kilobytes.
Excel chart generation enabled
Command line used: ./iozone -a -n 512m -g 16g -i 0 -i 1 -i 5 -f /mnt/iozone -Rb ./iozone.xls
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
524288 64 67012 100497 59460 65393 34998
524288 128 45377 111585 2206404 1777903 1895857
524288 256 61028 79490 1885895 2554624 2326187
524288 512 70591 107301 2763599 2385588 1588029
524288 1024 57962 116142 2144853 2101457 1955182
524288 2048 67330 123721 2190099 1754088 1805218
524288 4096 76943 131793 2218354 1978222 1539017
524288 8192 56678 90245 3296165 3458982 3452536
524288 16384 59584 116409 2546595 2820114 2834494
1048576 64 53940 85768 78149 80070 21340
1048576 128 89805 92621 81988 84295 25386
1048576 256 100479 96022 86772 86773 28707
1048576 512 93014 94143 78952 88477 44667
1048576 1024 102472 78905 86217 87396 51231
1048576 2048 98107 96297 90289 87054 67905
1048576 4096 99849 100903 85831 89379 78568
1048576 8192 93393 95825 85104 86163 77388
1048576 16384 98364 95974 85566 88435 87340