From patchwork Wed Apr 28 20:10:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Christensen X-Patchwork-Id: 92345 X-Patchwork-Delegate: thomas@monjalon.net 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 C8AFEA0A0E; Wed, 28 Apr 2021 22:10:25 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 70D0D40697; Wed, 28 Apr 2021 22:10:25 +0200 (CEST) Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by mails.dpdk.org (Postfix) with ESMTP id 88E3D40147 for ; Wed, 28 Apr 2021 22:10:23 +0200 (CEST) Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 13SK4NHD062235 for ; Wed, 28 Apr 2021 16:10:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=dqPdL7RtV8osIdhUkz84DKRFhj6MJWYBAUjAjWhLH8E=; b=GmTwKu6ZdhaMd9U9l5ST82UEKrpzw7aZ5lOIVyRmZQGjvI3jdneUCT+zpaUt7GVMOMKF 0zW1RMFdD8DWjodzyrw3Sc4vLfrGLLYtXV2C+OYJ4xSlwddlZlRkdMvEsadF63Ud7Ynq Y+EwiA90zKAibfJQKEViJvMgnMngvTKk9Z8bDfLiHJ0W/nM3h5mxl3vZZEV7oEXQHHKS +9RptR2M112mjzE1bN+4FQxk+lXt+iGd4NkddedeaJwrfdlVUvHwQ0NBryAwsqxJB6so mLwNp7abFr+98CYgO1Jxmy84SNNxkTvBi05eiSBNwbKEtDrZzLObMoSXc7BUS56iStXq 8Q== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 387eca87e9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 28 Apr 2021 16:10:22 -0400 Received: from m0098394.ppops.net (m0098394.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 13SK4L22062116 for ; Wed, 28 Apr 2021 16:10:22 -0400 Received: from ppma05wdc.us.ibm.com (1b.90.2fa9.ip4.static.sl-reverse.com [169.47.144.27]) by mx0a-001b2d01.pphosted.com with ESMTP id 387eca87dv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 28 Apr 2021 16:10:22 -0400 Received: from pps.filterd (ppma05wdc.us.ibm.com [127.0.0.1]) by ppma05wdc.us.ibm.com (8.16.0.43/8.16.0.43) with SMTP id 13SK3MZf019751; Wed, 28 Apr 2021 20:10:21 GMT Received: from b03cxnp07028.gho.boulder.ibm.com (b03cxnp07028.gho.boulder.ibm.com [9.17.130.15]) by ppma05wdc.us.ibm.com with ESMTP id 384ay9qh6y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 28 Apr 2021 20:10:21 +0000 Received: from b03ledav001.gho.boulder.ibm.com (b03ledav001.gho.boulder.ibm.com [9.17.130.232]) by b03cxnp07028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 13SKAKTw29622634 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 28 Apr 2021 20:10:20 GMT Received: from b03ledav001.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 059456E04E; Wed, 28 Apr 2021 20:10:20 +0000 (GMT) Received: from b03ledav001.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A1D7E6E053; Wed, 28 Apr 2021 20:10:19 +0000 (GMT) Received: from localhost.localdomain (unknown [9.114.224.51]) by b03ledav001.gho.boulder.ibm.com (Postfix) with ESMTP; Wed, 28 Apr 2021 20:10:19 +0000 (GMT) From: David Christensen To: dev@dpdk.org Cc: dwilder@us.ibm.com, luca.boccassi@gmail.com, David Christensen Date: Wed, 28 Apr 2021 13:10:16 -0700 Message-Id: <20210428201016.125533-1-drc@linux.vnet.ibm.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: vEf_lE1I_4gYeUIfmJEwkHIf6UvpFIve X-Proofpoint-ORIG-GUID: DpYRXc_FNbTbztpvqx8MFq0cIdsUmLo5 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.761 definitions=2021-04-28_13:2021-04-28, 2021-04-28 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 lowpriorityscore=0 mlxlogscore=999 suspectscore=0 clxscore=1015 mlxscore=0 bulkscore=0 priorityscore=1501 spamscore=0 adultscore=0 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104060000 definitions=main-2104280130 Subject: [dpdk-dev] [PATCH] build: reduce max_lcores for ppc X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" When setting RTE_MAX_LCORES to the maximum value supported by ppc hardware (1536), the lcores_autotest may timeout after 30 seconds because the test takes nearly 60 seconds to complete. Set max_lcores to a lower value because the maximum value is unlikely to be seen in any production systems and to eliminate the quick test timeout error. Bugzilla ID: 684 Fixes: db1f2f8a9fe5 ("config: increase maximum lcores for ppc") Cc: dwilder@us.ibm.com Signed-off-by: David Christensen Acked-by: Luca Boccassi --- config/ppc/meson.build | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) -- 2.27.0 diff --git a/config/ppc/meson.build b/config/ppc/meson.build index 0d8da87e6f..ed6ea07d24 100644 --- a/config/ppc/meson.build +++ b/config/ppc/meson.build @@ -17,7 +17,18 @@ if not power9_supported dpdk_conf.set('RTE_MACHINE','power8') endif -# overrides specific to ppc64 -dpdk_conf.set('RTE_MAX_LCORE', 1536) -dpdk_conf.set('RTE_MAX_NUMA_NODES', 32) +# Certain POWER9 systems can scale as high as 1536 LCORES, but setting such a +# high value can waste memory, cause timeouts in time limited autotests, and is +# unlikely to be used in many production situations. Similarly, keeping the +# default 64 LCORES seems too small as most POWER9 dual socket systems will have +# at least 128 LCORES available. Set RTE_MAX_LCORE to 128 for POWER systems as +# a compromise. +dpdk_conf.set('RTE_MAX_LCORE', 128) + +# POWER systems do not allocate NUMA nodes sequentially. A dual socket system +# will have CPUs associated with NUMA nodes 0 & 8, so ensure that the second +# NUMA node will be supported by setting RTE_MAX_NUMA_NODES to 16. High end +# systems can scale even higher with as many as 32 NUMA nodes. +dpdk_conf.set('RTE_MAX_NUMA_NODES', 16) + dpdk_conf.set('RTE_CACHE_LINE_SIZE', 128)