Check the IOPS performance
Last updated
Last updated
Address
VNG CorporationThis topic describes how to check the IOPS performance of an SSD. The disk specifications and testing conditions affect the test results. If you configure the testing conditions as described in the following example to fully utilize the performance of a multi-core system with high concurrency, you can achieve very high IOPS values when performing a stress test on the SSD.
Sample Operation: Random read and random write.
Image: We recommend using the latest version of the public Linux image provided by VNG Cloud, such as Almalinux9.0 x64, AlmalinuxOS-8.5 x64.
Tool: We recommend using FIO.
Warning:
You can obtain accurate test results by testing the disk partition. However, you may destroy the file system structure within the disk partition if you test the partition directly. Before testing the disk, we recommend backing up your data by taking a snapshot of the disk. For more information, see Creating a Snapshot of the Disk.
We advise against testing disks that contain the operating system or store important data. To avoid data loss, we recommend using a new drive with no data for testing.
Create a Server: Create a server with an NVMe Volume drive with 1000 IOPS on the vServer homepage.
Connect to Your Server: For more information, see the Guide to Connecting to a Virtual Server.
Run the following command to install FIO:
Use the following command to measure SSD performance: This command creates a 4GB file and performs simultaneous read/write operations with a 4KB block size at a 75% read and 25% write ratio (i.e., 3 reads for every 1 write), executing 64 tasks simultaneously. The 3:1 ratio is common and approximates current database formats.
The following are the results after completing the test with numjobs=1
:
It can be seen that the test VPS can simultaneously perform IOPS = 7500 read operations and IOPS = 2506 write operations per second.
Results with numjobs = 8:
It can be seen that the test VPS can run 8 jobs with each job having IOPS = 938 read operations and IOPS = 313 write operations per second.
Performance Testing for Random Read
Use the following command to measure SSD performance: Create a 4GB file, perform reads with full disk performance using a 4KB block size, and execute 64 tasks simultaneously.
Here are the results after completing the test with numjobs = 1:
It can be seen that the test VPS can perform IOPS = 10.0K (10000) read operations per second. Results with numjobs = 8:
It can be seen that the test VPS can run 8 jobs with each job having IOPS = 1254 read operations per second.
Use the following command to measure SSD performance: Create a 4GB file, perform writes with full disk performance using a 4KB block size, and execute 64 tasks simultaneously.
Here are the results after completing the test with numjobs = 1:
It can be seen that the test VPS can perform IOPS = 10.0K (10000) write operations per second. Results with numjobs = 8:
You can access the vMonitor homepage at: https://hcm-3.console.vngcloud.vn/vmonitor/dashboard to track the read and write speeds of the SSD: