From: Stefan Hajnoczi <stefanha@redhat.com>
To: qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>, Fam Zheng <fam@euphon.net>,
qemu-block@nongnu.org, Hanna Reitz <hreitz@redhat.com>,
Stefan Hajnoczi <stefanha@redhat.com>
Subject: [PATCH 0/2] block: change reqs_lock to QemuMutex
Date: Tue, 8 Aug 2023 11:58:50 -0400 [thread overview]
Message-ID: <20230808155852.2745350-1-stefanha@redhat.com> (raw)
As part of the ongoing multi-queue QEMU block layer work, I found that CoMutex
reqs_lock scales poorly when more IOThreads are added. These patches double
IOPS in the 4 IOThreads randread benchmark that I have been running with my
out-of-tree virtio-blk-iothread-vq-mapping branch
(https://gitlab.com/stefanha/qemu/-/commits/virtio-blk-iothread-vq-mapping).
These patches can be merged in preparation for virtio-blk multi-queue block
layer support.
Stefan Hajnoczi (2):
block: minimize bs->reqs_lock section in tracked_request_end()
block: change reqs_lock to QemuMutex
include/block/block_int-common.h | 2 +-
block.c | 4 +++-
block/io.c | 30 ++++++++++++++++++------------
3 files changed, 22 insertions(+), 14 deletions(-)
--
2.41.0
next reply other threads:[~2023-08-08 16:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-08 15:58 Stefan Hajnoczi [this message]
2023-08-08 15:58 ` [PATCH 1/2] block: minimize bs->reqs_lock section in tracked_request_end() Stefan Hajnoczi
2023-08-08 18:14 ` Eric Blake
2023-08-08 15:58 ` [PATCH 2/2] block: change reqs_lock to QemuMutex Stefan Hajnoczi
2023-08-08 18:22 ` Eric Blake
2023-08-18 15:36 ` [PATCH 0/2] " Kevin Wolf
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=20230808155852.2745350-1-stefanha@redhat.com \
--to=stefanha@redhat.com \
--cc=fam@euphon.net \
--cc=hreitz@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
/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).