Skip to content

Commit

Permalink
Merge pull request autotest#5600 from dzhengfy/enable_4k_numa_info_arm
Browse files Browse the repository at this point in the history
host_numa_info: enable 4k test
  • Loading branch information
dzhengfy authored Jun 20, 2024
2 parents c311aa4 + 00960a5 commit 509ff38
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 9 deletions.
26 changes: 17 additions & 9 deletions libvirt/tests/cfg/numa/host_numa/host_numa_info.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,21 @@
take_regular_screendumps = no
start_vm = "no"
no s390-virtio
variants:
- default:
allocate_dict = {2048: 200, 1048576: 2}
aarch64:
allocate_dict = {2048: 200, 524288: 4}
- 16G:
variants kernel_size:
- 4k:
default_pagesize = 4
variants:
- all_hugepages:
allocate_dict = {2048: 200, 1048576: 2}
aarch64:
allocate_dict = {64: 100, 2048: 100, 32768: 4, 1048576: 1}
- 64k:
only aarch64
required_kernel = [5.14.0,)
expect_nodes_num = 1
allocate_dict = {16777216: 1}
default_pagesize = 64
variants:
- all_hugepages:
required_kernel = [5.14.0,)
expect_nodes_num = 1
allocate_dict = {2048: 200, 524288: 4, 16777216: 1}
- 512M_2M:
allocate_dict = {2048: 200, 524288: 4}
6 changes: 6 additions & 0 deletions libvirt/tests/src/numa/host_numa/host_numa_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,12 @@ def run(test, params, env):
"""
Test numa topology together with cpu topology
"""
default_pagesize = int(params.get("default_pagesize")) * 1024
default_kernel_pagesize = mem_utils.get_page_size()
if default_pagesize != default_kernel_pagesize:
test.cancel("The case does not support on "
"current host kernel "
"size %d" % default_kernel_pagesize)
vm_name = params.get("main_vm")
vm = env.get_vm(vm_name)
numatest_obj = numa_base.NumaTest(vm, params, test)
Expand Down

0 comments on commit 509ff38

Please sign in to comment.