Skip to content

Commit 3c1ab27

Browse files
authored
Merge pull request #92893 from danielclowers/CNV-52870
CNV#52870: Multi IOthread with fast storage
2 parents acd4bef + 4d3a1d0 commit 3c1ab27

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * virt/managing_vms/virt-edit-vms.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
[id="virt-configure-multiple-iothreads_{context}"]
7+
== Configuring multiple IOThreads for fast storage access
8+
9+
You can improve storage performance by configuring multiple IOThreads for a virtual machine (VM) that uses fast storage, such as solid-state drive (SSD) or non-volatile memory express (NVMe). This configuration option is only available by editing YAML of the VM.
10+
11+
[NOTE]
12+
====
13+
Multiple IOThreads are supported only when `blockMultiQueue` is enabled and the disk bus is set to `virtio`. You must set this configuration for the configuration to work correctly.
14+
====
15+
16+
.Procedure
17+
18+
. Click *Virtualization* -> *VirtualMachines* from the side menu.
19+
20+
. Select a virtual machine to open the *VirtualMachine details* page.
21+
22+
. Click the *YAML* tab to open the VM manifest.
23+
24+
. In the YAML editor, locate the `spec.template.spec.domain` section and add or modify the following fields:
25+
+
26+
[source,yaml]
27+
----
28+
domain:
29+
ioThreadsPolicy: supplementalPool
30+
ioThreads:
31+
supplementalPoolThreadCount: 4
32+
devices:
33+
blockMultiQueue: true
34+
disks:
35+
- name: datavolume
36+
disk:
37+
bus: virtio
38+
# ...
39+
----
40+
41+
. Click *Save*.
42+
43+
[IMPORTANT]
44+
====
45+
The `spec.template.spec.domain` setting cannot be changed while the VM is running. You must stop the VM before applying the changes, and then restart the VM for the new settings to take effect.
46+
====

virt/managing_vms/virt-edit-vms.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ include::modules/virt-adding-secret-configmap-service-account-to-vm.adoc[levelof
3232

3333
include::modules/virt-updating-multiple-vms.adoc[leveloffset=+1]
3434

35+
include::modules/virt-configure-multiple-iothreads.adoc[leveloffsent=+1]
36+
3537
[discrete]
3638
[id="additional-resources-configmaps"]
3739
[role="_additional-resources"]

0 commit comments

Comments
 (0)