[pve-devel] [PATCH qemu-server 0/6] improve virtio drive multiqueues

Alexandre Derumier aderumier at odiso.com
Thu Mar 9 09:52:11 CET 2023


Hi,

This patch series add support for virtio-blk num-queues.
It's was already implemented for virtio-scsi.

It's also enable numqueue to maxcpus for qemu 8.0.
Redhat already was enabled by default in rhev in 2011,
so it's pretty stable.
https://bugzilla.redhat.com/show_bug.cgi?id=1827722

It's improve performance for fast storage like nvme,optane
by around 20%.
My fio bench have jump from 200k to 240k iops with 4 block

I don't have seen perf regression (running them for 1month),
but user is still able to override queues and set it to 1.


Alexandre Derumier (6):
  add virtio-scsi && virtio-scsi-single tests
  virtio-blk: add queues option
  cpuconfig: add get_cpu_topology helper
  fix #4295 : virtio-(blk|scsi): enable multiqueue by default
  drive: allow minimum queues = 1
  add virtio-blk|scsi default multiqueue tests

 PVE/QemuServer.pm                             | 36 ++++++++++++-------
 PVE/QemuServer/CPUConfig.pm                   | 11 ++++++
 PVE/QemuServer/Drive.pm                       |  3 +-
 test/cfg2cmd/simple-virtio-blk-8.0.conf       | 13 +++++++
 test/cfg2cmd/simple-virtio-blk-8.0.conf.cmd   | 31 ++++++++++++++++
 .../simple-virtio-scsi-single-8.0.conf        | 14 ++++++++
 .../simple-virtio-scsi-single-8.0.conf.cmd    | 33 +++++++++++++++++
 test/cfg2cmd/simple-virtio-scsi-single.conf   | 14 ++++++++
 .../simple-virtio-scsi-single.conf.cmd        | 33 +++++++++++++++++
 test/cfg2cmd/simple-virtio-scsi.conf          | 14 ++++++++
 test/cfg2cmd/simple-virtio-scsi.conf.cmd      | 31 ++++++++++++++++
 11 files changed, 219 insertions(+), 14 deletions(-)
 create mode 100644 test/cfg2cmd/simple-virtio-blk-8.0.conf
 create mode 100644 test/cfg2cmd/simple-virtio-blk-8.0.conf.cmd
 create mode 100644 test/cfg2cmd/simple-virtio-scsi-single-8.0.conf
 create mode 100644 test/cfg2cmd/simple-virtio-scsi-single-8.0.conf.cmd
 create mode 100644 test/cfg2cmd/simple-virtio-scsi-single.conf
 create mode 100644 test/cfg2cmd/simple-virtio-scsi-single.conf.cmd
 create mode 100644 test/cfg2cmd/simple-virtio-scsi.conf
 create mode 100644 test/cfg2cmd/simple-virtio-scsi.conf.cmd

-- 
2.30.2





More information about the pve-devel mailing list