Azure多磁盘构建RAID-0后,Host-Cache相关性能测试

在Azure文档中有一段关于如何让虚拟机的存储性能提高的介绍,基于此进行对比测试


To achieve scalability targets in Premium Storage, for all premium storage disks with cache set to ReadOnlyor None, you must disable "barriers" when you mount the file system. You don't need barriers in this scenario because the writes to premium storage disks are durable for these cache settings. When the write request successfully finishes, data has been written to the persistent store. 


https://docs.microsoft.com/en-us/azure/storage/storage-premium-storage


机器:DS3 v2(4 cores, 14 GB memory),挂载了4个1023GB数据硬盘

使用mdadm为软RAID,使用sysbench(https://github.com/akopytov/sysbench)测试data stripping后的随机读写性能

1. 对比Host-Cache为Read-Only的情况下,fstab中是否禁用barrier的影响


 启用barrier,单线程启用barrier,64条线程禁用barrier,单线程禁用barrier,64条线程
随机读587.821637.72743.779813.21
随机写391.881090.99495.856545.14


可以看出在read-only的host-cache下,禁用barrier,在多线程情况下,性能提升了6倍左右


2. 对比Read-Only Host Cache和Read/Write Host Cache

 Read-Only Host Cache, 单线程Read-Only Host Cache,64条线程Read/Write Host Cache,单线程Read/Write Host Cache,64条线程
随机读587.821637.72455.75455.63
随机写391.881090.99303.83303.75



相关资料:

https://www.azure.cn/documentation/articles/virtual-machines-linux-configure-raid

http://www.ducea.com/2009/03/08/mdadm-cheat-sheet/


新增

https://www.azure.cn/documentation/articles/virtual-machines-linux-optimization/

https://docs.microsoft.com/en-us/azure/storage/storage-premium-storage-performance

Enable ReadOnly Cache on premium storage disks with Read heavy operations to get higher Read IOPS.





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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值