全部文档
当前文档

暂无内容

如果没有找到您期望的内容,请尝试其他搜索词

文档中心

KFS性能测试

最近更新时间:2021-11-25 16:31:19

本文介绍在Linux CentOS 系统上使用FIO进行文件存储带宽和IOPS的性能测试。

性能测试前,请注意以下事项:

  • 确认sunrpc_slot参数设置正确,详情请参见常见问题>为什么Linux操作系统上NFS客户端运行性能不佳?
  • 带宽最大不会超过KEC内网带宽。如果您的KEC带宽只有1Gbps,则吞吐最大可达到125 MB/s。
  • 本文以单台云服务器KEC测试为准。建议使用多台KEC测试,以达到文件存储KFS的最佳性能指标。
  • 本文测试的主机规格为标准型S6(32核64GB),主机内网带宽为12Gbps。

安装FIO

执行以下命令安装FIO工具。

sudo yum install fio

随机读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

测试结果:43.1K
1.png

随机写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

测试结果:11.3K
2.png

随机读带宽

命令如下:

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

测试结果:983MB/s
3.png

随机写带宽

命令如下:

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

测试结果:1045MB/s
4.png

文档导读
纯净模式常规模式

纯净模式

点击可全屏预览文档内容
文档反馈