Fio 3.37
[fio.git] / examples / libblkio-virtio-blk-vfio-pci.fio
1 ; Benchmark accessing a PCI virtio-blk device using libblkio.
2 ;
3 ; Replace "/sys/bus/pci/devices/0000:00:01.0" below with the path to your
4 ; device's sysfs directory, or override it by passing the '--libblkio_path=...'
5 ; flag to fio.
6 ;
7 ; In the example below, the two subjobs of "job-B" *and* the single subjob of
8 ; "job-C" will share a single libblkio instance, and "job-A" will use a separate
9 ; libblkio instance.
10 ;
11 ; For information on libblkio, see: https://gitlab.com/libblkio/libblkio
12
13 [global]
14 ioengine=libblkio
15 libblkio_driver=virtio-blk-vfio-pci
16 libblkio_path=/sys/bus/pci/devices/0000:00:01.0  ; REPLACE THIS WITH THE RIGHT PATH
17 rw=randread
18 blocksize=4k
19 time_based=1
20 runtime=10s
21
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"