|Assignee:||Javi Fontan||% Done:|
|Category:||Drivers - VM|
|Target version:||Release 5.4|
Multi-queue virtio-scsi provides improved storage performance and scalability in the virtio-scsi driver. It enables each virtual CPU to have a separate queue and interrupt to use without affecting other vCPUs.
Multi-queue virtio-scsi is disabled by default on Red Hat Enterprise Linux 7.
To enable multi-queue virtio-scsi support in the guest, add the following to the guest XML configuration, where N is the total number of vCPU queues:
<controller type='scsi' index='0' model='virtio-scsi'>
<driver queues='N' />
F #3053: add explicit address to scsi drives
By default scsi drives increase the unit part of the address. This
causes problems in linux as the devices are not created in order.
Setting the target forces the order to be maintained.
#3 Updated by Javi Fontan almost 3 years ago
You can enable virtio-scsi adding this RAW parameter to the template or to defaults kvm driver file:
RAW=[ DATA="<devices><controller type='scsi' index='0' model='virtio-scsi'></controller></devices>", TYPE="kvm" ]
You can add the disks in SCSI bus and use trim.
#5 Updated by Javi Fontan over 2 years ago
- Tracker changed from Request to Feature
- Status changed from Pending to Closed
- Resolution set to fixed
libvirt already adds a
virtio-scsi controller if there is none and a
scsi disk is added. There's a new option to specify the number of queues:
FEATURES = [ VIRTIO_SCSI_QUEUES = 4 ]
If this parameter is specified and greater than 0 a controller is added with that amount of queues.