Quick Linux Tip #67:
Question: Is my SSD really as fast as advertised?
Try: sudo hdparm -Tt /dev/sda
Info: hdparm -T measures cached RAM reads; -t benchmarks direct disk reads. dd can test sequential write performance using conv=fdatasync to flush cached writes.
Examples:
- $
sudo hdparm -I /dev/sda | head -20# Display drive specs and identity - $
fio --name=randwrite --ioengine=libaio --rw=randwrite --bs=4k --size=1G# Measure random write speed - $
iozone -a -g 1G# Run comprehensive filesystem benchmark
Note: hdparm is useful for sequential read testing. For workload-heavy random I/O, such as databases, use fio. NVMe drives can deliver several GB/s depending on the drive and workload. Always compare benchmark results with the manufacturer's rated specifications and test conditions.
Leave a Reply