| 随机读 | randread + bs=4k + iodepth=32 |
|---|---|
| 顺序写 | write + bs=1M + iodepth=8 |
| 要点 | --direct=1 绕过缓存、--time_based 固定时长 |
| 对比 | 同一时刻宿主与 guest 双侧采样 |
两条基线命令
两条基线命令
fio --name=randread4k --ioengine=libaio --direct=1 --rw=randread --bs=4k \
--iodepth=32 --numjobs=4 --size=1G --runtime=60 --time_based --group_reporting
fio --name=seqwrite1m --ioengine=libaio --direct=1 --rw=write --bs=1M \
--iodepth=8 --numjobs=1 --size=4G --runtime=60 --time_based --group_reporting压测文件占用宿主空间与 IO:避开业务高峰,结束后清理测试文件。