Collection of practical fio tests
Ubuntu/Debian:
apt install fioRHEL/CentOS/Fedora:
dnf install fiomacOS:
brew install fioFrom source:
git clone https://github.com/axboe/fio.git
cd fio
./configure
make
make installOriginal FIO docs:
Basic run:
fio jobfile.fioSave output to file:
fio jobfile.fio --output=results.txtJSON output for parsing:
fio jobfile.fio --output-format=json --output=results.jsonRun specific job from file:
fio jobfile.fio --section=rand-read-4kOverride parameters:
fio jobfile.fio --runtime=300 --size=10GQuick one-liner test:
fio --name=test --rw=randread --bs=4k --size=1G --runtime=60 --time_basedTest on specific directory:
WARNING! Do not use block device as the target, or it wipes out the whole disk!
fio jobfile.fio --directory=/mnt/testMultiple output formats:
fio jobfile.fio --output=results.txt --output-format=normal --write_lat_log=latencyJob files support environment variable substitution:
TEST_DIR=/mnt/nvme SIZE=10G RUNTIME=300 fio jobfile.fio