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 3A1A7A0508; Tue, 26 Apr 2022 16:59:03 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 19EFE42803; Tue, 26 Apr 2022 16:59:03 +0200 (CEST) Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) by mails.dpdk.org (Postfix) with ESMTP id 3BE98427FE for ; Tue, 26 Apr 2022 16:59:02 +0200 (CEST) Received: by mail-pj1-f42.google.com with SMTP id w5-20020a17090aaf8500b001d74c754128so2446211pjq.0 for ; Tue, 26 Apr 2022 07:59:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=j669/PaF7bbut6LYc15xRwc27yAy8C9q0BM52D1r7dQ=; b=QcSp5O+DgdPC2rm+j4jtH4sK3yo/6GV2MfUg9NSHOyLtwchCiQsNLicdt9fZwtNKTy o8FGaiG3mFdYsTzLoNO4TqfBq64rBNotumLUGAdBIMQn7UNAe0YTeQfmBzrlGNDcXFWR L69irYiFJys7qxpEXOz1IeJPh4bF8g0fzN6qnHT+FLyMiiuOWcIe6oH4ZD4SHnogUBhr RnVN/1cZUneQvN+rEnrWWED1rbsrSimup0CkzW8dqTUq9niFjS447LhHi69vub2wII7q sVPQyZfENctMloYKsp1Dfq0lbPuQSnlvG8dsNWat3nxRuYGKrfSCLetNEdiEt5Iuf/S9 9CQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=j669/PaF7bbut6LYc15xRwc27yAy8C9q0BM52D1r7dQ=; b=IzTGk1mGkmbL68VVWXWGf/d5vZoC5EqDNd5QGN6WXfA42pw+uc/ZWpVZeBrlEwqfJw U9o8SbJqABnDjOnWm021kY3JccqPg/Nq1xMDGX0LZHDvoqBGMIjyzIYCxfgN8Z6cMOXJ XmF8leuWL87rv3CPnrew+4DMQHbAMA4aMA2XyL4k9IW6tuBKV32XJSqmeaSg8GfuV0Q+ hPaI9h3b20woKdm3Z3LSGKiNeLq59LH4FOoJi41GYjpvjS3UQd0BvPMPjw7QlkRZhhiR YjZK8zb3JrRgl/HzCOU/h5JyWbt30t03Wm+UGEngHRN0rzFqT4cFgiG2ToY4tf7jaj0P ZReQ== X-Gm-Message-State: AOAM530PTkVXmjgWu8/8q30jV9emo0ZCued4rfPZH10XkHRGfeuRM+JV vmJ/GZez+cnvxtbF/zKKUozBPQ== X-Google-Smtp-Source: ABdhPJyRphEXG08SwYfKYn1JVT2Ft9xyx1EZscklnK7bkZvecVmcJO9mULvfXkpLOelNg2YgErUvrg== X-Received: by 2002:a17:902:8f83:b0:154:57cf:e393 with SMTP id z3-20020a1709028f8300b0015457cfe393mr23664401plo.24.1650985141404; Tue, 26 Apr 2022 07:59:01 -0700 (PDT) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id n11-20020a17090a394b00b001cd4989fee7sm3369406pjf.51.2022.04.26.07.59.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Apr 2022 07:59:01 -0700 (PDT) Date: Tue, 26 Apr 2022 07:58:58 -0700 From: Stephen Hemminger To: Don Wallwork Cc: dev@dpdk.org Subject: Re: [RFC] eal: allow worker lcore stacks to be allocated from hugepage memory Message-ID: <20220426075858.2c28f427@hermes.local> In-Reply-To: <20220426122000.24743-1-donw@xsightlabs.com> References: <20220426122000.24743-1-donw@xsightlabs.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Tue, 26 Apr 2022 08:19:59 -0400 Don Wallwork wrote: > 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. > > Platforms desiring to make use of this capability must enable the > associated option flag and stack size settings in platform config > files. > --- > lib/eal/linux/eal.c | 39 +++++++++++++++++++++++++++++++++++++++ > 1 file changed, 39 insertions(+) > Good idea but having a fixed size stack makes writing complex application more difficult. Plus you lose the safety of guard pages.