分享到:
常见问题

如何进行存储系统IOPS、吞吐性能测试?

发布时间:2020/9/17 13:27:39     阅读:3441 次

您可以使用FIO进行吞吐和IOPS的性能测试。

一、Linux 系统下的性能测试

注意:

1、确认sunrpc_slot设置正确,详情请参见linux上NFS性能只有几MB速度

2、SFS存储系统,吞吐最大不会超过ECS带宽。如果您的ECS带宽只有1Gbps,则吞吐最大可达到125 MB/s。

fio测试工具应该已经在您的ECS上预安装了,若您发现fio没有正常安装,可通过以下命令进行安装。

如果您使用CentOS、Redhat、Aliyun Linux等操作系统,运行以下命令。
 
sudo yum install fio
 
如果您使用Ubuntu或Debian操作系统,运行以下命令。
 
sudo apt-get  update

sudo apt-get install fio

下面提供一些通用的性能测试样例。

说明

以下提供的预估值均为单台ECS测试的结果。要达到SFS文件存储的官网性能指标 ,建议使用多台ECS进行测试。

1、随机读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=/mnt

单机预估值:14k

2、随机写IOPS测试

fio -numjobs=1 -iodepth=128 -direct=1 -ioengine=libaio -sync=1 -rw=randwrite -bs=4K -size=1G -time_based -runtime=60 -name=Fio -directory=/mnt

单机预估值:10k

3、随机读吞吐

fio -numjobs=1 -iodepth=128 -direct=1 -ioengine=libaio -sync=1 -rw=randread -bs=1M -size=1G -time_based -runtime=60 -name=Fio -directory=/mnt

容量型单机预估值:150 MB/s

4、随机写吞吐

fio -numjobs=1 -iodepth=128 -direct=1 -ioengine=libaio -sync=1 -rw=randwrite -bs=1M -size=1G -time_based -runtime=60 -name=Fio -directory=/mnt

容量型单机预估值:150 MB/s

二、Windows系统下的性能测试

Windows操作系统上,您可以下载msi格式的安装包进行安装。安装包下载地址,请参见fio官方链接

说明:

1、如果在Windows系统测试NFS协议NAS文件系统性能,受限于Windows NFS客户端串行执行单个文件系统的请求,请调整-numjobs参数增加FIO测试文件数量。

2、以SFS挂载到Z盘,FIO可执行文件安装在C:\Program Files\fio\fio.exe为例,执行以下命令测试性能。

3、SFS存储系统,吞吐最大不会超过ECS带宽。如果您的ECS带宽只有1Gbps,则吞吐最大可达到125 MB/s。

4、以下提供的预估值均为单台ECS测试的结果。要达到SFS文件存储的官网性能指标 ,建议使用多台ECS进行测试。

1、随机读IOPS测试

"c:\Program Files\fio\fio.exe" -name=Fio -numjobs=2 -iodepth=128 -direct=1 -ioengine=windowsaio -sync=1 -rw=randread -bs=4K -size=1G -time_based -runtime=60 -group_reporting -thread -directory=Z\:\

单机预估值:14k

2、随机写IOPS测试

"c:\Program Files\fio\fio.exe" -name=Fio -numjobs=2 -iodepth=128 -direct=1 -ioengine=windowsaio -sync=1 -rw=randwrite -bs=4K -size=1G -time_based -runtime=60 -group_reporting -thread -directory=Z\:\

单机预估值:10k

3、随机读吞吐测试

"c:\Program Files\fio\fio.exe" -name=Fio -numjobs=2 -iodepth=128 -direct=1 -ioengine=windowsaio -sync=1 -rw=randread -bs=1M -size=1G -time_based -runtime=60 -group_reporting -thread -directory=Z\:\

容量型单机预估值:150 MB/s

4、随机写吞吐测试

"c:\Program Files\fio\fio.exe" -name=Fio -numjobs=2 -iodepth=128 -direct=1 -ioengine=windowsaio -sync=1 -rw=randwrite -bs=1M -size=1G -time_based -runtime=60 -group_reporting -thread -directory=Z\:\

容量型单机预估值:150 MB/s

作者:
来源:
关键词:
[创新地理知识·共享地理价值]
服务热线