fio commands

5 commands, each with a one-line explanation. Click a command to copy it, or its title for details.

Commands 5 shown

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

    4k random read IOPS test; note: --direct=1 bypasses page cache for true device numbers

    disk · performance · troubleshooting

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

    4k random write IOPS on a file; note: destroys data if filename is a raw device

    disk · performance · troubleshooting

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

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

    disk · performance

  • 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/p99.99 tail latency

    disk · performance · troubleshooting

  • 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

    Realistic mixed workload 70% read / 30% write; closer to OLTP than pure tests

    disk · performance