Read and write operations
There are some technical restrictions on reads and writes that apply to disks and file storage. They're imposed on the entire disk or storage and each allocation unit (a unit of disk space allocation). The allocation unit size depends on the disk or storage type.
The following maximum read and write operation parameters exist:
- Maximum IOPS: The maximum number of read and write operations per second.
- Maximum bandwidth: The total number of bytes that can be read or written per second.
The actual IOPS value depends on the disk or storage characteristics, total bandwidth, and the size of the request in bytes. The provided IOPS value is calculated using the formula:
- Max IOPS: The maximum IOPS value for the disk or storage.
- Max. bandwidth: The maximum bandwidth value for the disk or storage.
Read and write operations utilize the same disk resource. The more read operations you do, the fewer write operations you can do, and vice versa. The total number of read and write operations per second is determined by the formula:
- is the share of write operations out of the total number of read and write operations per second. Possible values: α∈[0,1].
- WriteIOPS: The IOPS write value obtained using the formula for the actual IOPS value.
- ReadIOPS: The IOPS read value obtained using the formula for the actual IOPS value.
For more information about maximum possible IOPS and bandwidth values, see Quotas and limits.
Disk and file storage performance
The maximum IOPS values are achieved when performing reads and writes that are 4 KB in size. Network SSDs and file storage have much higher IOPS for read operations and process requests faster than HDDs.
To achieve the maximum possible bandwidth, we recommend performing 4 MB reads and writes.
Disk and storage performance depends on their size: the more allocation units, the higher the IOPS and bandwidth values.
For small HDDs, there's a mechanism that raises their performance to that of 1 TB disks for peak loads. When a small disk operates at the basic performance level for 12 hours, it accumulates
credits for operations. These are spent automatically when the load increases (for example, when a VM boots up). Small HDDs can work at increased performance for about 30 minutes a day. You can spend your
credits for operations all at once or in small batches. No mechanism is provided for HDD storage.