Fio

fio #

[random-writers]
directory=/mnt/fio
ioengine=libaio
iodepth=2
thread=1                ; use thread instead of process
thinktime=100           ; 100us between I/Os
rw=randrw               ; randrw, randwrite, read,write (sequential)
direct=1                ; libaio doesn't support buffered async I/O, must be direct
size=64m
nrfiles=1024            ; size of each file: `size` divided by `nrfiles`
filesize=1024-4096
openfiles=120           ; limit simultaneous opened files
file_append=1
file_service_type=zipf  ; choose next file by zipf
rwmixread=80            ; 80:20 read:write
random_distribution=zipf:1.2
percentage_random=90    ; 10% is sequential
create_on_open=1        ; don't pre-create, create at open time
;unlink_each_loop=1
unlink=1
unified_rw_reporting=1  ; report both read and write
write_barrier=50        ; Make every N-th write a barrier write.
bs=512b,4k,             ; block size for read: 512b, write: 4k

References #

Calendar Last modified: September 11, 2020