-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi_vms_with_stress: add a test about starting VMs with stress workload on host #5934
base: master
Are you sure you want to change the base?
Conversation
e74af87
to
73ef54f
Compare
@Yingshun Could you review this PR? Thanks! |
@nanli1 Could you plz review this PR? Thanks! |
vmxml.memory = int(memory) | ||
vmxml.current_mem = int(memory) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could I ask the reason for increasing memory
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without the increase, the test tends to fail, with the serial logs indicating "Out of memory: Killed process ........". Increasing the memory (in this case this is around double the default to around 4GB) ensures that the test consistently passes.
if (vcpus_num % 2 != 0): | ||
vcpus_num += 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please tell why do we get this vcpus_num to plus 1 when the vcpus_num %2 != 0:D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The automation case mentions "Prepare 3 vms and each vm has even vcpus number which is about 2/3 of # host_online_cpu", hence why I decided to add 1 if the math turns out odd to ensure even vcpus. The case also comes from feature sync with qemu-kvm (multi_vms_with_stress), and that is where I copied this particular if statement from.
For the commit msg , Could you please give more detail , for example 855e516 |
73ef54f
to
1ba00d8
Compare
1ba00d8
to
b8f6da7
Compare
…kload on host This PR adds: VIRT-301893 - [aarch64 only] Start VMs with maximum vcpus and stress on host Signed-off-by: Julia Graham <[email protected]>
b8f6da7
to
1043d40
Compare
Case ID: VIRT-301893
Automates the case that tests that multiple vms can use #host_only_cpu to start when stress workload is running on the host.
Test steps:
1. Prepare 3 vms that each have even vcpu number around 2/3 of # host_online_cpu
2. Start stress workload on the host
3. Start all vms and verify vms could be logged in normally
4. Verify all vms could be gracefully shutdown successfully
Evidence of tests passing: