Skip to content

Commit a184a6b

Browse files
committed
Virt, DPDK cluster config: Enable AlignCPUs
In case the user's worker nodes have SMT [1] enabled, they will probably encounter CNV-31584 [2]. Add an instruction to enable the `AlignCPUs` enabler in HCO [3], so it will enable [4] KubeVirt to request up to two additional dedicated CPUs in order to complete the total CPU count to an even parity when using emulator thread isolation. [1] https://en.wikipedia.org/wiki/Simultaneous_multithreading [2] https://issues.redhat.com/browse/CNV-31584 [3] kubevirt/hyperconverged-cluster-operator#2695 [4] kubevirt/kubevirt#10872 Signed-off-by: Orel Misan <[email protected]>
1 parent 97bce5d commit a184a6b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

modules/virt-configuring-cluster-dpdk.adoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,20 @@ $ oc patch hyperconverged kubevirt-hyperconverged -n {CNVNamespace} \
100100
Editing the `HyperConverged` CR changes a global setting that affects all VMs that are created after the change is applied.
101101
====
102102

103+
. If your DPDK-enabled compute nodes use Simultaneous multithreading (SMT), enable the `AlignCPUs` enabler by editing the `HyperConverged` CR:
104+
+
105+
[source,terminal,subs="attributes+"]
106+
----
107+
$ oc patch hyperconverged kubevirt-hyperconverged -n {CNVNamespace} \
108+
--type='json' -p='[{"op": "replace", "path": "/spec/featureGates/alignCPUs", "value": true}]'
109+
----
110+
+
111+
[NOTE]
112+
====
113+
Enabling `AlignCPUs` allows {VirtProductName} to request up to two additional dedicated CPUs to bring the total CPU count to an even parity when using
114+
emulator thread isolation.
115+
====
116+
103117
. Create an `SriovNetworkNodePolicy` object with the `spec.deviceType` field set to `vfio-pci`:
104118
+
105119
.Example `SriovNetworkNodePolicy` manifest

0 commit comments

Comments
 (0)