KVM: add low_mem_nxhp and high_mem_nxhp testcase#565
KVM: add low_mem_nxhp and high_mem_nxhp testcase#565atlarator wants to merge 1 commit intointel:mainfrom
Conversation
KVM/qemu/tests/boot_check.py
Outdated
| if nxhp_value_new != "Y": | ||
| test.fail("Failed to enable NX huge page") | ||
| if is_high_mem_nxhp: | ||
| subprocess.run(f"stress-ng --vm {vcpus} --vm-bytes 16G --timeout 60s", shell=True, check=True) |
There was a problem hiding this comment.
Check if stress-ng is available/installed before running.
And do we need to align the stress-ng parameters with XVS?
There was a problem hiding this comment.
what is $Config in xvs? it seems that in xvs the command stress_ng_test is somehow an alias
There was a problem hiding this comment.
In XVS, it is defined in Framework/VMMCommon.sh:3189:function stress_ng_test()
There was a problem hiding this comment.
the framework is CentOS distro specific, right? Or why hard code to install stress-ng through yum?
There was a problem hiding this comment.
OK, it seems clear for me.
There was a problem hiding this comment.
the framework is CentOS distro specific, right? Or why hard code to install stress-ng through yum?
XVS is for Centos now, but we'd better support both Centos and Ubuntu in LKVS.
|
The parameters may correct now, btw according to xvs I only enabled 2_cpus for nxhp cases. |
| test.fail("Unsupported distro, please install stress-ng manually") | ||
| if ret != 0: | ||
| test.fail("Failed to install stress-ng, please install manually") | ||
| ret = subprocess.run(f"stress-ng --cpu {vm_cpu} --io 1 --vm {vm_mem} --vm-bytes {mem_size} --hdd 1 --hdd-bytes 3G --timeout {time} > /tmp/stress_ng.log", shell=True, check=True).returncode |
There was a problem hiding this comment.
stress-ng should be executed in VM, not host, you can refer to other cases in LKVS/KVM for consistent code style.
BTW, for host, we have "process" from avocado.utils.
There was a problem hiding this comment.
only this one? what about installing and nx_hugepage configuration reading?
There was a problem hiding this comment.
stress-ng installing is also in VM, nx hugepage configuration is on host. Just follow the case in XVS.
No description provided.