-
Notifications
You must be signed in to change notification settings - Fork 168
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
memory: Increase guest memory to 4G #5397
Conversation
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.
LGMT
All setmem cases passed.
|
@@ -251,6 +251,10 @@ def print_debug_stats(original_inside_mem, original_outside_mem, | |||
vmxml = vm_xml.VMXML.new_from_inactive_dumpxml(vm_name) | |||
backup_xml = vmxml.copy() | |||
|
|||
vm_attrs = eval(params.get('vm_attrs')) |
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.
Perhaps, we may add some pre-check for host whether there is 4G memory available at that time. Otherwise just skip this case
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.
Done, PTAL.
a3665e3
to
3e71098
Compare
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.
LGTM
@@ -17,6 +17,7 @@ | |||
# expected to fail on older libvirt. | |||
setmem_old_libvirt_fail = "no" | |||
take_regular_screendumps = no | |||
vm_attrs = {'memory': 4, 'memory_unit': 'GiB', 'current_mem': 4, 'current_mem_unit': 'GiB'} |
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 virsh_cmd folder will be deprecated. We plan to make inside cases into corresponding feature folder. So could you please move the cfg and py files into libvirt/tests/cfg/memory/ and libvirt/tests/src/memory/ folders?
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.
Done. PTAL.
3e71098
to
d4f3387
Compare
The previous guest memory setting was 2G, but the half memory test would fail because 1G was not enough to maintain the normal operation of the guest. Signed-off-by: Hu Shuai <[email protected]>
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.
LGTM
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.
lgtm
The previous guest memory setting was 2G, but the half memory test would fail because 1G was not enough to maintain the normal operation of the guest.
Before:
After: