| 核心参数 | --rw / --bs / --iodepth / --numjobs / --runtime |
|---|---|
| 缓存绕开 | --direct=1 |
| 报告 | --group_reporting |
随机读示例
随机读示例
fio --name=randread --ioengine=libaio --rw=randread --bs=4k \
--iodepth=32 --size=1G --runtime=60 --time_based --direct=1 --group_reportingfio 用参数化 job 描述负载:rw 指定读写模式、bs 块大小、iodepth 队列深度、numjobs 并发、direct=1 绕过缓存。
| 核心参数 | --rw / --bs / --iodepth / --numjobs / --runtime |
|---|---|
| 缓存绕开 | --direct=1 |
| 报告 | --group_reporting |
fio --name=randread --ioengine=libaio --rw=randread --bs=4k \
--iodepth=32 --size=1G --runtime=60 --time_based --direct=1 --group_reporting