tp-qemu
tp-qemu copied to clipboard
trans_hugepage_defrag: fix AttributeError,refactor it to adopt SysFS
- Fix AttributeError:'TransparentHugePageConfig' object has no attribute 'value_listed'.
- Refactor it to adopt SysFs() API to get and set sys value.
depends on: https://github.com/avocado-framework/avocado-vt/pull/3335
id: 2032402
Signed-off-by: Yanan Fu [email protected]
On s390x: (3/5) Host_RHEL.m9.u0.nographic.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.0.0.s390x.io-github-autotest-qemu.trans_hugepage.defrag.s 390-virtio: FAIL: No memory defragmentation on host: 0 huge pages before turning khugepaged defrag on, 0 after it
@yanan-fu I've add the log in our bz, please check
@mcasquer @zhenyzha @MiriamDeng Could you please help review? Thanks!
@yanan-fu On s390x, VM memory backing will not cost THP in the host, please add no s390x for this case as well
@yanan-fu I was looking at running thp tests under qemu, thats when I bumped into this PR along with PR #3132 and #3128 .. please let me know if you need any help in getting these PR merged. I will be happy to help with :)