examples: add zonemode=zbd example scripts
authorDamien Le Moal <damien.lemoal@wdc.com>
Wed, 8 Apr 2020 06:46:59 +0000 (15:46 +0900)
committerJens Axboe <axboe@kernel.dk>
Wed, 8 Apr 2020 14:43:35 +0000 (08:43 -0600)
Add two example script files (random write and sequential read)
illustrating the use of zonemode=zbd with the psync and libaio
ioengines.

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
examples/zbd-rand-write.fio [new file with mode: 0644]
examples/zbd-seq-read.fio [new file with mode: 0644]

diff --git a/examples/zbd-rand-write.fio b/examples/zbd-rand-write.fio
new file mode 100644 (file)
index 0000000..1b3f208
--- /dev/null
@@ -0,0 +1,20 @@
+; Using the libaio ioengine, random write to a (zoned) block device,
+; writing at most 32 zones at a time. Target zones are chosen randomly
+; and writes directed at the write pointer of the chosen zones
+
+[global]
+name=zbd-rand-write
+group_reporting
+rw=randwrite
+zonemode=zbd
+zonesize=256M
+max_open_zones=32
+bs=512K
+direct=1
+numjobs=16
+time_based=1
+runtime=180
+
+[dev1]
+filename=/dev/sdj
+ioengine=psync
diff --git a/examples/zbd-seq-read.fio b/examples/zbd-seq-read.fio
new file mode 100644 (file)
index 0000000..82f2b1d
--- /dev/null
@@ -0,0 +1,19 @@
+; Sequentially read 40 zones of a (zoned) block device, reading only
+; written data from the 524th zone (524 * 256M = 140660178944)
+
+[global]
+name=zbd-seq-read
+rw=read
+bs=256K
+direct=1
+numjobs=1
+zonemode=zbd
+zonesize=256M
+read_beyond_wp=0
+
+[dev1]
+filename=/dev/sdd
+offset=140660178944
+size=10G
+ioengine=libaio
+iodepth=16