IOPS in One Paragraph
Each time a program reads or writes a piece of a file, the kernel sends an I/O request to the disk. IOPS is the number of those requests completed per second. A database answering many queries reads small pages scattered across its files, so it needs many operations per second more than it needs raw speed. A backup copying one large file needs the opposite.
IOPS vs Throughput vs Latency
| Measure | Question it answers | Unit |
|---|---|---|
| IOPS | How many requests per second? | Operations/s |
| Throughput | How much data per second? | MB/s |
| Latency | How long does one request take? | ms or µs |
The three are linked. Throughput equals IOPS times the block size: 10,000 operations of 4 KiB each move about 40 MB per second, while the same count of 1 MiB operations would move about 10 GB per second, which few disks can do. Latency sets how many requests one waiting program can finish: at 1 ms each, a program that issues one request at a time gets at most about 1,000 per second.
Why One Disk Has Many IOPS Numbers
- Block size: small blocks give high IOPS and low throughput; large blocks give the reverse.
- Random vs sequential: requests spread across the disk are harder than requests in order. On a hard drive the gap is very large; on SSDs it is smaller. See SSD vs HDD.
- Read vs write: flash writes cost more than reads, and a mixed load behaves differently from either alone.
- Queue depth: how many requests are in flight at once. SSDs, and NVMe drives in particular, reach their highest figures only with many requests queued. A single-threaded application seldom gets there.
So a figure without the block size, pattern, and queue depth next to it says little. In orders of magnitude, hard drives handle random requests in the hundreds per second and SSDs in the tens of thousands or more; real numbers depend on the drive and the workload. The interface step is covered in NVMe vs SSD.
Measure IOPS with fio
A write test aimed at a device such as /dev/vdb overwrites whatever is on it and destroys the data. Always test with a file inside a directory you name, on a file system with enough free space. Install fio with sudo apt install fio on Debian and Ubuntu or sudo dnf install fio on AlmaLinux and Rocky Linux (there the libaio engine is the separate fio-engine-libaio package, which dnf normally pulls in), then:
mkdir -p ~/fio-test
fio --name=randread --directory=$HOME/fio-test --size=1G \
--rw=randread --bs=4k --iodepth=32 --ioengine=libaio \
--direct=1 --runtime=60 --time_based --group_reporting
fio first writes a 1 GiB test file into that directory, then reads 4 KiB blocks from it at random for 60 seconds, with 32 requests in flight. --direct=1 bypasses the page cache, so you measure the disk and not memory. In the result, the read line shows IOPS and bandwidth, and the latency percentiles show how long requests took. Change --rw to randwrite, randrw, or read, and --bs to 1m, to see other patterns. Remove the directory when you are done:
rm -r ~/fio-test
Run tests at a quiet time: they load the disk heavily and slow other work on the server.
Watch Live IOPS with iostat
iostat -x 1
From the sysstat package, it shows per disk each second: r/s and w/s (read and write IOPS), throughput, r_await and w_await (average latency in milliseconds), and %util. Rising await values under load are the clearest sign the disk is the bottleneck. A %util near 100 means saturation only on a disk that serves one request at a time; SSDs and RAID arrays work in parallel and can do more at that reading. A full walk-through is in how to check disk I/O in Linux.
Which Number Matters for Your Workload
- Databases: small random reads and writes, often with a flush to disk after each commit, so random IOPS at a low queue depth and write latency matter most.
- Web servers: mostly reads that the page cache in memory absorbs; disk IOPS matter less once the files in use fit in RAM.
- Backups and media: large sequential transfers, so throughput matters more than IOPS.
IOPS on Virtual Servers
On a virtual server, the disk is shared storage on the host, and the host may set a limit on IOPS or throughput per virtual disk. A result that stays flat at the same value across tests often reflects such a limit rather than the drives.