From: Niklas Cassel <Niklas.Cassel@wdc.com>
To: "axboe@kernel.dk" <axboe@kernel.dk>
Cc: "fio@vger.kernel.org" <fio@vger.kernel.org>,
Damien Le Moal <Damien.LeMoal@wdc.com>,
Niklas Cassel <Niklas.Cassel@wdc.com>
Subject: [PATCH v2 00/11] Improve io_uring and libaio IO priority support
Date: Fri, 3 Sep 2021 15:20:19 +0000 [thread overview]
Message-ID: <20210903152012.18035-1-Niklas.Cassel@wdc.com> (raw)
From: Niklas Cassel <niklas.cassel@wdc.com>
This series improves io_uring/libaio engine support for IO priority,
adding options to allow for mixed priority workloads to be specified
more easily and to match the kernel supported IO priority features.
This series is based on Damien's V1 series which can be found here:
https://www.spinics.net/lists/fio/msg09614.html
Major changes since v1:
- Rename new options:
aioprio -> cmdprio
aioprioclass -> cmdprio_class
aioprio_bssplit -> cmdprio_bssplit.
Since these options are all related to cmdprio_percentage, it makes sense
to keep the cmdprio prefix for these new options.
Renaming also makes it more clear that these are not libaio specifc options.
- Added io_uring support for these new options.
All these new options works for ioengine=libaio and ioengine=io_uring
- Added a new helper file: engines/cmdprio.h and moved as much common code
that I could share between io_uring and libaio in there.
Kept Damien's authorship as I feel that I haven't changed the original code
sufficiently to warrant an authorship change.
Comments are welcome!
Kind regards,
Niklas
Damien Le Moal (11):
manpage: fix formatting
manpage: fix definition of prio and prioclass options
tools: fiograph: do not overwrite input script file
os: introduce ioprio_value() helper
options: make parsing functions available to ioengines
libaio,io_uring: improve cmdprio_percentage option
libaio,io_uring: introduce cmdprio_class and cmdprio options
libaio,io_uring: introduce cmdprio_bssplit
libaio,io_uring: relax cmdprio_percentage constraints
fio: Introduce the log_prio option
examples: add examples for cmdprio_* IO priority options
HOWTO | 59 ++++++++++---
backend.c | 1 +
cconv.c | 2 +
client.c | 2 +
engines/cmdprio.h | 144 ++++++++++++++++++++++++++++++
engines/filecreate.c | 2 +-
engines/filedelete.c | 2 +-
engines/filestat.c | 2 +-
engines/io_uring.c | 152 +++++++++++++++++++++++++-------
engines/libaio.c | 125 ++++++++++++++++++++++----
eta.c | 2 +-
examples/cmdprio-bssplit.fio | 17 ++++
examples/cmdprio-bssplit.png | Bin 0 -> 45606 bytes
examples/cmdprio-percentage.fio | 17 ++++
examples/cmdprio-percentage.png | Bin 0 -> 46271 bytes
fio.1 | 73 +++++++++++----
fio.h | 5 ++
init.c | 4 +
io_u.c | 14 ++-
io_u.h | 10 ++-
iolog.c | 45 +++++++---
iolog.h | 16 +++-
options.c | 50 ++++++-----
os/os-android.h | 20 +++--
os/os-dragonfly.h | 1 +
os/os-linux.h | 20 +++--
os/os.h | 4 +
server.h | 3 +-
stat.c | 75 ++++++++--------
stat.h | 9 +-
thread_options.h | 19 ++++
tools/fiograph/fiograph.conf | 4 +-
tools/fiograph/fiograph.py | 4 +-
33 files changed, 724 insertions(+), 179 deletions(-)
create mode 100644 engines/cmdprio.h
create mode 100644 examples/cmdprio-bssplit.fio
create mode 100644 examples/cmdprio-bssplit.png
create mode 100644 examples/cmdprio-percentage.fio
create mode 100644 examples/cmdprio-percentage.png
--
2.31.1
next reply other threads:[~2021-09-03 15:20 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-03 15:20 Niklas Cassel [this message]
2021-09-03 15:20 ` [PATCH v2 01/11] manpage: fix formatting Niklas Cassel
2021-09-03 15:20 ` [PATCH v2 02/11] manpage: fix definition of prio and prioclass options Niklas Cassel
2021-09-03 15:20 ` [PATCH v2 03/11] tools: fiograph: do not overwrite input script file Niklas Cassel
2021-09-03 15:20 ` [PATCH v2 04/11] os: introduce ioprio_value() helper Niklas Cassel
2021-09-03 15:20 ` [PATCH v2 05/11] options: make parsing functions available to ioengines Niklas Cassel
2021-09-03 15:20 ` [PATCH v2 07/11] libaio,io_uring: introduce cmdprio_class and cmdprio options Niklas Cassel
2021-09-03 15:20 ` [PATCH v2 06/11] libaio,io_uring: improve cmdprio_percentage option Niklas Cassel
2021-09-03 15:20 ` [PATCH v2 08/11] libaio,io_uring: introduce cmdprio_bssplit Niklas Cassel
2021-09-03 15:20 ` [PATCH v2 09/11] libaio,io_uring: relax cmdprio_percentage constraints Niklas Cassel
2021-09-03 15:20 ` [PATCH v2 10/11] fio: Introduce the log_prio option Niklas Cassel
2021-09-03 15:20 ` [PATCH v2 11/11] examples: add examples for cmdprio_* IO priority options Niklas Cassel
2021-09-03 16:12 ` [PATCH v2 00/11] Improve io_uring and libaio IO priority support Jens Axboe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210903152012.18035-1-Niklas.Cassel@wdc.com \
--to=niklas.cassel@wdc.com \
--cc=Damien.LeMoal@wdc.com \
--cc=axboe@kernel.dk \
--cc=fio@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.