tp-qemu icon indicating copy to clipboard operation
tp-qemu copied to clipboard

trans_hugepage_defrag: fix AttributeError,refactor it to adopt SysFS

Open yanan-fu opened this issue 3 years ago • 4 comments

  1. Fix AttributeError:'TransparentHugePageConfig' object has no attribute 'value_listed'.
  2. 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]

yanan-fu avatar Dec 14 '21 14:12 yanan-fu

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

fbq815 avatar Feb 15 '22 06:02 fbq815

@mcasquer @zhenyzha @MiriamDeng Could you please help review? Thanks!

yanan-fu avatar Feb 15 '22 09:02 yanan-fu

@yanan-fu On s390x, VM memory backing will not cost THP in the host, please add no s390x for this case as well

fbq815 avatar Feb 28 '22 13:02 fbq815

@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 :)

bssrikanth avatar Sep 22 '22 03:09 bssrikanth