diff --git a/qemu/tests/cfg/hugepage_reset.cfg b/qemu/tests/cfg/hugepage_reset.cfg index a2c80c9ed6..db6da8c47a 100644 --- a/qemu/tests/cfg/hugepage_reset.cfg +++ b/qemu/tests/cfg/hugepage_reset.cfg @@ -4,8 +4,10 @@ pre_command = 'echo 3 > /proc/sys/vm/drop_caches && echo 1 > /proc/sys/vm/compact_memory' mem = 4096 origin_nr = 8 - # Please set hugepage in kernel command line before this test: - # default_hugepagesz=1G hugepagesz=1G hugepages=8 + # Please allocate enough hugepages at boot time for this test. + # IMPORTANT! Keep in mind the system memory and the number of NUMA nodes + # to decide how many hugepages are needed to be allocated. + # Example: default_hugepagesz=1G hugepagesz=1G hugepages=24 expected_hugepage_size = 1048576 Windows: x86_64: diff --git a/qemu/tests/hugepage_reset.py b/qemu/tests/hugepage_reset.py index 16ba88cf15..19ed8678fd 100644 --- a/qemu/tests/hugepage_reset.py +++ b/qemu/tests/hugepage_reset.py @@ -108,8 +108,6 @@ def heavyload_install(): ) hp_config = test_setup.HugePageConfig(params) hp_config.target_hugepages = origin_nr - test.log.info("Setup hugepage number to %s", origin_nr) - hp_config.setup() hugepage_size = utils_memory.get_huge_page_size() params["hugepage_path"] = hp_config.hugepage_path params["start_vm"] = "yes"