阿里云NAS性能测试

测试方法:根据阿里云NAS官方文档进行测试

测试对象:性能型NAS,总容量1PB,已使用27.49GB(计算吞吐量时按30GB计算)

随机读IOPS测试

  • 测试命令
fio -numjobs=1 -iodepth=128 -direct=1 -ioengine=libaio -sync=1 -rw=randread -bs=4K -size=1G -time_based -runtime=60 -name=Fio -directory=/grdata/iotest
  • 测试结果

阿里云官方明确:IOPS:最大30K(4k随机IO读写)。

read: IOPS=29.3k, BW=115MiB/s (120MB/s)(6875MiB/60004msec)

随机写IOPS测试

  • 测试命令
fio -numjobs=1 -iodepth=128 -direct=1 -ioengine=libaio -sync=1 -rw=randrw -bs=4K -size=1G -time_based -runtime=60 -name=Fio -directory=/grdata/iotest
  • 测试结果
write: IOPS=14.8k, BW=57.8MiB/s (60.6MB/s)(3466MiB/60010msec)

吞吐量测试

吞吐能力与存储量的关系:
文件存储NAS单文件系统的吞吐(读+写)上限与当前存储量呈线性关系,计算公式如下:

性能型文件系统吞吐上限(MB/s) = 0.6MB/s * 文件系统存储空间(GB) + 600MB/s(初始带宽)(最大20GB/s)
容量型文件系统吞吐上限(MB/s) = 0.15MB/s * 文件系统存储空间(GB) + 150MB/s(初始带宽)(最大10GB/s)

当前文件系统理论吞吐上限

0.6 * 30+600 = 618MB/s

随机读吞吐

  • 测试命令
fio -numjobs=1 -iodepth=128 -direct=1 -ioengine=libaio -sync=1 -rw=randread -bs=1M -size=1G -time_based -runtime=60 -name=Fio -directory=/grdata/iotest
  • 测试结果
read: IOPS=184, BW=184MiB/s (193MB/s)(10.9GiB/60809msec)

随机写吞吐

  • 测试命令
fio -numjobs=1 -iodepth=128 -direct=1 -ioengine=libaio -sync=1 -rw=randwrite -bs=1M -size=1G -time_based -runtime=60 -name=Fio -directory=/grdata/iotest
  • 测试结果
write: IOPS=189, BW=190MiB/s (199MB/s)(11.2GiB/60718msec)

测试结果

随机读写IOPS测试达到理想值

随机读写吞吐未达到理想值,推测是受ECS内网带宽(1.5Gbps)影响

原文地址:https://www.cnblogs.com/wiseo/p/15572954.html