Linux IO性能测试
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 67108864 4 72882 69470 104898 125512 67108864 8 72083 69256 133689 109061 67108864 16 73375 69155 142019 116034 iozone test complete. Excel output is below: "Writer report" "4" "8" "16" "67108864" 72882 72083 73375 "Re-writer report" "4" "8" "16" "67108864" 69470 69256 69155 "Reader report" "4" "8" "16" "67108864" 104898 133689 142019 "Re-Reader report" "4" "8" "16" "67108864" 125512 109061 116034 可以看到,8k的写是72M/s左右,读是133M/s左右,跟dd的结果比较接近 测一下64G文件8k随机读写 # ./iozone -Rab iozone.wks -s64G -i 2 -y 8k -q 8k Iozone: Performance Test of File I/O Version $Revision: 3.345 $ Compiled for 64 bit mode. Build: linux-AMD64 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. Run began: Fri Nov 14 15:52:01 2008 Excel chart generation enabled Auto Mode
File size set to 67108864 KB Using Minimum Record Size 8 KB Using Maximum Record Size 8 KB Command line used: ./iozone -Rab iozone.wks -s64G -i 2 -y 8k -q 8k 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 67108864 8 Error reading block at 6501007360 read: Success 出错了(??) 4. 用bonnie <http://www.coker.com.au/bonnie />测一下 安装 # export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64 # ./configure # make # make install 开始测试,默认文件大小是内存的2倍 # bonnie -d /opt/IOTest/ -m sva17 -u root Using uid:0, gid:0. Writing with putc()...done Writing intelligently...done Rewriting...done Reading with getc()...done Reading intelligently...done start ''em...done...done...done... Create files in sequential order...done. Stat files in sequential order...done. Delete files in sequential order...done. Create files in random order...done. Stat files in random order...done. Delete files in random order...done. Version 1.03e ------Sequential Output------ --Sequential Input- --Random- -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |