From patchwork Fri Aug 26 05:55:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weiyuan Li X-Patchwork-Id: 115453 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id EB3C4A0551; Fri, 26 Aug 2022 07:55:33 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B0C1D40146; Fri, 26 Aug 2022 07:55:33 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 6115E40143 for ; Fri, 26 Aug 2022 07:55:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661493332; x=1693029332; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=5slV4Br7GCp4nejGTvln22cuVAJYpDSRrIEXSqba9GM=; b=Lp9fVzlJjesnZfXN7Wu9fMNCyIpNy0eJnxEPyAEyLEdDtqz82jTPb45O qwqHCCYCHU6ij/bl4MLMy/Dd54A7HDdtrwzQRuQe0L17V+lGuGYrqwruR x2bedyaLUBZ6fJO1aRfsSq/X5JOE9OelpIme3gtNQ/gK875R3dop3odzd 4/QcdtGwjya54geYX1zDezNF5v2USgrRyNVK+t+z8sQS3SHdLbGhv+x0a jPmxe6lJkE/T1yAbrZPxzPGdEAVa0hgF1T78M4DWWOT9pk70pnWruohT2 8TY+7E8Kz53YIxZmF3IK2du9w7Ye+yKBxEx9PlvCxjMtwKaO00GOOlwz4 Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10450"; a="277445891" X-IronPort-AV: E=Sophos;i="5.93,264,1654585200"; d="scan'208";a="277445891" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2022 22:55:31 -0700 X-IronPort-AV: E=Sophos;i="5.93,264,1654585200"; d="scan'208";a="643539053" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2022 22:55:30 -0700 From: Weiyuan Li To: dts@dpdk.org Cc: Weiyuan Li Subject: [dts][PATCH V1 1/2] tests/coremask: optimize the test script specified socket Date: Fri, 26 Aug 2022 13:55:39 +0800 Message-Id: <20220826055540.19911-1-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org 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 --- 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): """ From patchwork Fri Aug 26 05:55:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weiyuan Li X-Patchwork-Id: 115454 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E0892A0552; Fri, 26 Aug 2022 07:55:34 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D0EFE40A80; Fri, 26 Aug 2022 07:55:34 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 04CBA40143 for ; Fri, 26 Aug 2022 07:55:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661493333; x=1693029333; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=lqslWJKdt6o2WflH+iy4n8dAsDo5+yVXqK5Lah53jIA=; b=G2zTXA8aeYOoNGKiIdWDtahqfZK0jzWa1fWLQKLjyhaqYDxIUKXwPenJ s5vRtxNClYnkoRsZ1md4UzH9JNmKBoOb/3mp0fDpheCHjFjBw53i2jJtS +ZAI0TzdXc4rI3k+kvX2FG0N6mVBu/QL2U+DHGoNAz2OoYN93OoH+2zvw 8jKqS62WoJhkyRRSqVhSX2GhJrTh0g1DjOJx+J6vFDG7A8COSNtxzpf3F ly7qMhHW2Rj8rgug8OXYn4FMVeXzuJFShXwtySRUDvLzIqq0AKSy4NFPa 2bJcnf9oSjfJ236fpYnH2CPthe9T35C1plvFgET2uPw4mXSGvkQu6DQaC Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10450"; a="277445894" X-IronPort-AV: E=Sophos;i="5.93,264,1654585200"; d="scan'208";a="277445894" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2022 22:55:32 -0700 X-IronPort-AV: E=Sophos;i="5.93,264,1654585200"; d="scan'208";a="643539061" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2022 22:55:31 -0700 From: Weiyuan Li To: dts@dpdk.org Cc: Weiyuan Li Subject: [dts][PATCH V1 2/2] tests/tso: optimzie the script code Date: Fri, 26 Aug 2022 13:55:40 +0800 Message-Id: <20220826055540.19911-2-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220826055540.19911-1-weiyuanx.li@intel.com> References: <20220826055540.19911-1-weiyuanx.li@intel.com> MIME-Version: 1.0 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org The optimization script code is modified from "1S/1C/2T" to "1S/2C/1T". Signed-off-by: Weiyuan Li Acked-by: Lijuan Tu --- 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"]