Test sequential throughput

Sequential write speed (MB/s) with large 1M blocks and direct I/O

fio --name=seqwrite --filename=/data/testfile --size=10G --rw=write --bs=1M --iodepth=16 --direct=1 --runtime=60 --time_based --group_reporting

tool
fio5 commands
tags
fiodiskperformance

More fio commands

  • fio --name=latency --filename=/dev/<id> --rw=randread --bs=4k --iodepth=1 --numjobs=1 --runtime=30 --time_based --direct=1 --percentile_list=99:99.9:99.99

    Pure per-IO latency at iodepth=1. Reports p99, p99.9 and p99.99 tail latency

  • fio --name=mixed --filename=/data/testfile --size=8G --rw=randrw --rwmixread=70 --bs=4k --iodepth=32 --numjobs=4 --runtime=120 --time_based --direct=1 --group_reporting

    Mixed load with 70% reads and 30% writes. Closer to OLTP than pure read or write tests

  • fio --name=randread --filename=/dev/<id> --rw=randread --bs=4k --iodepth=32 --numjobs=4 --runtime=60 --time_based --direct=1 --group_reporting

    Random read test with 4k blocks. Note: --direct=1 skips the page cache, so you see real device numbers

  • fio --name=randwrite --filename=/data/testfile --size=4G --rw=randwrite --bs=4k --iodepth=64 --numjobs=4 --runtime=60 --time_based --direct=1 --group_reporting

    Random write test with 4k blocks on a file. Note: it destroys data if filename points to a raw device

all 5 fio commands