2022-03-08 12:15:03 +00:00
|
|
|
# fio
|
|
|
|
|
2024-02-14 20:25:13 +00:00
|
|
|
> Flexible I/O tester: do an I/O action spawning multiple threads or processes.
|
2022-03-08 12:15:03 +00:00
|
|
|
> More information: <https://fio.readthedocs.io/en/latest/fio_doc.html>.
|
|
|
|
|
|
|
|
- Test random reads:
|
|
|
|
|
2023-10-07 16:36:06 +01:00
|
|
|
`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`
|
2022-03-08 12:15:03 +00:00
|
|
|
|
|
|
|
- Test sequential reads:
|
|
|
|
|
2023-10-07 16:36:06 +01:00
|
|
|
`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`
|
2022-03-08 12:15:03 +00:00
|
|
|
|
|
|
|
- Test random read/write:
|
|
|
|
|
2023-10-07 16:36:06 +01:00
|
|
|
`fio --filename={{path/to/file}} --direct=1 --rw=randrw --bs=4k --ioengine=libaio --iodepth=256 --runtime=120 --numjobs=4 --time_based --group_reporting --name={{job_name}} --eta-newline=1`
|
2022-10-01 09:13:26 +01:00
|
|
|
|
|
|
|
- Test with parameters from a job file:
|
|
|
|
|
2023-10-07 16:36:06 +01:00
|
|
|
`fio {{path/to/job_file}}`
|
2022-10-10 15:31:10 +01:00
|
|
|
|
|
|
|
- Convert a specific job file to command-line options:
|
|
|
|
|
|
|
|
`fio --showcmd {{path/to/job_file}}`
|