engines/libblkio: Add option libblkio_wait_mode
[fio.git] / examples / cmdprio-bssplit.fio
1 ; Randomly read/write a block device file at queue depth 16.
2 [global]
3 filename=/dev/sda
4 direct=1
5 write_lat_log=prio-run.log
6 log_prio=1
7 rw=randrw
8 ioengine=libaio
9 iodepth=16
10
11 ; Simple cmdprio_bssplit format. All non-zero percentage entries will
12 ; use the same prio class and prio level defined by the cmdprio_class
13 ; and cmdprio options.
14 [cmdprio]
15 ; 40% of read IOs are 64kB and 60% are 1MB. 100% of writes are 1MB.
16 ; 100% of the 64kB reads are executed with prio class 1 and prio level 0.
17 ; All other IOs are executed without a priority set.
18 bssplit=64k/40:1024k/60,1024k/100
19 cmdprio_bssplit=64k/100:1024k/0,1024k/0
20 cmdprio_class=1
21 cmdprio=0
22
23 ; Advanced cmdprio_bssplit format. Each non-zero percentage entry can
24 ; use a different prio class and prio level (appended to each entry).
25 [cmdprio-adv]
26 ; 40% of read IOs are 64kB and 60% are 1MB. 100% of writes are 1MB.
27 ; 25% of the 64kB reads are executed with prio class 1 and prio level 1,
28 ; 75% of the 64kB reads are executed with prio class 3 and prio level 2.
29 ; All other IOs are executed without a priority set.
30 stonewall
31 bssplit=64k/40:1024k/60,1024k/100
32 cmdprio_bssplit=64k/25/1/1:64k/75/3/2:1024k/0,1024k/0
33
34 ; Identical to the previous example, but with a default priority defined.
35 [cmdprio-adv-def]
36 ; 40% of read IOs are 64kB and 60% are 1MB. 100% of writes are 1MB.
37 ; 25% of the 64kB reads are executed with prio class 1 and prio level 1,
38 ; 75% of the 64kB reads are executed with prio class 3 and prio level 2.
39 ; All other IOs are executed with prio class 2 and prio level 7.
40 stonewall
41 prioclass=2
42 prio=7
43 bssplit=64k/40:1024k/60,1024k/100
44 cmdprio_bssplit=64k/25/1/1:64k/75/3/2:1024k/0,1024k/0