VK Cloud logo

How to test a disk subsystem

You can test the performance of the disk subsystem using a ready-made script from VK Cloud. This script runs several tests using the fio tool, operating with 10 GB batches, and saves the result to an output file.

The resulting data shows the performance characteristics of the storage device in various configurations.

Preparatory steps

  1. If you have not done so already, contact technical support or your VK Cloud account manager with a request to allocate the required resources for testing.

    Wait for confirmation that the resources you need have been allocated.

  2. Make sure that SDN Sprut is connected for your project. Otherwise, contact technical support with a connection request.

  3. Create a test virtual machine with the following parameters:

    • Virtual machine category: select a category depending on the type of resource requested, or All current virtual machine types.

    • Virtual machine type: select STD-3 (Ice Lake) 4 vcpu, 16 Gb RAM from the list, or the type specified when requesting the resource.

    • Disk type: SSD is selected by default. To get maximum performance values, select the High-IOPS or Low Latency NVMe type.

    • Disk size: 256 GB is selected by default. To get maximum performance values, it is recommended to select 1500 GB, provided that High-IOPS or Low Latency NVME is selected in the Disk type field. For more information, see the section on disk performance.

    • Operating system: select Ubuntu 22.04 LTS.

    • At the Configuration step, in the Network field, select the existing SDN Sprut or create a new network with the Sprut type.

    Leave the remaining parameters at your discretion.

  4. Connect to the created VM and install all available updates. Installation methods depend on the selected OS.

1. Run the disk subsystem testing:

  1. Install the fio utility on the VM:

    sudo apt install fio
  2. Run the fio.sh script from VK Cloud to test performance, specifying in the <FILE_NAME> parameter the file where you want to save the testing result.

List of values for bs

bs_values=("4k" "8k" "16k" "32k" "64k" "128k" "256k")

List of values for iodepth

io_values=("1" "4" "8" "16" "32" "64")

Output file

output_file="<FILE_NAME>"

Loop through each bs value for BW tests

for io_value in "${io_values[@]}"do    for bs_value in "${bs_values[@]}"    do

BW Sequental Read

echo "BW Sequental Read (BS = $bs_value, Queue Depth = $io_value, Thread = 1)" >> "$output_file"        fio --bs="$bs_value" --direct=1 --buffered=0 --rw=read --ioengine=libaio --iodepth="$io_value" --numjobs=1 --runtime=30 --group_reporting --name=fio --size=10g >> "$output_file"        echo "#" >> "$output_file"        echo "#" >> "$output_file"

Sequental Write

echo "BW Sequental Write (BS = $bs_value, Queue Depth = $io_value, Thread = 1)" >> "$output_file"        fio --bs="$bs_value" --direct=1 --buffered=0 --rw=write --ioengine=libaio --iodepth="$io_value" --numjobs=1 --runtime=30 --group_reporting --name=fio --size=10g >> "$output_file"        echo "#" >> "$output_file"        echo "#" >> "$output_file"    donedone

Loop through each io value for IOPS tests

for io_value in "${io_values[@]}"do    for bs_value in "${bs_values[@]}"    do

IOPS Random Read

echo "IOPS Random Read (BS = $bs_value, Thread = 1, Queue size is $io_value)" >> "$output_file"        fio --bs="$bs_value" --direct=1 --buffered=0 --rw=randread --ioengine=libaio --iodepth="$io_value" --numjobs=1 --runtime=30 --group_reporting --name=fio --size=10g >> "$output_file"        echo "#" >> "$output_file"        echo "#" >> "$output_file"

IOPS Random Write

echo "IOPS Random Write (BS = $bs_value, Thread = 1, Queue size is $io_value)" >> "$output_file"        fio --bs="$bs_value" --direct=1 --buffered=0 --rw=randwrite --ioengine=libaio --iodepth="$io_value" --numjobs=1 --runtime=30 --group_reporting --name=fio --size=10g >> "$output_file"        echo "#" >> "$output_file"        echo "#" >> "$output_file"

IOPS Mixed 70% read

echo "IOPS Mixed 70% read (BS = $bs_value, Thread = 1, Queue size is $io_value)" >> "$output_file"        fio --bs="$bs_value" --direct=1 --buffered=0 --rw=randrw --rwmixread=70 --ioengine=libaio --iodepth="$io_value" --numjobs=1 --runtime=30 --group_reporting --name=fio --size=10g >> "$output_file"        echo "#" >> "$output_file"        echo "#" >> "$output_file"

IOPS Mixed 30% read

echo "IOPS Mixed 30% read (BS = $bs_value, Thread = 1, Queue size is $io_value)" >> "$output_file"        fio --bs="$bs_value" --direct=1 --buffered=0 --rw=randrw --rwmixread=30 --ioengine=libaio --iodepth="$io_value" --numjobs=1 --runtime=30 --group_reporting --name=fio --size=10g >> "$output_file"        echo "#" >> "$output_file"        echo "#" >> "$output_file"    donedone```</details>

2. Record the testing results

Enter the testing results from the file into the spreadsheet. Now you can compare this data with the performance of other cloud platforms.

Delete unused resources

The created resources are billed. If you no longer need them, delete them:

  1. Delete the test VM.
  2. Delete the subnet and the network in which the VM was hosted.
Was this article helpful?