Skip to content

Commit

Permalink
Merge pull request autotest#5631 from QianJianhua1/pagesize
Browse files Browse the repository at this point in the history
numa: remove 'kernelpagesize_kB' parameter
  • Loading branch information
dzhengfy authored May 23, 2024
2 parents 05bfd43 + b7573db commit 2ac914a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,4 @@
mem_mode = 'preferred'
- mem_mode_restrictive:
mem_mode = 'restrictive'
kernelpagesize_kB = '4'
aarch64:
kernelpagesize_kB = '64'
numa_memory = {'mode': '${mem_mode}', 'nodeset': '%s'}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from virttest.utils_libvirt import libvirt_misc
from virttest.utils_libvirt import libvirt_vmxml
from virttest.utils_test import libvirt
from virttest.staging import utils_memory


from provider.numa import numa_base
Expand Down Expand Up @@ -77,7 +78,7 @@ def verify_host_numa_memory_allocation(test_obj, check_N0=False):
:param test_obj: NumaTest object
"""
mem_size = get_memory_in_vmxml(test_obj)
kernelpagesize_kB = test_obj.params.get('kernelpagesize_kB')
kernelpagesize_kB = utils_memory.getpagesize()
out_numa_maps = numa_base.get_host_numa_memory_alloc_info(mem_size)
all_nodes = test_obj.online_nodes_withmem
N0_value = re.findall('N%s=(\d+)' % all_nodes[0], out_numa_maps)
Expand Down

0 comments on commit 2ac914a

Please sign in to comment.