From a99bd37f690ab246caa9b9d65adfa65a25967190 Mon Sep 17 00:00:00 2001 From: Ankit Kumar Date: Tue, 13 Feb 2024 21:03:15 +0530 Subject: [PATCH] examples: add PI example with xnvme ioengine Signed-off-by: Ankit Kumar Reviewed-by: Jens Axboe Link: https://lore.kernel.org/r/20240213153315.134202-6-ankit.kumar@samsung.com Signed-off-by: Vincent Fu --- examples/xnvme-pi.fio | 53 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 examples/xnvme-pi.fio diff --git a/examples/xnvme-pi.fio b/examples/xnvme-pi.fio new file mode 100644 index 00000000..ca8c0101 --- /dev/null +++ b/examples/xnvme-pi.fio @@ -0,0 +1,53 @@ +; README +; +; This job-file is intended to be used either as: +; +; # Use the xNVMe io-engine engine io_uring_cmd async. impl. +; fio examples/xnvme-pi.fio \ +; --ioengine=xnvme \ +; --xnvme_async=io_uring_cmd \ +; --filename=/dev/ng0n1 +; +; # Use the xNVMe io-engine engine with nvme sync. impl. +; fio examples/xnvme-pi.fio \ +; --ioengine=xnvme \ +; --xnvme_sync=nvme \ +; --filename=/dev/ng0n1 +; +; # Use the xNVMe io-engine engine with SPDK backend, note that you have to set the Namespace-id +; fio examples/xnvme-pi.fio \ +; --ioengine=xnvme \ +; --xnvme_dev_nsid=1 \ +; --filename=0000\\:01\\:00.0 +; +; NOTE: The URI encoded in the filename above, the ":" must be escaped. +; +; On the command-line using two "\\": +; +; --filename=0000\\:01\\:00.0 +; +; Within a fio-script using a single "\": +; +; filename=0000\:01\:00.0 +; +; NOTE: This example configuration assumes that the NVMe device is formatted +; with a separate metadata buffer. If you want to run on an extended LBA format +; update the "bs" accordingly. +; +[global] +size=100M +iodepth=16 +bs=4K +md_per_io_size=64 +pi_act=0 +pi_chk=GUARD,APPTAG,REFTAG +apptag=0x0234 +apptag_mask=0xFFFF +thread=1 +stonewall=1 + +[write] +rw=write + +[read] +rw=read -- 2.25.1