← 返回命令列表

Linux command

fio 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Sequential read test

fio --name=test --rw=read --size=[1G]

Random write test

fio --name=test --rw=randwrite --size=[1G]

Run job file

fio [jobfile.fio]

Mixed read/write

fio --name=test --rw=randrw --rwmixread=[70] --size=[1G]

Measure latency

fio --name=test --rw=randread --size=[1G] --lat_percentiles=1

说明

fio (Flexible I/O Tester) is a versatile I/O benchmark tool for testing storage performance. It simulates various workload patterns and measures throughput, IOPS, and latency. The tool supports numerous I/O engines including sync, libaio, io_uring, and network protocols. Job files define complex test scenarios with multiple workloads. fio is the standard tool for storage benchmarking, used for disk selection, filesystem tuning, and performance validation.

参数

--name _NAME_
Job name.
--rw _TYPE_
I/O type: read, write, randread, randwrite, randrw.
--size _SIZE_
Total I/O size.
--bs _SIZE_
Block size.
--iodepth _N_
I/O queue depth.
--numjobs _N_
Number of parallel jobs.
--runtime _SEC_
Test duration.
--output _FILE_
Output file.
--help
Display help information.

FAQ

What is the fio command used for?

fio (Flexible I/O Tester) is a versatile I/O benchmark tool for testing storage performance. It simulates various workload patterns and measures throughput, IOPS, and latency. The tool supports numerous I/O engines including sync, libaio, io_uring, and network protocols. Job files define complex test scenarios with multiple workloads. fio is the standard tool for storage benchmarking, used for disk selection, filesystem tuning, and performance validation.

How do I run a basic fio example?

Run `fio --name=test --rw=read --size=[1G]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --name _NAME_ do in fio?

Job name.