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

trans_hugepage_relocated: fix some issues to make it run correctly

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

depends on: https://github.com/avocado-framework/avocado-vt/pull/3335

id: 2032517 Signed-off-by: Yanan Fu [email protected]

yanan-fu avatar Dec 15 '21 02:12 yanan-fu

On s390x: (5/5) Host_RHEL.m9.u0.nographic.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.0.0.s390x.io-github-autotest-qemu.trans_hugepage.relocated.s390-virtio: ERROR: Hugepages allocated can not reach a half: 0/1024

@yanan-fu I've add the log in our bz, please check

fbq815 avatar Feb 15 '22 06:02 fbq815

Very strange, the program seems to sleep after entering the guest and does not continue to run. No error is reported after waiting for more than 4 hours, and the test can only be interrupted manually.

Add detailed log to bug.

zhenyzha avatar Feb 17 '22 13:02 zhenyzha

BTW https://github.com/autotest/tp-qemu/blob/master/generic/tests/cfg/trans_hugepage.cfg#L21 The thp_test_config path needs to be modified on ARM, I have corrected it locally, but the auto case is still not completed. on ARM thp_test_config = "/sys/kernel/mm/transparent_hugepage/khugepaged/pages_to_scan:4096;/sys/kernel/mm/transparent_hugepage/khugepaged/scan_sleep_millisecs:10000;/sys/kernel/mm/transparent_hugepage/khugepaged/alloc_sleep_millisecs:60000"

zhenyzha avatar Feb 17 '22 13:02 zhenyzha

On s390x: (5/5) Host_RHEL.m9.u0.nographic.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.0.0.s390x.io-github-autotest-qemu.trans_hugepage.relocated.s390-virtio: ERROR: Hugepages allocated can not reach a half: 0/1024

@yanan-fu I've add the log in our bz, please check

@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 Mar 01 '22 08:03 fbq815

@yanan-fu any update about this? In my last comment I suggested to change the vmsm variable value, is there any other suggestion?

mcasquer avatar Sep 21 '22 11:09 mcasquer