Recent changes (master)
The following changes since commit 6619fc32c413c4ff3a24c819037fb9227af3f876:
stat: create a init_thread_stat_min_vals() helper (2021-11-08 06:24:48 -0700)
are available in the Git repository at:
git://git.kernel.dk/fio.git master
for you to fetch changes up to f7c3f31db877d30056d19761e48499f5b0bfa0b6:
Merge branch 'jf_readme_typo' of https://github.com/jfpanisset/fio (2021-11-12 09:22:21 -0700)
----------------------------------------------------------------
Jean-Francois Panisset (1):
Small typo fix
Jens Axboe (1):
Merge branch 'jf_readme_typo' of https://github.com/jfpanisset/fio
Niklas Cassel (8):
docs: update cmdprio_percentage documentation
cmdprio: move cmdprio function definitions to a new cmdprio.c file
cmdprio: do not allocate memory for unused data direction
io_uring: set async IO priority to td->ioprio in fio_ioring_prep() libaio,io_uring: rename prio_prep() to include cmdprio in the name libaio,io_uring: move common cmdprio_prep() code to cmdprio
cmdprio: add mode to make the logic easier to reason about libaio,io_uring: make it possible to cleanup cmdprio malloced data
HOWTO | 5 +- Makefile | 6 ++ README | 2 +- engines/cmdprio.c | 243 +++++++++++++++++++++++++++++++++++++++++++++++++++++ engines/cmdprio.h | 150 ++++++--------------------------- engines/io_uring.c | 100 ++++++++-------------- engines/libaio.c | 72 +++++----------- fio.1 | 3 +- 8 files changed, 333 insertions(+), 248 deletions(-) create mode 100644 engines/cmdprio.c
---
Diff of recent changes:
HOWTO +2 -3
@@ -2167,9 +2167,8 @@ with the caveat that when used on the command line, they must come after the Set the percentage of I/O that will be issued with the highest priority. Default: 0. A single value applies to reads and writes. Comma-separated - values may be specified for reads and writes. This option cannot be used - with the :option:`prio` or :option:`prioclass` options. For this option - to be effective, NCQ priority must be supported and enabled, and `direct=1' + values may be specified for reads and writes. For this option to be + effective, NCQ priority must be supported and enabled, and `direct=1' option must be used. fio must also be run as the root user. .. option:: cmdprio_class=int[,int] : [io_uring] [libaio]
Makefile +6 -0
@@ -98,6 +98,7 @@ else ifdef CONFIG_32BIT endif ifdef CONFIG_LIBAIO libaio_SRCS = engines/libaio.c + cmdprio_SRCS = engines/cmdprio.c libaio_LIBS = -laio ENGINES += libaio endif
@@ -225,6 +226,7 @@ endif ifeq ($(CONFIG_TARGET_OS), Linux) SOURCE += diskutil.c fifo.c blktrace.c cgroup.c trim.c engines/sg.c \ oslib/linux-dev-lookup.c engines/io_uring.c + cmdprio_SRCS = engines/cmdprio.c ifdef CONFIG_HAS_BLKZONED SOURCE += oslib/linux-blkzoned.c endif
@@ -281,6 +283,10 @@ ifneq (,$(findstring CYGWIN,$(CONFIG_TARGET_OS))) FIO_CFLAGS += -DPSAPI_VERSION=1 -Ios/windows/posix/include -Wno-format endif +ifdef cmdprio_SRCS + SOURCE += $(cmdprio_SRCS) +endif + ifdef CONFIG_DYNAMIC_ENGINES DYNAMIC_ENGS := $(ENGINES) define engine_template =
README +1 -1
@@ -10,7 +10,7 @@ tailored test case again and again. A test work load is difficult to define, though. There can be any number of processes or threads involved, and they can each be using their own way of -generating I/O. You could have someone dirtying large amounts of memory in an +generating I/O. You could have someone dirtying large amounts of memory in a memory mapped file, or maybe several threads issuing reads using asynchronous I/O. fio needed to be flexible enough to simulate both of these cases, and many more.
engines/cmdprio.c new file +243 -0
243 lines not on this page · raw message
engines/cmdprio.h +24 -126
161 lines not on this page · raw message
engines/io_uring.c +33 -67
188 lines not on this page · raw message
engines/libaio.c +23 -49
145 lines not on this page · raw message
fio.1 +1 -2
@@ -1965,8 +1965,7 @@ with the caveat that when used on the command line, they must come after the .BI (io_uring,libaio)cmdprio_percentage \fR=\fPint[,int] Set the percentage of I/O that will be issued with the highest priority. Default: 0. A single value applies to reads and writes. Comma-separated -values may be specified for reads and writes. This option cannot be used -with the `prio` or `prioclass` options. For this option to be effective, +values may be specified for reads and writes. For this option to be effective, NCQ priority must be supported and enabled, and `direct=1' option must be used. fio must also be run as the root user. .TP