qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] block: change reqs_lock to QemuMutex
@ 2023-08-08 15:58 Stefan Hajnoczi
  2023-08-08 15:58 ` [PATCH 1/2] block: minimize bs->reqs_lock section in tracked_request_end() Stefan Hajnoczi
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Stefan Hajnoczi @ 2023-08-08 15:58 UTC (permalink / raw)
  To: qemu-devel
  Cc: Kevin Wolf, Fam Zheng, qemu-block, Hanna Reitz, Stefan Hajnoczi

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



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-08-18 15:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-08 15:58 [PATCH 0/2] block: change reqs_lock to QemuMutex Stefan Hajnoczi
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

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).