fio 参数节选
thinktime的默认时间单位是us
runtime的默认时间是s
thinktime是指在fio的每一个IO完成时候都会插入一个停顿时间,
例如:
fio --name=randread --ioengine=libaio --iodepth=32 --rw=randread --bs=4k --direct=1 --size=100% --numjobs=1 --runtime=60s --thinktime=1000000 --filename=/dev/nvme3n1
随着thinktime 从1逐渐增加到1000000的过程中,fio output IOPS逐渐降低,特别是在IOPS较低时候,基本上是线性的反比例关系,在IOSP较高的时候,会因为其余因素的影响诶逐渐趋于平缓
I/O rate
thinktime=time
Stall the job for the specified period of time after an I/O has completed before issuing the next. May be used to simulate processing being
done by an application. When the unit is omitted, the value is interpreted in microseconds. See thinktime_blocks and thinktime_spin
thinktime_spin=time
Only valid if thinktime is set - pretend to spend CPU time doing something with the