iozone测试glusterfs性能


iozone 是linux下的磁盘性能测试工具,编译完成后就一个bin文件,用起来也很方便。



./iozone -a -n 1g -g 2g -i 0 -i 1 -i 2 -i 3 -i 7 -f /mnt/iozone -Rb no-rh.xls


-a 表示自动测试


-n , -g 表示最小和最大的文件大小


-i 代表测试项目

Used to specify which tests to run. (0=write/rewrite, 1=read/re-read, 2=random-read/write
3=Read-backwards, 4=Re-write-record, 5=stride-read, 6=fwrite/re-fwrite, 7=fread/Re-fread,
8=random mix, 9=pwrite/Re-pwrite, 10=pread/Re-pread, 11=pwritev/Re-pwritev, 12=preadv/Re-
preadv).
One will always need to specify 0 so that any of the following tests will have a file to measure.
-i # -i # -i # is also supported so that one may select more than one test.


0是必须的。


-Rb 指定输出文件


----------------------------------------------------------------------------------------------------


下面就使用iozone对glusterfs的性能做一个简单的测试。iozone要求文件大小为内存的两倍,测试机器内存为8G,则文件大小设为16G。


首先新建一个glusterfs卷,它使用了一个本地的brick。 这样没有网络,也没有副本拷贝,基本上是最简单的glusterfs卷了。


然后我关掉了io-cache, read-ahead, write-behind这些用于提高性能的xlator。关闭方法:

gluster volume set XXX off


将卷挂载到/mnt,开始测试....


 



 


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值