Commit | Line | Data |
---|---|---|
a601337a AF |
1 | ; Benchmark accessing a regular file or block device using libblkio. |
2 | ; | |
3 | ; Replace "/dev/nvme0n1" below with the path to your file or device, or override | |
13fffdfb | 4 | ; it by passing the '--libblkio_path=...' flag to fio. |
a601337a | 5 | ; |
3afc2d8a AF |
6 | ; In the example below, the two subjobs of "job-B" *and* the single subjob of |
7 | ; "job-C" will share a single libblkio instance, and "job-A" will use a separate | |
8 | ; libblkio instance. | |
9 | ; | |
a601337a AF |
10 | ; For information on libblkio, see: https://gitlab.com/libblkio/libblkio |
11 | ||
12 | [global] | |
13 | ioengine=libblkio | |
14 | libblkio_driver=io_uring | |
13fffdfb | 15 | libblkio_path=/dev/nvme0n1 ; REPLACE THIS WITH THE RIGHT PATH |
a601337a AF |
16 | rw=randread |
17 | blocksize=4k | |
18 | direct=1 | |
19 | time_based=1 | |
20 | runtime=10s | |
21 | ||
3afc2d8a AF |
22 | [job-A] |
23 | ||
24 | [job-B] | |
25 | numjobs=2 ; run two copies of this job simultaneously | |
26 | thread=1 ; have each copy run as a separate thread in the *same* process | |
27 | ||
28 | [job-C] | |
29 | thread=1 ; have the job run as a thread in the *same* process as "job-B" |