examples: add example job file for xnvme engine usage
[fio.git] / examples / xnvme-compare.fio
CommitLineData
d338e876
AK
1; Compare fio IO engines with a random-read workload using BS=4k at QD=1
2;
3; README
4;
5; This job-file is intended to be used as:
6;
7; # Use the built-in io_uring engine to get baseline numbers
8; fio examples/xnvme-compare.fio \
9; --section=default \
10; --ioengine=io_uring \
11; --sqthread_poll=1 \
12; --filename=/dev/nvme0n1
13;
14; # Use the xNVMe io-engine engine with Linux backend and io_uring async. impl.
15; fio examples/xnvme-compare.fio \
16; --section=default \
17; --ioengine=xnvme \
18; --sqthread_poll=1 \
19; --xnvme_async=io_uring \
20; --filename=/dev/nvme0n1
21;
22; # Use the xNVMe io-engine engine with Linux backend and libaio async. impl.
23; fio examples/xnvme-compare.fio \
24; --section=default \
25; --ioengine=xnvme \
26; --xnvme_async=libaio \
27; --filename=/dev/nvme0n1
28;
29; # Use the xNVMe io-engine engine with SPDK backend, note that you have to set the Namespace-id
30; fio examples/xnvme-compare.fio \
31; --section=default \
32; --ioengine=xnvme \
33; --xnvme_dev_nsid=1 \
34; --filename=0000\\:01\\:00.0
35;
36; NOTE: The URI encoded in the filename above, the ":" must be escaped.
37;
38; On the command-line using two "\\":
39;
40; --filename=0000\\:01\\:00.0
41;
42; Within a fio-script using a single "\":
43;
44; filename=0000\:01\:00.0
45;
46; NOTE: If you want to override the default bs, iodepth, and workload, then
47; invoke it as:
48;
49; FIO_BS="512" FIO_RW="verify" FIO_IODEPTH=16 fio examples/xnvme-compare.fio \
50; --section=override
51;
52[global]
53rw=randread
54size=12G
55iodepth=1
56bs=4K
57direct=1
58thread=1
59time_based=1
60runtime=7
61ramp_time=3
62norandommap=1
63
64; Avoid accidentally creating device files; e.g. "/dev/nvme0n1", "/dev/nullb0"
65allow_file_create=0
66
67[default]
68
69[override]
70rw=${FIO_RW}
71iodepth=${FIO_IODEPTH}
72bs=${FIO_BS}