Help Center> Scalable File Service> User Guide> Other Operations> Testing SFS Turbo Performance
Updated on 2024-01-03 GMT+08:00

Testing SFS Turbo Performance

fio is an open-source I/O pressure testing tool. You can use fio to test the throughput and IOPS of SFS.

Prerequisites

fio has been installed on the ECS. It can be downloaded from the official website or from GitHub.

Note and Description

The test performance depends on the network bandwidth between the client and server, as well as the capacity of the file system.

Installing fio

The following uses a Linux CentOS system as an example:

  1. Download fio.

    yum install fio

  2. Install the libaio engine.

    yum install libaio-devel

  3. Check the fio version.

    fio --version

File System Performance Data

The performance metrics of SFS Turbo file systems include IOPS and throughput. For details, see Table 1.

Table 1 File system performance data

Parameter

General

HPC

SFS Turbo Standard

SFS Turbo Performance

125 MB/s/TiB

250 MB/s/TiB

Maximum capacity

32 TB

32 TB

1 PB

1 PB

Maximum IOPS

5,000

20,000

1 million

1 million

Maximum throughput

150 MB/s

350 MB/s

20 GB/s

20 GB/s

Formula used to calculate the IOPS

IOPS = Min. [5,000, (1,200 + 6 x Capacity)]

Capacity unit: GB

IOPS = Min. [20,000, (1,500 + 20 x Capacity)]

Capacity unit: GB

IOPS = Min. (1,000,000, 6,000 x Capacity)

Capacity unit: TB

IOPS = Min. (1,000,000, 12,500 x Capacity)

Capacity unit: TB

Common Test Configuration Example

The following estimated values are obtained from the test on a single ECS. You are advised to use multiple ECSs to test the performance of SFS.

In the following examples, SFS Turbo Performance and ECSs with the following specifications are used for illustration.

Specifications: General computing-plus | c3.xlarge.4 | 4 vCPUs | 16 GB

Image: CentOS 7.5 64-bit

Mixed read/write with a read/write ratio of 7:3

  • fio command:

    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 indicates the location of the file to be tested. The location must be specific to the file name, which is the test_fio file in the /mnt/nfs directory in this example. Set it based on the site requirements.

  • fio result:

Mixed read/write with a read/write ratio of 3:7

  • fio command:

    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 indicates the location of the file to be tested. The location must be specific to the file name, which is the test_fio file in the /mnt/nfs directory in this example. Set it based on the site requirements.

  • fio result:

Sequential read IOPS

  • fio command:

    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 indicates the location of the file to be tested. The location must be specific to the file name, which is the test_fio file in the /mnt/sfs-turbo directory in this example. Set it based on the site requirements.

  • fio result:

Random read IOPS

  • fio command:

    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 indicates the location of the file to be tested. The location must be specific to the file name, which is the test_fio file in the /mnt/sfs-turbo directory in this example. Set it based on the site requirements.

  • fio result:

Sequential write IOPS

  • fio command:

    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 indicates the location of the file to be tested. The location must be specific to the file name, which is the test_fio file in the /mnt/sfs-turbo directory in this example. Set it based on the site requirements.

  • fio result:

Random write IOPS

  • fio command:

    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 indicates the location of the file to be tested. The location must be specific to the file name, which is the test_fio file in the /mnt/sfs-turbo directory in this example. Set it based on the site requirements.

  • fio result:

Sequential read bandwidth

  • fio command:

    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 indicates the location of the file to be tested. The location must be specific to the file name, which is the test_fio file in the /mnt/sfs-turbo directory in this example. Set it based on the site requirements.

  • fio result:

Random read bandwidth

  • fio command:

    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 indicates the location of the file to be tested. The location must be specific to the file name, which is the test_fio file in the /mnt/sfs-turbo directory in this example. Set it based on the site requirements.

  • fio result:

Sequential write bandwidth

  • fio command:

    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 indicates the location of the file to be tested. The location must be specific to the file name, which is the test_fio file in the /mnt/sfs-turbo directory in this example. Set it based on the site requirements.

  • fio result:

Random write bandwidth

  • fio command:

    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 indicates the location of the file to be tested. The location must be specific to the file name, which is the test_fio file in the /mnt/sfs-turbo directory in this example. Set it based on the site requirements.

  • fio result: