mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
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>
This commit is contained in:
parent
0445409d74
commit
1793ad0247
10 changed files with 103 additions and 9 deletions
|
@ -5301,7 +5301,7 @@ SRST
|
|||
|
||||
CN=laptop.example.com,O=Example Home,L=London,ST=London,C=GB
|
||||
|
||||
``-object iothread,id=id,poll-max-ns=poll-max-ns,poll-grow=poll-grow,poll-shrink=poll-shrink``
|
||||
``-object iothread,id=id,poll-max-ns=poll-max-ns,poll-grow=poll-grow,poll-shrink=poll-shrink,aio-max-batch=aio-max-batch``
|
||||
Creates a dedicated event loop thread that devices can be
|
||||
assigned to. This is known as an IOThread. By default device
|
||||
emulation happens in vCPU threads or the main event loop thread.
|
||||
|
@ -5337,7 +5337,11 @@ SRST
|
|||
the polling time when the algorithm detects it is spending too
|
||||
long polling without encountering events.
|
||||
|
||||
The polling parameters can be modified at run-time using the
|
||||
The ``aio-max-batch`` parameter is the maximum number of requests
|
||||
in a batch for the AIO engine, 0 means that the engine will use
|
||||
its default.
|
||||
|
||||
The IOThread parameters can be modified at run-time using the
|
||||
``qom-set`` command (where ``iothread1`` is the IOThread's
|
||||
``id``):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue