From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier Matz Subject: Re: [PATCH 13/41] eal: replace memseg with memseg lists Date: Mon, 19 Mar 2018 18:39:04 +0100 Message-ID: <20180319173904.u3f67wmlact2xwh6@platinum> References: <18f4ee0ba172f3bb80608694eb283cd496930675.1520083504.git.anatoly.burakov@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org, Thomas Monjalon , Yuanhan Liu , Maxime Coquelin , Tiwei Bie , keith.wiles@intel.com, jianfeng.tan@intel.com, andras.kovacs@ericsson.com, laszlo.vadkeri@ericsson.com, benjamin.walker@intel.com, bruce.richardson@intel.com, konstantin.ananyev@intel.com, kuralamudhan.ramakrishnan@intel.com, louise.m.daly@intel.com, nelio.laranjeiro@6wind.com, yskoh@mellanox.com, pepperjo@japf.ch, jerin.jacob@caviumnetworks.com, hemant.agrawal@nxp.com To: Anatoly Burakov Return-path: Received: from mail.droids-corp.org (zoll.droids-corp.org [94.23.50.67]) by dpdk.org (Postfix) with ESMTP id 7487B1B1AA for ; Mon, 19 Mar 2018 18:39:07 +0100 (CET) Content-Disposition: inline In-Reply-To: <18f4ee0ba172f3bb80608694eb283cd496930675.1520083504.git.anatoly.burakov@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Sat, Mar 03, 2018 at 01:46:01PM +0000, Anatoly Burakov wrote: [...] > --- a/config/common_base > +++ b/config/common_base > @@ -61,7 +61,20 @@ CONFIG_RTE_CACHE_LINE_SIZE=64 > CONFIG_RTE_LIBRTE_EAL=y > CONFIG_RTE_MAX_LCORE=128 > CONFIG_RTE_MAX_NUMA_NODES=8 > -CONFIG_RTE_MAX_MEMSEG=256 > +CONFIG_RTE_MAX_MEMSEG_LISTS=32 > +# each memseg list will be limited to either RTE_MAX_MEMSEG_PER_LIST pages > +# or RTE_MAX_MEM_PER_LIST gigabytes worth of memory, whichever is the smallest > +CONFIG_RTE_MAX_MEMSEG_PER_LIST=8192 > +CONFIG_RTE_MAX_MEM_PER_LIST=32 > +# a "type" is a combination of page size and NUMA node. total number of memseg > +# lists per type will be limited to either RTE_MAX_MEMSEG_PER_TYPE pages (split > +# over multiple lists of RTE_MAX_MEMSEG_PER_LIST pages), or RTE_MAX_MEM_PER_TYPE > +# gigabytes of memory (split over multiple lists of RTE_MAX_MEM_PER_LIST), > +# whichever is the smallest > +CONFIG_RTE_MAX_MEMSEG_PER_TYPE=32768 > +CONFIG_RTE_MAX_MEM_PER_TYPE=128 > +# legacy mem mode only > +CONFIG_RTE_MAX_LEGACY_MEMSEG=256 Would it be possible to suffix CONFIG_RTE_MAX_MEM_PER_LIST and CONFIG_RTE_MAX_MEM_PER_TYPE with _GB? It's not that obvious that is it gigabytes. What is the impact of changing one of these values on the ABI? And what would be the impact on performance? The underlying question is: shall we increase these values to avoid changing them later?