libvirt_vcpu_plug_unplug: add multi-NUMA hotplug/unplug test variants - #32
Open
Anushree-Mathur wants to merge 1 commit into
Open
libvirt_vcpu_plug_unplug: add multi-NUMA hotplug/unplug test variants#32Anushree-Mathur wants to merge 1 commit into
Anushree-Mathur wants to merge 1 commit into
Conversation
Add support for testing CPU hotplug/unplug on VMs configured with multiple NUMA nodes. The test builds N equal NUMA cells, distributing vCPUs and memory evenly across them, then runs continuous plug/unplug cycles to verify stability. Changes: libvirt/tests/cfg/libvirt_vcpu_plug_unplug.cfg: Add multi_numa_hotplug variant with three sub-variants: - numa_2_cells: 2 NUMA nodes, vcpu_max=8, start=2, plug=6, unplug=2 - numa_4_cells: 4 NUMA nodes, vcpu_max=16, start=4, plug=12, unplug=4 - numa_8_cells: 8 NUMA nodes, vcpu_max=32, start=8, plug=24, unplug=8 All variants run --live with test_itr=3 (3 continuous plug/unplug cycles). libvirt/tests/src/libvirt_vcpu_plug_unplug.py: When numa_cells param is set, replace the standard set_vm_vcpus() call with explicit multi-NUMA XML setup: - Set vcpu max and current counts directly on vmxml - Align CPU topology to sockets=1, cores=vcpu_max, threads=1 - Build N NUMA cells with evenly split CPU ranges and memory (MiB->KiB) - Apply via cpu_xml.dicts_to_cells() and vmxml.sync() All existing variants continue through the original set_vm_vcpus() else-branch unchanged. Signed-off-by: Anushree-Mathur <anushree.mathur@linux.ibm.com> Signed-off-by: Anushree-Mathur <anushree.mathur@linux.ibm.com>
Author
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add support for testing CPU hotplug/unplug on VMs configured with multiple NUMA nodes. The test builds N equal NUMA cells, distributing vCPUs and memory evenly across them, then runs continuous plug/unplug cycles to verify stability.
Changes:
libvirt/tests/cfg/libvirt_vcpu_plug_unplug.cfg:
Add multi_numa_hotplug variant with three sub-variants:
libvirt/tests/src/libvirt_vcpu_plug_unplug.py:
When numa_cells param is set, replace the standard set_vm_vcpus() call
with explicit multi-NUMA XML setup:
Signed-off-by: Anushree-Mathur <anushree.mathur@linux.ibm.com>