| From: |
| Ming Lei <ming.lei-AT-redhat.com> |
| To: |
| Jens Axboe <axboe-AT-kernel.dk>, linux-block-AT-vger.kernel.org |
| Subject: |
| [PATCH 0/5] loop: improve loop aio perf by IOCB_NOWAIT |
| Date: |
| Sun, 09 Mar 2025 00:14:50 +0800 |
| Message-ID: |
| <20250308161504.1639157-1-ming.lei@redhat.com> |
| Cc: |
| Ming Lei <ming.lei-AT-redhat.com> |
| Archive-link: |
| Article |
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