Fio 3.37
[fio.git] / examples / libblkio-virtio-blk-vfio-pci.fio
CommitLineData
a601337a
AF
1; Benchmark accessing a PCI virtio-blk device using libblkio.
2;
13fffdfb
AF
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.
a601337a 6;
3afc2d8a
AF
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;
a601337a
AF
11; For information on libblkio, see: https://gitlab.com/libblkio/libblkio
12
13[global]
14ioengine=libblkio
15libblkio_driver=virtio-blk-vfio-pci
13fffdfb 16libblkio_path=/sys/bus/pci/devices/0000:00:01.0 ; REPLACE THIS WITH THE RIGHT PATH
a601337a
AF
17rw=randread
18blocksize=4k
19time_based=1
20runtime=10s
21
3afc2d8a
AF
22[job-A]
23
24[job-B]
25numjobs=2 ; run two copies of this job simultaneously
26thread=1 ; have each copy run as a separate thread in the *same* process
27
28[job-C]
29thread=1 ; have the job run as a thread in the *same* process as "job-B"