autotest / tp-libvirt

Test Provider for Libvirt and related virtualization backends
Other
33 stars 168 forks source link

vm_start_destroy_repeatedly: Add Hugepage Variant #5868

Closed Slancaster1 closed 4 days ago

Slancaster1 commented 2 weeks ago

Description

Add variant to vm_start_destroy_repeatedly.py for handling a vm with hugepages. Bugs have been filed related to this

New Steps

1) Set number of huge pages = vm_memory / hugepage size 2) Add necessary XML to define a vm with hugepages 3) Run start/stop loop as before 4) Check number of huge pages, to ensure the number is the same

Evidence

Test passing with num_cycles = '1'

[root@ampere-mtjade-altra-04 tp-libvirt]# avocado run --vt-type libvirt --vt-machine-type arm64-mmio --test-runner=runner vm_start_destroy_repeatedly.hugepage
No python imaging library installed. Screendump and Windows guest BSOD detection are disabled. In order to enable it, please install python-imaging or the equivalent for your distro.
No python imaging library installed. PPM image conversion to JPEG disabled. In order to enable it, please install python-imaging or the equivalent for your distro.
JOB ID     : c951d499a5134c08af4d8ad016fd3c78ac717619
JOB LOG    : /var/log/avocado/job-results/job-2024-09-03T12.23-c951d49/job.log
 (1/1) type_specific.io-github-autotest-libvirt.vm_start_destroy_repeatedly.hugepage: PASS (35.59 s)
RESULTS    : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML   : /var/log/avocado/job-results/job-2024-09-03T12.23-c951d49/results.html
JOB TIME   : 36.24 s
Slancaster1 commented 2 weeks ago

@dzhengfy This is a rough draft for my new hugepage test. Could you please review

dzhengfy commented 4 days ago

Merge it as its urgency. We will fix it in case any problem found in tests.