[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 00/13] virtio-scsi: add iothread-vq-mapping parameter
From: |
Peter Krempa |
Subject: |
Re: [PATCH v4 00/13] virtio-scsi: add iothread-vq-mapping parameter |
Date: |
Tue, 11 Mar 2025 16:21:47 +0100 |
User-agent: |
Mutt/2.2.13 (2024-03-09) |
On Tue, Mar 11, 2025 at 21:26:03 +0800, Stefan Hajnoczi wrote:
> v4:
> - Squash fixup commit properly this time >_< [Peter]
> v3:
> - Use vq_aio_context[VIRTIO_SCSI_VQ_NUM_FIXED] as the AioContext for the Block
> Backend [Kevin]
> v2:
> - Only expose cmd vqs via iothread-vq-mapping [Kevin, Peter]
>
> Implement --device virtio-scsi-pci,iothread-vq-mapping= support so that
> virtqueues can be assigned to different IOThreads. This improves SMP guest
> scalability where I/O-intensive applications can become bottlenecked on a
> single IOThread.
>
> The following benchmark results show the effect of iothread-vq-mapping. fio
> randread 4k iodepth=64 results from a 4 vCPU guest with an Intel P4800X SSD:
> iothreads IOPS
> ------------------------------
> 1 189576
> 2 312698
> 4 346744
I've modified my libvirt patches to take only the command queues into
account same as with virtio-blk.
After learning how 'fio' works I was able to set multiple iothreads on
fire based on the mapping.
Tested-by: Peter Krempa <pkrempa@redhat.com>
- [PATCH v4 06/13] virtio-scsi: protect events_dropped field, (continued)
- [PATCH v4 06/13] virtio-scsi: protect events_dropped field, Stefan Hajnoczi, 2025/03/11
- [PATCH v4 05/13] virtio-scsi: introduce event and ctrl virtqueue locks, Stefan Hajnoczi, 2025/03/11
- [PATCH v4 04/13] scsi: introduce requests_lock, Stefan Hajnoczi, 2025/03/11
- [PATCH v4 10/13] virtio: extract iothread-vq-mapping.h API, Stefan Hajnoczi, 2025/03/11
- [PATCH v4 07/13] virtio-scsi: perform TMFs in appropriate AioContexts, Stefan Hajnoczi, 2025/03/11
- [PATCH v4 12/13] virtio-scsi: handle ctrl virtqueue in main loop, Stefan Hajnoczi, 2025/03/11
- [PATCH v4 09/13] virtio-blk: tidy up iothread_vq_mapping functions, Stefan Hajnoczi, 2025/03/11
- [PATCH v4 11/13] virtio-scsi: add iothread-vq-mapping parameter, Stefan Hajnoczi, 2025/03/11
- [PATCH v4 13/13] virtio-scsi: only expose cmd vqs via iothread-vq-mapping, Stefan Hajnoczi, 2025/03/11
- [PATCH v4 08/13] virtio-blk: extract cleanup_iothread_vq_mapping() function, Stefan Hajnoczi, 2025/03/11
- Re: [PATCH v4 00/13] virtio-scsi: add iothread-vq-mapping parameter,
Peter Krempa <=
- Re: [PATCH v4 00/13] virtio-scsi: add iothread-vq-mapping parameter, Kevin Wolf, 2025/03/11