* [dts][PATCH V1 1/2] tests/coremask: optimize the test script specified socket
@ 2022-08-26 5:55 Weiyuan Li
2022-08-26 5:55 ` [dts][PATCH V1 2/2] tests/tso: optimzie the script code Weiyuan Li
0 siblings, 1 reply; 3+ messages in thread
From: Weiyuan Li @ 2022-08-26 5:55 UTC (permalink / raw)
To: dts; +Cc: Weiyuan Li
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(-)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [dts][PATCH V1 2/2] tests/tso: optimzie the script code
2022-08-26 5:55 [dts][PATCH V1 1/2] tests/coremask: optimize the test script specified socket Weiyuan Li
@ 2022-08-26 5:55 ` Weiyuan Li
2022-09-02 1:47 ` lijuan.tu
0 siblings, 1 reply; 3+ messages in thread
From: Weiyuan Li @ 2022-08-26 5:55 UTC (permalink / raw)
To: dts; +Cc: Weiyuan Li
The optimization script code is modified from "1S/1C/2T" to "1S/2C/1T".
Signed-off-by: Weiyuan Li <weiyuanx.li@intel.com>
---
tests/TestSuite_tso.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/TestSuite_tso.py b/tests/TestSuite_tso.py
index 8e128d50..281af374 100644
--- a/tests/TestSuite_tso.py
+++ b/tests/TestSuite_tso.py
@@ -51,7 +51,7 @@ class TestTSO(TestCase):
self.table_header.append("% linerate")
self.eal_param = self.dut.create_eal_parameters(
- cores="1S/1C/2T", socket=self.ports_socket, ports=self.dut_ports
+ cores="1S/2C/1T", socket=self.ports_socket, ports=self.dut_ports
)
self.headers_size = HEADER_SIZE["eth"] + HEADER_SIZE["ip"] + HEADER_SIZE["tcp"]
--
2.27.0
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-09-02 1:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-26 5:55 [dts][PATCH V1 1/2] tests/coremask: optimize the test script specified socket Weiyuan Li
2022-08-26 5:55 ` [dts][PATCH V1 2/2] tests/tso: optimzie the script code Weiyuan Li
2022-09-02 1:47 ` lijuan.tu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).