summaryrefslogtreecommitdiff
path: root/examples/nbd.fio
blob: 27e150864926c6afe01bcb4125ace9e7214bb7f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# To use fio to test nbdkit:
#
# nbdkit -U - memory size=256M --run 'export unixsocket; fio examples/nbd.fio'
#
# To use fio to test qemu-nbd:
#
# rm -f /tmp/disk.img /tmp/socket
# truncate -s 256M /tmp/disk.img
# export unixsocket=/tmp/socket
# qemu-nbd -t -k $unixsocket -f raw /tmp/disk.img &
# fio examples/nbd.fio
# killall qemu-nbd

[global]
ioengine=nbd
uri=nbd+unix:///?socket=${unixsocket}
# Starting from nbdkit 1.14 the following will work:
#uri=${uri}
rw=randrw
time_based
runtime=60
group_reporting
iodepth=64

[job0]
offset=0

[job1]
offset=064m

[job2]
offset=128m

[job3]
offset=192m