example: add a zoned block device write example with GC by trim workload
[fio.git] / examples / zbd-rand-write-trim-gc.fio
CommitLineData
a5000c86
SK
1; Using the libaio ioengine, random write to a (zoned) block device. Write
2; target zones are chosen randomly among the first 128 zones starting from
3; device offset corresponding to the 524th zone of the device (524 x 256 MB).
4; For first 3 seconds, run only random write. After that, run random write job
5; and garbage collection simulation job in parallel. The garbage collection
6; simulation job runs trim workload to reset the 128 zones randomly. Use flow
7; option to make the zone resets happen every 128 blocks writes by the other
8; job. This example does not specify max_open_zones. The limit of maximum
9; open zones is obtained from the target block device.
10
11[global]
12group_reporting
13zonemode=zbd
14zonesize=256M
15direct=1
16time_based
17runtime=30
18
19filename=/dev/sdb
20offset=524z
21
22[warmup]
23rw=randwrite
24bs=2M
25size=128z
26ioengine=libaio
27runtime=3
28
29[wjob]
30wait_for=warmup
31rw=randwrite
32bs=2M
33size=128z
34ioengine=libaio
35flow=128
36
37[trimjob]
38wait_for=warmup
39rw=randtrim
40bs=256M
41size=128z
42ioengine=psync
43flow=1