From: Markus Armbruster <armbru@redhat.com>
To: Jaehoon Kim <jhkim@linux.ibm.com>
Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org,
pbonzini@redhat.com, stefanha@redhat.com, fam@euphon.net,
eblake@redhat.com, berrange@redhat.com, eduardo@habkost.net,
dave@treblig.org, sw@weilnetz.de, mjrosato@linux.ibm.com,
farman@linux.ibm.com
Subject: Re: [PATCH v5 3/3] qapi/iothread: introduce poll-weight parameter for aio-poll
Date: Fri, 24 Apr 2026 08:26:28 +0200 [thread overview]
Message-ID: <87pl3ox4a3.fsf@pond.sub.org> (raw)
In-Reply-To: <20260423195918.661299-4-jhkim@linux.ibm.com> (Jaehoon Kim's message of "Thu, 23 Apr 2026 14:59:18 -0500")
Jaehoon Kim <jhkim@linux.ibm.com> writes:
> Introduce a configurable poll-weight parameter for adaptive polling
> in IOThread. This parameter replaces the hardcoded POLL_WEIGHT_SHIFT
> constant, allowing runtime control over how much the most recent
> event interval affects the next polling duration calculation.
>
> The poll-weight parameter uses a shift value where larger values
> decrease the weight of the current interval, enabling more gradual
> adjustments. When set to 0, a default value of 3 is used (meaning
> the current interval contributes approximately 1/8 to the weighted
> average).
>
> This patch also removes the hardcoded default value checks from
> adjust_polling_time(). Instead, poll-grow, poll-shrink, and
> poll-weight now use default values initialized in iothread.c
> during IOThread creation.
>
> Signed-off-by: Jaehoon Kim <jhkim@linux.ibm.com>
> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
QAPI schema
Acked-by: Markus Armbruster <armbru@redhat.com>
next prev parent reply other threads:[~2026-04-24 6:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-23 19:59 [PATCH v5 0/3] improve aio-polling efficiency Jaehoon Kim
2026-04-23 19:59 ` [PATCH v5 1/3] aio-poll: avoid unnecessary polling time computation Jaehoon Kim
2026-04-23 19:59 ` [PATCH v5 2/3] aio-poll: refine iothread polling using weighted handler intervals Jaehoon Kim
2026-04-23 19:59 ` [PATCH v5 3/3] qapi/iothread: introduce poll-weight parameter for aio-poll Jaehoon Kim
2026-04-24 6:26 ` Markus Armbruster [this message]
2026-04-29 18:20 ` [PATCH v5 0/3] improve aio-polling efficiency Stefan Hajnoczi
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=87pl3ox4a3.fsf@pond.sub.org \
--to=armbru@redhat.com \
--cc=berrange@redhat.com \
--cc=dave@treblig.org \
--cc=eblake@redhat.com \
--cc=eduardo@habkost.net \
--cc=fam@euphon.net \
--cc=farman@linux.ibm.com \
--cc=jhkim@linux.ibm.com \
--cc=mjrosato@linux.ibm.com \
--cc=pbonzini@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
--cc=sw@weilnetz.de \
/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.