mbox series

[0/5] loop: improve loop aio perf by IOCB_NOWAIT

Message ID 20250308161504.1639157-1-ming.lei@redhat.com (mailing list archive)
Headers show
Series loop: improve loop aio perf by IOCB_NOWAIT | expand

Message

Ming Lei March 8, 2025, 4:14 p.m. UTC
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(-)

Comments

Ming Lei March 8, 2025, 4:20 p.m. UTC | #1
On Sun, Mar 09, 2025 at 12:14:50AM +0800, Ming Lei wrote:
> 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

Please ignore this patchset, since several unrelated patches are included
accidentally.


Thanks,
Ming