Does your server feel slow when it reads or writes files? Measure the disks before you guess. This page uses fio, the standard tool for disk tests, and the quick hdparm. The tests take about a minute and write only a test file. They were run on Ubuntu 26.04 LTS on a server with two hard disks in RAID 1; run the commands as root.
Always give fio a file as --filename, as below. A disk name such as /dev/sda there would overwrite the disk and destroy your data.
1. Install the Tools
apt install fio hdparm
Run the tests in a folder on the disk you want to measure, with at least 3 GB free, for example cd /srv. Stop programs that use the disk heavily during the test, such as torrent clients, or the numbers will be lower.
2. Sequential Speed: Large Files
Writing and then reading a 2 GB file in large blocks, as when you copy or download big files:
fio --name=seqwrite --filename=fio-test --size=2G --rw=write --bs=1M --direct=1 --ioengine=libaio --iodepth=16 fio --name=seqread --filename=fio-test --size=2G --rw=read --bs=1M --direct=1 --ioengine=libaio --iodepth=16
The result is the bw= value in the last lines (WRITE: and READ:). An example from a server with RAID 1:
WRITE: bw=160MiB/s (168MB/s) ... READ: bw=172MiB/s (181MB/s) ...
3. Random Access: Many Small Reads
Reading small 4 KB blocks at random places for 20 seconds, as when many torrents or a database read at the same time:
fio --name=randread --filename=fio-test --size=2G --rw=randread --bs=4k --direct=1 --ioengine=libaio --iodepth=32 --runtime=20 --time_based
The result is IOPS=, the number of reads per second. On the same server: IOPS=620.
Delete the test file afterwards:
rm fio-test
4. A Quick Check With hdparm
For a first impression of how fast a disk reads, in a few seconds, without a test file:
hdparm -t /dev/sda
On the same server: Timing buffered disk reads: 522 MB in 3.01 seconds = 173.54 MB/sec. lsblk lists your disks; hdparm -t only reads, so it is safe on a disk.
What Is Normal?
sequential random 4 KB Hard disk (HDD) 120 – 250 MB/s 100 – 300 IOPS (one disk) SATA SSD 400 – 550 MB/s tens of thousands of IOPS NVMe SSD 1500 MB/s and more hundreds of thousands of IOPS
- Hard disks are fast for large files and slow for many small random reads; that is normal, not a fault. In RAID 1, reads can use both disks, which is why the example server reaches more random reads than one disk alone.
- Much lower numbers than expected, or numbers that drop over time, can point to a failing disk. Check its health: How to Check Disk Health with smartctl on a Dedicated Server.
- Asking support about disk speed? Send the output of the three fio tests and of
lsblk.