更新时间:2023-10-09 gmt 08:00

sfs turbo性能测试-凯发k8国际娱乐官网入口

fio是一个开源的i/o压力测试工具,可以使用fio工具对sfs进行吞吐量和iops的性能测试。

前提条件

已在云服务器上安装fio工具。fio可从或下载。

注意和说明

测试性能依赖client和server之间的网络带宽及文件系统的容量大小。

安装fio

以linux centos系统为例说明:

  1. 在k8凯发官网下载fio。

    yum install fio

  2. 安装libaio引擎。

    yum install libaio-devel

  3. 查看fio版本。

    fio --version

文件系统性能数据

sfs turbo文件系统的性能主要有iops和吞吐量等指标,具体各指标数据参见表1

表1 性能数据表

参数

hpc型

20mb/s/tib

40mb/s/tib

125mb/s/tib

250mb/s/tib

500mb/s/tib

1000mb/s/tib

最大容量

1pb

1pb

1pb

1pb

1pb

1pb

最大iops

250k

250k

1000k

1000k

1000k

1000k

最大吞吐量

8gb/s

8gb/s

20gb/s

20gb/s

20gb/s

20gb/s

iops性能计算公式

iops=min(250000,600×容量)

其中,容量单位为tb

iops=min(250000,1200×容量)

其中,容量单位为tb

iops=min(1000000,6000×容量)

其中,容量单位为tb

iops=min(1000000,12500×容量)

其中,容量单位为tb

iops=min(1000000,25000×容量)

其中,容量单位为tb

iops=min(1000000,50000×容量)

其中,容量单位为tb

通用测试配置样例

以下提供的预估值为单台弹性云服务器ecs测试的结果。建议使用多台ecs测试,以达到的性能指标。

本文以sfs turbo性能型,云服务器规格如下为例说明。

规格:通用计算增强型 | c3.xlarge.4 | 4vcpus | 16gb

镜像:centos 7.564bit

混合读写,读写比例7:3

  • fio命令:

    fio --randrepeat=1 --ioengine=libaio --name=test -output=output.log --direct=1 --filename=/mnt/nfs/test_fio --bs=4k --iodepth=128 --size=10240m --readwrite=rw --rwmixwrite=30 --fallocate=none

    其中,“/mnt/nfs/test_fio”为待测试的目标文件的挂载路径,需具体到文件名,即这里要测试的是“/mnt/nfs”目录下的“test_fio”文件,请根据实际填写。

  • fio结果:

混合读写,读写比例3:7

  • fio命令:

    fio --randrepeat=1 --ioengine=libaio --name=test -output=output.log --direct=1 --filename=/mnt/nfs/test_fio --bs=4k --iodepth=128 --size=10240m --readwrite=rw --rwmixwrite=70 --fallocate=none

    其中,“/mnt/nfs/test_fio”为待测试的目标文件的挂载路径,需具体到文件名,即这里要测试的是“/mnt/nfs”目录下的“test_fio”文件,请根据实际填写。

  • fio结果:

顺序读iops

  • fio命令:

    fio --randrepeat=1 --ioengine=libaio --name=test -output=output.log --direct=1 --filename=/mnt/sfs-turbo/test_fio --bs=4k --iodepth=128 --size=10240m --readwrite=read --fallocate=none

    其中,“/mnt/sfs-turbo/test_fio”为待测试的目标文件的挂载路径,需具体到文件名,即这里要测试的是“/mnt/sfs-turbo”目录下的“test_fio”文件,请根据实际填写。

  • fio结果:

随机读iops

  • fio命令:

    fio --randrepeat=1 --ioengine=libaio --name=test -output=output.log --direct=1 --filename=/mnt/sfs-turbo/test_fio --bs=4k --iodepth=128 --size=10240m --readwrite=randread --fallocate=none

    其中,“/mnt/sfs-turbo/test_fio”为待测试的目标文件的挂载路径,需具体到文件名,即这里要测试的是“/mnt/sfs-turbo”目录下的“test_fio”文件,请根据实际填写。

  • fio结果:

顺序写iops

  • fio命令:

    fio --randrepeat=1 --ioengine=libaio --name=test -output=output.log --direct=1 --filename=/mnt/sfs-turbo/test_fio --bs=4k --iodepth=128 --size=10240m --readwrite=write --fallocate=none

    其中,“/mnt/sfs-turbo/test_fio”为待测试的目标文件的挂载路径,需具体到文件名,即这里要测试的是“/mnt/sfs-turbo”目录下的“test_fio”文件,请根据实际填写。

  • fio结果:

随机写iops

  • fio命令:

    fio --randrepeat=1 --ioengine=libaio --name=test -output=output.log --direct=1 --filename=/mnt/sfs-turbo/test_fio --bs=4k --iodepth=128 --size=10240m --readwrite=randwrite --fallocate=none

    其中,“/mnt/sfs-turbo/test_fio”为待测试的目标文件的挂载路径,需具体到文件名,即这里要测试的是“/mnt/sfs-turbo”目录下的“test_fio”文件,请根据实际填写。

  • fio结果:

顺序读带宽

  • fio命令:

    fio --randrepeat=1 --ioengine=libaio --name=test -output=output.log --direct=1 --filename=/mnt/sfs-turbo/test_fio --bs=1m --iodepth=128 --size=10240m --readwrite=read --fallocate=none

    其中,“/mnt/sfs-turbo/test_fio”为待测试的目标文件的挂载路径,需具体到文件名,即这里要测试的是“/mnt/sfs-turbo”目录下的“test_fio”文件,请根据实际填写。

  • fio结果:

随机读带宽

  • fio命令:

    fio --randrepeat=1 --ioengine=libaio --name=test -output=output.log --direct=1 --filename=/mnt/sfs-turbo/test_fio --bs=1m --iodepth=128 --size=10240m --readwrite=randread --fallocate=none

    其中,“/mnt/sfs-turbo/test_fio”为待测试的目标文件的挂载路径,需具体到文件名,即这里要测试的是“/mnt/sfs-turbo”目录下的“test_fio”文件,请根据实际填写。

  • fio结果:

顺序写带宽

  • fio命令:

    fio --randrepeat=1 --ioengine=libaio --name=test -output=output.log --direct=1 --filename=/mnt/sfs-turbo/test_fio --bs=1m --iodepth=128 --size=10240m --readwrite=write --fallocate=none

    其中,“/mnt/sfs-turbo/test_fio”为待测试的目标文件的挂载路径,需具体到文件名,即这里要测试的是“/mnt/sfs-turbo”目录下的“test_fio”文件,请根据实际填写。

  • fio结果:

随机写带宽

  • fio命令:

    fio --randrepeat=1 --ioengine=libaio --name=test -output=output.log --direct=1 --filename=/mnt/sfs-turbo/test_fio --bs=1m --iodepth=128 --size=10240m --readwrite=randwrite --fallocate=none

    其中,“/mnt/sfs-turbo/test_fio”为待测试的目标文件的挂载路径,需具体到文件名,即这里要测试的是“/mnt/sfs-turbo”目录下的“test_fio”文件,请根据实际填写。

  • fio结果:

分享:
网站地图