不同的系统版本提供的iozone版本不一致,由于要对比不同文件系统的性能差异,最好iozone的版本保持一致,所以需要编译安装iozone下载源码wget http://www.iozone.org/src /current/iozone3_492.tgz解压tar zxf iozone3_492.tgz编译cd iozone3_492/src/current/make linux-AMD64在编译安装时,
#tar iozone3_347.tar #cd iozone3_347/src/current #make linux (直接执行make 有帮助选项) 常用参数 -a 全面测试 /iozone -a -n 512m -g 4g -i 0 -i 1 -i 5 -f /mnt/iozone -Rb . /iozone -i 0 -i 1 -f /iozone.tmpfile -Rab /test-iozone.xls -g 8G -n 4G -C 结果分析: 使用这条测试命令测试NAS 而参数–A 则告诉Iozone你不介意等待,即使在文件非常大时也希望进行小块 的测试。 注意: 不推荐在Iozone3.61版中使用这个参数。 -v 显示Iozone的版本号。
我们去查看iozone的man手册可以看到,这一段 -+m filename Used to specify a filename that will be used to Field 2 is the working directory, on the client, where Iozone will run. Field 3 is the path to the executable Iozone on the client. 由上述信息可知,配置文件有三行信息,第一行是机器名或者IP;第二行是挂载目录;第三行则是iozone的执行路径 [Clinet] [mount_directory] /usr/bin/iozone /opt/iozone storage03 /mnt/ /opt/iozone storage04 /mnt/ /opt/iozone 配置完,就可以开始测试了 export RSH=ssh /
我们去查看iozone的man手册可以看到,这一段 -+m filename Used to specify a filename that will be used to Field 2 is the working directory, on the client, where Iozone will run. Field 3 is the path to the executable Iozone on the client. 由上述信息可知,配置文件有三行信息,第一行是机器名或者IP;第二行是挂载目录;第三行则是iozone的执行路径 [Clinet] [mount_directory] /usr/bin/iozone /opt/iozone storage03 /mnt/ /opt/iozone storage04 /mnt/ /opt/iozone 配置完,就可以开始测试了 export RSH=ssh /
下文即将介绍的iozone工具将帮助你测试这一切。 iozone IOzone是一个文件系统基准测试工具。该基准测试生成并测量各种文件操作。 工具获取 IOzone Filesystem Benchmark 官网 不同平台iozone工具安装方法: windows平台可以在iozone官网下载exe格式的安装包 linux X86_64 平台可以在iozone官网通过RPM包手动安装iozone ARM平台可以下载源码进行交叉编译 ARM平台交叉编译iozone方法 首先去官网下载iozone源码(Latest或者stable版本都可以 Iozone将使用POSIX异步I/O,不会执行任何额外的bcopy操作。Iozone使用的缓冲区将直接传递给异步I/O系统调用。 # 测试记录最小为1KB 最大为1MB $ iozone -a -r 1K # 测试记录固定为 1KB 直接IO模式 $ iozone -a -I # O_DIRECT 同步模式 $ iozone
参考链接:http://www.iozone.org/ 下载:可以在参考链接进行下载;在写此博文是 iozone的版本为3 487; 下载为 压缩包,解压后,根据软件说明文档可以进行编译生成 对应平台的 使用: 我们可以把生成的iozone 可执行文件拷贝到需要运行挂载点进行运行。 也可以使用 -f 指定路径; 常用命令: iozone –Ra iozone –Rab output.wks iozone –Ra –g 2G –i 0 –i 1 iozone –Rac (NFS 使用 /iozone:运行iozone工具; -a:进行全面测试; -n 1g:测试最小文件为1g; -g 4g: 测试最大文件为4g; -I 0: 测试模式为写; -f: /iozone -R -a -b hvs-iozone.xls -c -i 0 -i 1 -i 2 -i 3 -i 4 -i 5 -i 8 该命令中,-a表示使用全自动模式进行测试,并根据测试结果生成
UDP_STREAM -l 30 netperf -H 127.0.0.1 -t TCP_RR -l 30 netperf -H 127.0.0.1 -t UDP_RR -l 30 4、IO性能测试:iozone rpm -ivh http://www.iozone.org/src/current/iozone-3-487.src.rpm cd /root/rpmbuild/SOURCES/ tar xvf iozone3_487.tar cd iozone3_487/src/current make && make linux /root/rpmbuild/SOURCES/iozone3_487/ src/current/iozone –a –g 1G –i0 –i1 –Rb ioperf.xls
Cached更大的优势会在iozone的重写测试中体现 ---- iozone经验总结和问题反思 关于iozone iozone是一个文件系统的benchmark工具,可以测试不同的操作系统中文件系统的读写性能 (摘自百科) iozone的安装和使用,网上有太多的解释,这里就不占用过多的篇幅了,直接上干货。 常用的测试指令 # 写速率 ./iozone -i0 -Rab . /test-iozone-write.xls -g 2G -n 1M -w -e -C # 读速率 ./iozone -i1 -Rab . -Rab /tmp/test-iozone-auto.xls -g 2G -n 1M -w -e -C ;; "b") iozone -i0 -Rab /tmp /tmp/test-iozone-fwrite.xls -g 2G -n 1M -w -e -C ;; "f") perf_proc/iozone -i4 -
IOZone (读写模式测试) 参考链接:http://www.iozone.org/ 磁盘设备之上是文件系统,测试磁盘的工具往往就是调用块设备驱动的接口进行读写测试。 Iozone目前已经被移植到各种体系结构计算机和操作系统上,广泛用于文件系统性能测试、分析与评估的标准工具。 IOZone和IOMeter不同,IOMeter的测试是基于数据块的,而IOZome的测试是基于文件的,因此更适合用来测试文件系统的性能。 使用IOZone 可以在多线程,多CPU,并指定CPU Cache 空间大小以及同步或者异步IO读写模式的情况下进行文件操作的性能测试。 使用教程: https://www.cnblogs.com/xuyaowen/p/iozone.html 3.
硬盘读取性能测试 – IOZone IOZone 是一款 Linux 文件系统性能测试工具 可以测试不同的操作系统中文件系统的读写性能。 下载:http://www.iozone.org/src/current/ [ root@localhost current ]# tar xvf iozone3_420 . tar [ root@ localhost ~]# cd iozone3_420 / src / current / [ root@localhost current ]# make linux [ root@localhost current ]# ./ iozone - a - n 512m - g 16g - i 0 - i 1 - i 5 - f / mnt / iozone - Rb ./ iozone . xls -a 使用全自动模式 -n 为自动模式设置最小文件大小 (Kbytes)。
硬盘读取性能测试 - IOZone IOZone 是一款 Linux 文件系统性能测试工具 可以测试不同的操作系统中文件系统的读写性能。 下载:http://www.iozone.org/src/current/ [root@localhost current]# tar xvf iozone3_420.tar [root@localhost ~]# cd iozone3_420/src/current/ [root@localhost current]# make linux [root@localhost current]# . /iozone -a -n 512m -g 16g -i 0 -i 1 -i 5 -f /mnt/iozone -Rb . /iozone.xls -a 使用全自动模式 -n 为自动模式设置最小文件大小 (Kbytes)。 -g 设置自动模式可使用的最大文件大小 Kbytes。 -i 用来指定运行哪个测试。
IOZone是一款Linux文件系统性能测试工具 可以测试不同的操作系统中文件系统的读写性能。 下载:http://www.iozone.org/src/current/ [root@localhost current]# tar xvf iozone3_420.tar [root@localhost ~]# cd iozone3_420/src/current/ [root@localhost current]# make linux [root@localhost current]# . /iozone -a -n 512m -g 16g -i 0 -i 1 -i 5 -f /mnt/iozone -Rb . /iozone.xls -a使用全自动模式 -n为自动模式设置最小文件大小(Kbytes)。 -g设置自动模式可使用的最大文件大小Kbytes。 -i用来指定运行哪个测试。
2、硬盘读取性能测试-IOZone IOZone是一款Linux文件系统性能测试工具 可以测试不同的操作系统中文件系统的读写性能。 下载:http://www.iozone.org/src/current/ [root@localhost current]# tar xvf iozone3_420.tar [root@localhost ~]# cd iozone3_420/src/current/ [root@localhost current]# make linux [root@localhost current]# . /iozone -a -n 512m -g 16g -i 0 -i 1 -i 5 -f /mnt/iozone -Rb . /iozone.xls -a使用全自动模式 -n为自动模式设置最小文件大小(Kbytes)。 -g设置自动模式可使用的最大文件大小Kbytes。 -i用来指定运行哪个测试。
硬盘读取性能测试 - IOZone IOZone 是一款 Linux 文件系统性能测试工具 可以测试不同的操作系统中文件系统的读写性能。 下载:http://www.iozone.org/src/current/ [root@localhost current]# tar xvf iozone3_420.tar [root@localhost ~]# cd iozone3_420/src/current/ [root@localhost current]# make linux [root@localhost current]# . /iozone -a -n 512m -g 16g -i 0 -i 1 -i 5 -f /mnt/iozone -Rb . /iozone.xls -a 使用全自动模式 -n 为自动模式设置最小文件大小 (Kbytes)。 -g 设置自动模式可使用的最大文件大小 Kbytes。 -i 用来指定运行哪个测试。
硬盘读取性能测试 - IOZone IOZone 是一款 Linux 文件系统性能测试工具 可以测试不同的操作系统中文件系统的读写性能。 下载:http://www.iozone.org/src/current/ [root@localhost current]# tar xvf iozone3_420.tar [root@localhost ~]# cd iozone3_420/src/current/ [root@localhost current]# make linux [root@localhost current]# . /iozone -a -n 512m -g 16g -i 0 -i 1 -i 5 -f /mnt/iozone -Rb . /iozone.xls -a 使用全自动模式 -n 为自动模式设置最小文件大小 (Kbytes)。 -g 设置自动模式可使用的最大文件大小 Kbytes。 -i 用来指定运行哪个测试。
图2:reshmeat.sourceforge.net网站上的FIO截图 3.IOzone 网址:http://iozone.org/ IOzone是一个文件系统基准测试工具,支持测试各种文件系统 IOzone支持多线程,支持同步或异步I/O读写模式,IOzone还有一个特点是支持测试结果生成图片,方便直观的看到结果。 ? 图3:IOzone网站上IOzone自动生成的图片 4.dd命令 dd是系统自带命令,不用特别安装,使用dd命令可以快速判断磁盘io性能。
打包发布:mvn※,ants,jenkins,※svn 测试软件:ab,JMeter,Webbench,LoadRunner,http_load,tcpcopy(都是※) 带宽测试:smokeping,iozone 性能测试:dd, fio(IOPS测试),iozone(磁盘测试) 日志相关:rsyslog,Awstats※,flume,storm,ELK(Elasticsearch+Logstash+Kibana
/iozone -a -n 4k -g 1g -i 0 -i 1 -i 2 -f /root/test.rar -Rb . /iozone.xls 相关的资料 https://docs.docker.com/storage/storagedriver/select-storage-driver/ http://dockone.io
image.png iozone:https://www.cnblogs.com/diaosicai/p/6379908.html proftpd+mysql:https://blog.csdn.net
5 读写性能的影响因素 5.1 O_SYNC 注意Tina 使用iozone 时,默认参数是使能了O_SYNC 的,降低了cache 的影响。 如需测不带O_SYNC 的性能,需修改iozone 参数,测试用例的menuconfig 中提供了ASYNC选项,选上即可。 测试用例运行过程会打印出iozone 的参数,具体参数含义请查看iozone 的帮助。 5.2 调频策略 不同调频策略会对读写性能造成影响,建议在测试的时候切换到performance 策略。