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

Message ID 20220826055540.19911-1-weiyuanx.li@intel.com (mailing list archive)
State Accepted
Headers
Series [V1,1/2] tests/coremask: optimize the test script specified socket |

Commit Message

Weiyuan Li Aug. 26, 2022, 5:55 a.m. UTC
  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(-)
  

Patch

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):
         """