From: Stefan Hajnoczi <stefanha@redhat.com>
To: "sochin.jiang" <sochin.jiang@huawei.com>
Cc: kwolf@redhat.com, mreitz@redhat.com, qemu-block@nongnu.org,
qemu-devel@nongnu.org, eric.fangyi@huawei.com,
Ming Lei <tom.leiming@gmail.com>
Subject: Re: [Qemu-devel] [PATCH] virtio-blk: notify guest directly
Date: Wed, 20 Dec 2017 16:20:21 +0000 [thread overview]
Message-ID: <20171220162021.GF12566@stefanha-x1.localdomain> (raw)
In-Reply-To: <1513690383-27269-1-git-send-email-sochin.jiang@huawei.com>
[-- Attachment #1: Type: text/plain, Size: 1330 bytes --]
On Tue, Dec 19, 2017 at 09:33:03PM +0800, sochin.jiang wrote:
> From: "sochin.jiang" <sochin.jiang@huawei.com>
>
> Till now, we've already notify guest as a batch mostly, an
> extra BH won't decrease guest interrupts much, but cause a
> significant notification loss. Generally, we could have 15%
> or so performance lost in single queue IO models, as I tested.
I have CCed Ming Lei, who originally implemented batched notifications
in commit 5b2ffbe4d99843fd8305c573a100047a8c962327 ("virtio-blk:
dataplane: notify guest as a batch"). The original commit mentions a 13K
interrupt/sec reduction, which is significant.
Which host storage device are you benchmarking and what is the benchmark
configuration?
How many interrupts/sec does the guest report (cat /proc/interrupts)
before and after this patch?
In the past I've noticed performance can vary significantly depending on
QEMUBH ordering in the AioContext->first_bh list. Can you measure the
latency from virtio_blk_data_plane_notify() to aio_bh_poll() and compare
against the latency from virtio_blk_data_plane_notify() to
notify_guest_bh()?
> @@ -75,7 +67,12 @@ static void notify_guest_bh(void *opaque)
> }
> }
>
> -/* Context: QEMU global mutex held */
Please keep this doc comment for virtio_blk_data_plane_create().
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
next prev parent reply other threads:[~2017-12-20 16:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-19 13:33 [Qemu-devel] [PATCH] virtio-blk: notify guest directly sochin.jiang
2017-12-20 0:57 ` Paolo Bonzini
2017-12-20 2:53 ` sochin.jiang
2017-12-20 16:20 ` Stefan Hajnoczi [this message]
2018-03-02 13:38 ` [Qemu-devel] [Qemu-block] " Stefan Hajnoczi
2018-03-02 16:20 ` Sergio Lopez
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=20171220162021.GF12566@stefanha-x1.localdomain \
--to=stefanha@redhat.com \
--cc=eric.fangyi@huawei.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=sochin.jiang@huawei.com \
--cc=tom.leiming@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).