1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/fio.md
Muhammad Falak R Wani 35eba3f361
fio: add job file example (#8567)
Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
2022-10-01 13:43:26 +05:30

970 B

fio

Flexible I/O tester. Tool that will spawn a number of threads or processes doing a particular type of I/O action. More information: https://fio.readthedocs.io/en/latest/fio_doc.html.

  • Test random reads:

sudo fio --filename={{path/to/file}} --direct=1 --rw=randread --bs=4k --ioengine=libaio --iodepth=256 --runtime=120 --numjobs=4 --time_based --group_reporting --name={{job_name}} --eta-newline=1 --readonly

  • Test sequential reads:

sudo fio --filename={{path/to/file}} --direct=1 --rw=read --bs=4k --ioengine=libaio --iodepth=256 --runtime=120 --numjobs=4 --time_based --group_reporting --name={{job_name}} --eta-newline=1 --readonly

  • Test random read/write:

sudo fio --filename={{path/to/file}} --size=500GB --direct=1 --rw=randrw --bs=4k --ioengine=libaio --iodepth=256 --runtime=120 --numjobs=4 --time_based --group_reporting --name={{job_name}} --eta-newline=1

  • Test with parameters from a job file:

sudo fio {{path/to/job_file}}