]> git.proxmox.com Git - mirror_qemu.git/commit
iothread: add aio-max-batch parameter
authorStefano Garzarella <sgarzare@redhat.com>
Wed, 21 Jul 2021 09:42:10 +0000 (11:42 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 21 Jul 2021 12:47:50 +0000 (13:47 +0100)
commit1793ad0247cad35db1ebbc04fbea0446c30a27ca
tree3b26eff84f99fa68fcef95a40b52a3aa48ce9f72
parent0445409d7497bededa1047f0d8298b0d4bb3b1a3
iothread: add aio-max-batch parameter

The `aio-max-batch` parameter will be propagated to AIO engines
and it will be used to control the maximum number of queued requests.

When there are in queue a number of requests equal to `aio-max-batch`,
the engine invokes the system call to forward the requests to the kernel.

This parameter allows us to control the maximum batch size to reduce
the latency that requests might accumulate while queued in the AIO
engine queue.

If `aio-max-batch` is equal to 0 (default value), the AIO engine will
use its default maximum batch size value.

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Message-id: 20210721094211.69853-3-sgarzare@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
include/block/aio.h
include/sysemu/iothread.h
iothread.c
monitor/hmp-cmds.c
qapi/misc.json
qapi/qom.json
qemu-options.hx
util/aio-posix.c
util/aio-win32.c
util/async.c