Skip to content

Commit

Permalink
Merge pull request openshift#69713 from orelmisan/dpdk-cluster-config
Browse files Browse the repository at this point in the history
[virt] DPDK cluster config: Enable AlignCPUs
  • Loading branch information
sjhala-ccs authored and aireilly committed Jan 8, 2024
2 parents da2200c + a184a6b commit acd7106
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 31 deletions.
9 changes: 3 additions & 6 deletions .travis.yml
Expand Up @@ -8,20 +8,17 @@ jobs:
include:
- name: "Preview, validate, and build"
before_install:
- if [ "$TRAVIS_BRANCH" != "main" ]; then chmod +x autopreview.sh && ./autopreview.sh; fi
- if [ "$TRAVIS_BRANCH" != "main" ]; then chmod +x autopreview.sh && ./autopreview.sh; fi
install:
- gem install --local _gemfiles/asciidoctor-2.0.20.gem _gemfiles/asciidoctor-diagram-plantuml-1.2023.10.gem _gemfiles/asciidoctor-diagram-ditaamini-1.0.3.gem _gemfiles/rexml-3.2.6.gem _gemfiles/asciidoctor-diagram-2.2.14.gem _gemfiles/rouge-4.1.3.gem
- pip3 install pyyaml aura.tar.gz
script:
# Fail if Asciidoctor encounters errors. Or if release notes has links to internal bugs. Pass otherwise. Then, build updated distros
- chmod +x ./scripts/check-rn-link-perms.sh
- ./scripts/check-rn-link-perms.sh || travis_terminate 1
- chmod +x ./scripts/check-asciidoctor-build.sh
- chmod +x ./scripts/get-updated-distros.sh
- ./scripts/check-asciidoctor-build.sh || travis_terminate 1
- |
./scripts/get-updated-distros.sh |
while read -r filename; do
while read -r filename; do
if [ "$filename" == "_topic_maps/_topic_map.yml" ]; then python3 build.py --distro openshift-enterprise --product "OpenShift Container Platform" --version 4.15 --no-upstream-fetch || travis_terminate 1
elif [ "$filename" == "_topic_maps/_topic_map_osd.yml" ]; then python3 build.py --distro openshift-dedicated --product "OpenShift Dedicated" --version 4 --no-upstream-fetch || travis_terminate 1
Expand All @@ -32,5 +29,5 @@ jobs:
elif [ "$filename" == "_distro_map.yml" ]; then python3 build.py --distro openshift-enterprise --product "OpenShift Container Platform" --version 4.15 --no-upstream-fetch || travis_terminate 1
fi
done
done < <(./scripts/get-updated-distros.sh)
- if [ -d "drupal-build" ]; then python3 makeBuild.py || travis_terminate 1; fi
25 changes: 0 additions & 25 deletions modules/installation-osp-kuryr-port-pools.adoc

This file was deleted.

14 changes: 14 additions & 0 deletions modules/virt-configuring-cluster-dpdk.adoc
Expand Up @@ -100,6 +100,20 @@ $ oc patch hyperconverged kubevirt-hyperconverged -n {CNVNamespace} \
Editing the `HyperConverged` CR changes a global setting that affects all VMs that are created after the change is applied.
====

. If your DPDK-enabled compute nodes use Simultaneous multithreading (SMT), enable the `AlignCPUs` enabler by editing the `HyperConverged` CR:
+
[source,terminal,subs="attributes+"]
----
$ oc patch hyperconverged kubevirt-hyperconverged -n {CNVNamespace} \
--type='json' -p='[{"op": "replace", "path": "/spec/featureGates/alignCPUs", "value": true}]'
----
+
[NOTE]
====
Enabling `AlignCPUs` allows {VirtProductName} to request up to two additional dedicated CPUs to bring the total CPU count to an even parity when using
emulator thread isolation.
====

. Create an `SriovNetworkNodePolicy` object with the `spec.deviceType` field set to `vfio-pci`:
+
.Example `SriovNetworkNodePolicy` manifest
Expand Down

0 comments on commit acd7106

Please sign in to comment.