From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7C678A0093; Tue, 3 May 2022 08:10:58 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6D833410E8; Tue, 3 May 2022 08:10:58 +0200 (CEST) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id B51D840E2D for ; Tue, 3 May 2022 08:10:55 +0200 (CEST) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: [PATCH] eal: allow worker lcore stacks to be allocated from hugepage memory Date: Tue, 3 May 2022 08:10:50 +0200 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35D8703B@smartserver.smartshare.dk> In-Reply-To: <20220502141058.12707-1-donw@xsightlabs.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH] eal: allow worker lcore stacks to be allocated from hugepage memory Thread-Index: AdheLo12FG3TWnSjSeWRUEoDvaiaQwAhc0vQ References: <20220502141058.12707-1-donw@xsightlabs.com> From: =?iso-8859-1?Q?Morten_Br=F8rup?= To: "Don Wallwork" , Cc: , , , , , 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 > From: Don Wallwork [mailto:donw@xsightlabs.com] > Sent: Monday, 2 May 2022 16.11 >=20 > Add support for using hugepages for worker lcore stack memory. The > intent is to improve performance by reducing stack memory related TLB > misses and also by using memory local to the NUMA node of each lcore. >=20 > EAL option '--huge-worker-stack [stack-size-kbytes]' is added to allow > the feature to be enabled at runtime. If the size is not specified, > the system pthread stack size will be used. >=20 > Signed-off-by: Don Wallwork > --- > lib/eal/common/eal_common_options.c | 31 ++++++++++++++ > lib/eal/common/eal_internal_cfg.h | 4 ++ > lib/eal/common/eal_options.h | 2 + > lib/eal/linux/eal.c | 65 = ++++++++++++++++++++++++++++- > 4 files changed, 100 insertions(+), 2 deletions(-) >=20 Acked-by: Morten Br=F8rup