Interview Prep/Linux/Performance & the USE Method

How do you benchmark disk performance correctly?

AdvancedProductionPerformance & the USE Method
Answer

Use fio with a workload that matches the application, not dd:

fio --name=randrw --filename=/data/fio.test --size=4G --direct=1 \
    --rw=randrw --rwmixread=70 --bs=4k --iodepth=32 --numjobs=4 \
    --ioengine=libaio --runtime=60 --time_based --group_reporting

--direct=1 bypasses the page cache. Report IOPS, throughput and latency percentiles (p99). On cloud volumes, newly restored EBS volumes need initialization first, and gp3/io2 provisioned IOPS and throughput caps dominate results.

All Linux questions Roadmap: Linux

More on Performance & the USE Method