Help Center/ Scalable File Service/ Best Practices/ Testing SFS Turbo Latency
Updated on 2025-06-05 GMT+08:00

Testing SFS Turbo Latency

Fio is an open-source I/O tester. You can use fio to test the read/write latency of SFS Turbo file systems.

Prerequisites

Fio has been installed on the cloud server. You can download fio from its official website or GitHub.

Notes

The file system test latency depends on the network latency between the NFS client and the SFS Turbo file system. To reach the standard expected latency, ensure that the NFS client and SFS Turbo file system are in the same VPC.

Installing Fio

The following uses a Linux CentOS system as an example:

  1. Download fio from its official website.

    yum install fio

  2. Install the libaio engine.

    yum install libaio-devel

  3. Check the fio version.

    fio --version

Common Test Configuration Example

In the following example, an SFS Turbo Performance-Enhanced file system and an ECS with the following specifications are used for illustration.

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

Image: EulerOS 2.5

Single-queue random read

  • fio command:

    fio -direct=1 -iodepth=1 -rw=randread -ioengine=libaio -bs=4k -size=10G -numjobs=1 -runtime=60 -group_reporting -filename=/mnt/sfsturbo/fio_test_01 -name=randread_test

    Variable /mnt/sfsturbo/fio_test_01 -name indicates the location of the file to be tested. The location must be specific to the file name, which is the fio_test_01 -name file in the /mnt/sfsturbo directory in this example. Set the location based on site requirements.

  • fio result:

Single-queue random write

  • fio command:

    fio -direct=1 -iodepth=1 -rw=randwrite -ioengine=libaio -bs=4k -size=10G -numjobs=1 -runtime=60 -group_reporting -filename=/mnt/sfsturbo/fio_test_02 -name=randwrite_test

    Variable /mnt/sfsturbo/fio_test_02 -name indicates the location of the file to be tested. The location must be specific to the file name, which is the fio_test_02 -name file in the /mnt/sfsturbo directory in this example. Set the location based on site requirements.

  • fio result:

Single-queue sequential read

  • fio command:

    fio -direct=1 -iodepth=1 -rw=read -ioengine=libaio -bs=4k -size=10G -numjobs=1 -runtime=60 -group_reporting -filename=/mnt/sfsturbo/fio_test_03 -name=read_test

    Variable /mnt/sfsturbo/fio_test_03 -name indicates the location of the file to be tested. The location must be specific to the file name, which is the fio_test_03 -name file in the /mnt/sfsturbo directory in this example. Set the location based on site requirements.

  • fio result:

Single-queue sequential write

  • fio command:

    fio -direct=1 -iodepth=1 -rw=write -ioengine=libaio -bs=4k -size=10G -numjobs=1 -runtime=60 -group_reporting -filename=/mnt/sfsturbo/fio_test_04 -name=write_test

    Variable /mnt/sfsturbo/fio_test_04 -name indicates the location of the file to be tested. The location must be specific to the file name, which is the fio_test_04 -name file in the /mnt/sfsturbo directory in this example. Set the location based on site requirements.

  • fio result: