From: Anuj Gupta <anuj20.g@xxxxxxxxxxx> examples/uring-cmd-ng.fio has usage for conventional nvme-ns char device examples/uring-cmd-zoned.fio has usage for ZNS nvme-ns char device Signed-off-by: Anuj Gupta <anuj20.g@xxxxxxxxxxx> Co-authored-by: Ankit Kumar <ankit.kumar@xxxxxxxxxxx> --- examples/uring-cmd-ng.fio | 25 +++++++++++++++++++++++++ examples/uring-cmd-zoned.fio | 31 +++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 examples/uring-cmd-ng.fio create mode 100644 examples/uring-cmd-zoned.fio diff --git a/examples/uring-cmd-ng.fio b/examples/uring-cmd-ng.fio new file mode 100644 index 00000000..b2888a00 --- /dev/null +++ b/examples/uring-cmd-ng.fio @@ -0,0 +1,25 @@ +# io_uring_cmd I/O engine for nvme-ns generic character device + +[global] +filename=/dev/ng0n1 +ioengine=io_uring_cmd +cmd_type=nvme +size=1G +iodepth=32 +bs=4K +thread=1 +stonewall=1 + +[rand-write] +rw=randwrite +sqthread_poll=1 + +[rand-read] +rw=randread + +[write-opts] +rw=write +sqthread_poll=1 +sqthread_poll_cpu=0 +nonvectored=1 +registerfiles=1 diff --git a/examples/uring-cmd-zoned.fio b/examples/uring-cmd-zoned.fio new file mode 100644 index 00000000..58e8f79e --- /dev/null +++ b/examples/uring-cmd-zoned.fio @@ -0,0 +1,31 @@ +# io_uring_cmd I/O engine for nvme-ns generic zoned character device +# +# NOTE: with write workload iodepth must be set to 1 as there is no IO +# scheduler. + +[global] +filename=/dev/ng0n1 +ioengine=io_uring_cmd +cmd_type=nvme +zonemode=zbd +size=1G +iodepth=1 +bs=256K +verify=crc32c +stonewall=1 + +[rand-write] +rw=randwrite + +[write-opts] +rw=write +registerfiles=1 +sqthread_poll=1 +sqthread_poll_cpu=0 + +[randwrite-opts] +rw=randwrite +sqthread_poll=1 +sqthread_poll_cpu=0 +nonvectored=1 +registerfiles=1 -- 2.17.1