[dts][PATCH V1 1/2] tests/coremask: optimize the test script specified socket

Weiyuan Li weiyuanx.li at intel.com
Fri Aug 26 07:55:39 CEST 2022


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 at intel.com>
---
 tests/TestSuite_coremask.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/TestSuite_coremask.py b/tests/TestSuite_coremask.py
index 54db5550..8e95e998 100644
--- a/tests/TestSuite_coremask.py
+++ b/tests/TestSuite_coremask.py
@@ -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):
         """
-- 
2.27.0



More information about the dts mailing list