public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] loop: improve loop aio perf by IOCB_NOWAIT
@ 2025-03-08 16:14 Ming Lei
  2025-03-08 16:14 ` [PATCH 1/2] block: loop: share code of reread partitions Ming Lei
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: Ming Lei @ 2025-03-08 16:14 UTC (permalink / raw)
  To: Jens Axboe, linux-block; +Cc: Ming Lei

Hello Jens,

This patchset improves loop aio perf by using IOCB_NOWAIT for avoiding to queue aio
command to workqueue context, meantime refactor lo_rw_aio() a bit.

The last patch adds MQ support, which improves perf a bit in case of multiple
IO jobs.

In my test VM, loop disk perf becomes very close to perf of the backing block
device(nvme/mq virtio-scsi).

Thanks,
Ming


Ming Lei (5):
  loop: remove 'rw' parameter from lo_rw_aio()
  loop: cleanup lo_rw_aio()
  loop: add helper loop_queue_work_prep
  loop: try to handle loop aio command via NOWAIT IO first
  loop: add module parameter of 'nr_hw_queues'

 drivers/block/loop.c | 225 ++++++++++++++++++++++++++++++-------------
 1 file changed, 156 insertions(+), 69 deletions(-)

-- 
2.47.0


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

end of thread, other threads:[~2025-03-08 16:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-08 16:14 [PATCH 0/5] loop: improve loop aio perf by IOCB_NOWAIT Ming Lei
2025-03-08 16:14 ` [PATCH 1/2] block: loop: share code of reread partitions Ming Lei
2025-03-08 16:17   ` Ming Lei
2025-03-08 16:14 ` [PATCH] loop: fallback to buffered IO in case of dio submission failure Ming Lei
2025-03-08 16:14 ` [PATCH 1/5] loop: remove 'rw' parameter from lo_rw_aio() Ming Lei
2025-03-08 16:14 ` [PATCH 2/2] block: loop: delete partitions after clearing & changing fd Ming Lei
2025-03-08 16:14 ` [PATCH 2/5] loop: cleanup lo_rw_aio() Ming Lei
2025-03-08 16:14 ` [PATCH 3/5] loop: add helper loop_queue_work_prep Ming Lei
2025-03-08 16:14 ` [PATCH 4/5] loop: try to handle loop aio command via NOWAIT IO first Ming Lei
2025-03-08 16:14 ` [PATCH 5/5] loop: add module parameter of 'nr_hw_queues' Ming Lei
2025-03-08 16:20 ` [PATCH 0/5] loop: improve loop aio perf by IOCB_NOWAIT Ming Lei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox