[V1,1/2] tests/coremask: optimize the test script specified socket
Commit Message
32-bit applications have limitations in terms of how much virtual memory is available, hence the number of hugepages they are able to allocate is also limited (1 GB size).
Therefore, the 32-bit core is designated as the CPU on socket 0.
Signed-off-by: Weiyuan Li <weiyuanx.li@intel.com>
---
tests/TestSuite_coremask.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
@@ -39,7 +39,10 @@ class TestCoremask(TestCase):
self.port_mask = utils.create_mask(self.dut.get_ports(self.nic))
self.mem_channel = self.dut.get_memory_channels()
self.app_test_path = self.dut.apps_name["test"]
- self.all_cores = self.dut.get_core_list("all")
+ if self.dut.architecture == "i686":
+ self.all_cores = self.dut.get_core_list("all", socket=0)
+ else:
+ self.all_cores = self.dut.get_core_list("all")
def set_up(self):
"""