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