DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] config: increase default maximum number of NUMA nodes
@ 2021-02-03 21:18 Thomas Monjalon
  2021-02-04  6:19 ` Jerin Jacob
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Thomas Monjalon @ 2021-02-03 21:18 UTC (permalink / raw)
  To: dev; +Cc: Bruce Richardson

AMD CPU can present a high number of NUMA nodes.
The default should be 32 for better compatibility.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
---
 meson_options.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meson_options.txt b/meson_options.txt
index 5c382487da..6eff62e47d 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -26,7 +26,7 @@ option('max_ethports', type: 'integer', value: 32,
 	description: 'maximum number of Ethernet devices')
 option('max_lcores', type: 'integer', value: 128,
 	description: 'maximum number of cores/threads supported by EAL')
-option('max_numa_nodes', type: 'integer', value: 4,
+option('max_numa_nodes', type: 'integer', value: 32,
 	description: 'maximum number of NUMA nodes supported by EAL')
 option('enable_trace_fp', type: 'boolean', value: false,
 	description: 'enable fast path trace points.')
-- 
2.30.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [dpdk-dev] [PATCH] config: increase default maximum number of NUMA nodes
  2021-02-03 21:18 [dpdk-dev] [PATCH] config: increase default maximum number of NUMA nodes Thomas Monjalon
@ 2021-02-04  6:19 ` Jerin Jacob
  2021-02-04 10:28   ` Thomas Monjalon
  2021-02-04  9:56 ` Bruce Richardson
  2021-02-04 10:56 ` Asaf Penso
  2 siblings, 1 reply; 7+ messages in thread
From: Jerin Jacob @ 2021-02-04  6:19 UTC (permalink / raw)
  To: Thomas Monjalon; +Cc: dpdk-dev, Bruce Richardson

On Thu, Feb 4, 2021 at 2:49 AM Thomas Monjalon <thomas@monjalon.net> wrote:
>
> AMD CPU can present a high number of NUMA nodes.
> The default should be 32 for better compatibility.

The typical configuration is 4 nodes[1] for AMD. Just wondering, Is it
an exception case? if so, Do we need to consume more memory for normal
cases?

[1]
https://developer.amd.com/wp-content/resources/56308-NUMA%20Topology%20for%20AMD%20EPYC%E2%84%A2%20Naples%20Family%20Processors.PDF

>
> Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
> ---
>  meson_options.txt | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meson_options.txt b/meson_options.txt
> index 5c382487da..6eff62e47d 100644
> --- a/meson_options.txt
> +++ b/meson_options.txt
> @@ -26,7 +26,7 @@ option('max_ethports', type: 'integer', value: 32,
>         description: 'maximum number of Ethernet devices')
>  option('max_lcores', type: 'integer', value: 128,
>         description: 'maximum number of cores/threads supported by EAL')
> -option('max_numa_nodes', type: 'integer', value: 4,
> +option('max_numa_nodes', type: 'integer', value: 32,
>         description: 'maximum number of NUMA nodes supported by EAL')
>  option('enable_trace_fp', type: 'boolean', value: false,
>         description: 'enable fast path trace points.')
> --
> 2.30.0
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [dpdk-dev] [PATCH] config: increase default maximum number of NUMA nodes
  2021-02-03 21:18 [dpdk-dev] [PATCH] config: increase default maximum number of NUMA nodes Thomas Monjalon
  2021-02-04  6:19 ` Jerin Jacob
@ 2021-02-04  9:56 ` Bruce Richardson
  2021-02-05 16:36   ` Thomas Monjalon
  2021-02-04 10:56 ` Asaf Penso
  2 siblings, 1 reply; 7+ messages in thread
From: Bruce Richardson @ 2021-02-04  9:56 UTC (permalink / raw)
  To: Thomas Monjalon; +Cc: dev

On Wed, Feb 03, 2021 at 10:18:18PM +0100, Thomas Monjalon wrote:
> AMD CPU can present a high number of NUMA nodes.
> The default should be 32 for better compatibility.
> 
> Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
> ---
Seems reasonable.

Acked-by: Bruce Richardson <bruce.richardson@intel.com>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [dpdk-dev] [PATCH] config: increase default maximum number of NUMA nodes
  2021-02-04  6:19 ` Jerin Jacob
@ 2021-02-04 10:28   ` Thomas Monjalon
  2021-02-04 11:39     ` Jerin Jacob
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas Monjalon @ 2021-02-04 10:28 UTC (permalink / raw)
  To: Jerin Jacob; +Cc: dpdk-dev, Bruce Richardson

04/02/2021 07:19, Jerin Jacob:
> On Thu, Feb 4, 2021 at 2:49 AM Thomas Monjalon <thomas@monjalon.net> wrote:
> >
> > AMD CPU can present a high number of NUMA nodes.
> > The default should be 32 for better compatibility.
> 
> The typical configuration is 4 nodes[1] for AMD. Just wondering, Is it
> an exception case? if so, Do we need to consume more memory for normal
> cases?
> 
> [1]
> https://developer.amd.com/wp-content/resources/56308-NUMA%20Topology%20for%20AMD%20EPYC%E2%84%A2%20Naples%20Family%20Processors.PDF

As you can read in
https://www.dell.com/support/kbdoc/fr-fr/000137696/amd-rome-is-it-for-real-architecture-and-initial-hpc-performance
there is an option "CCX as NUMA Domain.
This option exposes each CCX as a NUMA node.
On a system with dual-socket CPUs with 16 CCXs per CPU,
this setting will expose 32 NUMA domains."
and
"Enabling this option is expected to help virtualized environments."

I would not say it is exceptional.
And in my understanding, the memory cost is not so high for DPDK.
Do you see some large arrays depending on RTE_MAX_NUMA_NODES?



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [dpdk-dev] [PATCH] config: increase default maximum number of NUMA nodes
  2021-02-03 21:18 [dpdk-dev] [PATCH] config: increase default maximum number of NUMA nodes Thomas Monjalon
  2021-02-04  6:19 ` Jerin Jacob
  2021-02-04  9:56 ` Bruce Richardson
@ 2021-02-04 10:56 ` Asaf Penso
  2 siblings, 0 replies; 7+ messages in thread
From: Asaf Penso @ 2021-02-04 10:56 UTC (permalink / raw)
  To: NBU-Contact-Thomas Monjalon, dev; +Cc: Bruce Richardson

>-----Original Message-----
>From: dev <dev-bounces@dpdk.org> On Behalf Of Thomas Monjalon
>Sent: Wednesday, February 3, 2021 11:18 PM
>To: dev@dpdk.org
>Cc: Bruce Richardson <bruce.richardson@intel.com>
>Subject: [dpdk-dev] [PATCH] config: increase default maximum number of
>NUMA nodes
>
>AMD CPU can present a high number of NUMA nodes.
>The default should be 32 for better compatibility.
>
>Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
>---
> meson_options.txt | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/meson_options.txt b/meson_options.txt index
>5c382487da..6eff62e47d 100644
>--- a/meson_options.txt
>+++ b/meson_options.txt
>@@ -26,7 +26,7 @@ option('max_ethports', type: 'integer', value: 32,
> 	description: 'maximum number of Ethernet devices')
>option('max_lcores', type: 'integer', value: 128,
> 	description: 'maximum number of cores/threads supported by EAL') -
>option('max_numa_nodes', type: 'integer', value: 4,
>+option('max_numa_nodes', type: 'integer', value: 32,
> 	description: 'maximum number of NUMA nodes supported by EAL')
>option('enable_trace_fp', type: 'boolean', value: false,
> 	description: 'enable fast path trace points.')
>--
>2.30.0

Reviewed-by: Asaf Penso <asafp@nvidia.com>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [dpdk-dev] [PATCH] config: increase default maximum number of NUMA nodes
  2021-02-04 10:28   ` Thomas Monjalon
@ 2021-02-04 11:39     ` Jerin Jacob
  0 siblings, 0 replies; 7+ messages in thread
From: Jerin Jacob @ 2021-02-04 11:39 UTC (permalink / raw)
  To: Thomas Monjalon; +Cc: dpdk-dev, Bruce Richardson

On Thu, Feb 4, 2021 at 3:58 PM Thomas Monjalon <thomas@monjalon.net> wrote:
>
> 04/02/2021 07:19, Jerin Jacob:
> > On Thu, Feb 4, 2021 at 2:49 AM Thomas Monjalon <thomas@monjalon.net> wrote:
> > >
> > > AMD CPU can present a high number of NUMA nodes.
> > > The default should be 32 for better compatibility.
> >
> > The typical configuration is 4 nodes[1] for AMD. Just wondering, Is it
> > an exception case? if so, Do we need to consume more memory for normal
> > cases?
> >
> > [1]
> > https://developer.amd.com/wp-content/resources/56308-NUMA%20Topology%20for%20AMD%20EPYC%E2%84%A2%20Naples%20Family%20Processors.PDF
>
> As you can read in
> https://www.dell.com/support/kbdoc/fr-fr/000137696/amd-rome-is-it-for-real-architecture-and-initial-hpc-performance
> there is an option "CCX as NUMA Domain.
> This option exposes each CCX as a NUMA node.
> On a system with dual-socket CPUs with 16 CCXs per CPU,
> this setting will expose 32 NUMA domains."
> and
> "Enabling this option is expected to help virtualized environments."

I see.

>
> I would not say it is exceptional.
> And in my understanding, the memory cost is not so high for DPDK.
> Do you see some large arrays depending on RTE_MAX_NUMA_NODES?

Not quite a lot.

lib/librte_efd/rte_efd.c:       struct efd_online_chunk
*chunks[RTE_MAX_NUMA_NODES];
lib/librte_eal/linux/eal_memory.c:      uint64_t memory[RTE_MAX_NUMA_NODES];
lib/librte_eal/linux/eal.c:     char * arg[RTE_MAX_NUMA_NODES];
lib/librte_eal/common/eal_common_dynmem.c:      uint64_t
memory[RTE_MAX_NUMA_NODES];
lib/librte_eal/common/eal_common_dynmem.c:              int
cpu_per_socket[RTE_MAX_NUMA_NODES];
lib/librte_eal/common/eal_private.h:    uint32_t
numa_nodes[RTE_MAX_NUMA_NODES]; /**< List of detected NUMA nodes. */
lib/librte_eal/common/eal_internal_cfg.h:       uint32_t
num_pages[RTE_MAX_NUMA_NODES];
lib/librte_eal/common/eal_internal_cfg.h:       volatile uint64_t
socket_mem[RTE_MAX_NUMA_NODES]; /**< amount of memory per socket */
lib/librte_eal/common/eal_internal_cfg.h:       volatile uint64_t
socket_limit[RTE_MAX_NUMA_NODES]; /**< limit amount of memory per
socket */
lib/librte_eal/windows/eal_lcore.c:     struct socket_map
sockets[RTE_MAX_NUMA_NODES];
lib/librte_node/ip4_lookup.c:   struct rte_lpm *lpm_tbl[RTE_MAX_NUMA_NODES];


Acked-by: Jerin Jacob <jerinj@marvell.com>


>
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [dpdk-dev] [PATCH] config: increase default maximum number of NUMA nodes
  2021-02-04  9:56 ` Bruce Richardson
@ 2021-02-05 16:36   ` Thomas Monjalon
  0 siblings, 0 replies; 7+ messages in thread
From: Thomas Monjalon @ 2021-02-05 16:36 UTC (permalink / raw)
  To: dev; +Cc: Bruce Richardson, jerinj

04/02/2021 10:56, Bruce Richardson:
> On Wed, Feb 03, 2021 at 10:18:18PM +0100, Thomas Monjalon wrote:
> > AMD CPU can present a high number of NUMA nodes.
> > The default should be 32 for better compatibility.
> > 
> > Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
> > ---
> Seems reasonable.
> 
> Acked-by: Bruce Richardson <bruce.richardson@intel.com>

Applied with additional explanation:

On a dual-socket with 16 CCXs per CPU,
the option "CCX (or LLC) as NUMA domain" will expose 32 NUMA nodes.



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-02-05 16:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-03 21:18 [dpdk-dev] [PATCH] config: increase default maximum number of NUMA nodes Thomas Monjalon
2021-02-04  6:19 ` Jerin Jacob
2021-02-04 10:28   ` Thomas Monjalon
2021-02-04 11:39     ` Jerin Jacob
2021-02-04  9:56 ` Bruce Richardson
2021-02-05 16:36   ` Thomas Monjalon
2021-02-04 10:56 ` Asaf Penso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).