From: Damien Le Moal Date: Fri, 3 Sep 2021 15:20:27 +0000 (+0000) Subject: examples: add examples for cmdprio_* IO priority options X-Git-Tag: fio-3.28~4 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=63176c21beb68ec54787eb2fd6be5b3c9132113b;p=fio.git examples: add examples for cmdprio_* IO priority options Add the example scripts cmdprio-percentage.fio and cmdprio-bssplit.fio to illustrate the use of the cmdprio_percentage, cmdprio_class, cmdprio and cmdprio_bssplit options. Also add the fiograph output images for these example scripts. Signed-off-by: Damien Le Moal Signed-off-by: Niklas Cassel Signed-off-by: Jens Axboe --- diff --git a/examples/cmdprio-bssplit.fio b/examples/cmdprio-bssplit.fio new file mode 100644 index 00000000..47e9a790 --- /dev/null +++ b/examples/cmdprio-bssplit.fio @@ -0,0 +1,17 @@ +; Randomly read/write a block device file at queue depth 16. +; 40 % of read IOs are 64kB and 60% are 1MB. 100% of writes are 1MB. +; 100% of the 64kB reads are executed at the highest priority and +; all other IOs executed without a priority set. +[global] +filename=/dev/sda +direct=1 +write_lat_log=prio-run.log +log_prio=1 + +[randrw] +rw=randrw +bssplit=64k/40:1024k/60,1024k/100 +ioengine=libaio +iodepth=16 +cmdprio_bssplit=64k/100:1024k/0,1024k/0 +cmdprio_class=1 diff --git a/examples/cmdprio-bssplit.png b/examples/cmdprio-bssplit.png new file mode 100644 index 00000000..a0bb3ff4 Binary files /dev/null and b/examples/cmdprio-bssplit.png differ diff --git a/examples/cmdprio-percentage.fio b/examples/cmdprio-percentage.fio new file mode 100644 index 00000000..e4bc9db8 --- /dev/null +++ b/examples/cmdprio-percentage.fio @@ -0,0 +1,17 @@ +; Read a block device file at queue depth 8 +; with 20 % of the IOs using the high priority RT class +; and the remaining IOs using the idle priority class +[global] +filename=/dev/sda +direct=1 +write_lat_log=prio-run.log +log_prio=1 + +[randread] +rw=randread +bs=128k +ioengine=libaio +iodepth=8 +prioclass=3 +cmdprio_percentage=20 +cmdprio_class=1 diff --git a/examples/cmdprio-percentage.png b/examples/cmdprio-percentage.png new file mode 100644 index 00000000..e794de0c Binary files /dev/null and b/examples/cmdprio-percentage.png differ