DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] doc: clarify mempool striding optimisation on Arm
@ 2024-07-15 14:44 Jack Bond-Preston
  2024-07-17  2:25 ` Stephen Hemminger
  2024-07-29 19:46 ` Thomas Monjalon
  0 siblings, 2 replies; 4+ messages in thread
From: Jack Bond-Preston @ 2024-07-15 14:44 UTC (permalink / raw)
  To: Andrew Rybchenko, Morten Brørup; +Cc: dev, Wathsala Vithanage

The mempool memory channel striding optimisation is not necessary on
Arm platforms.
Update the Programmer's Guide's mempool section to clarify this.

Signed-off-by: Jack Bond-Preston <jack.bond-preston@foss.arm.com>
Reviewed-by: Wathsala Vithanage <wathsala.vithanage@arm.com>
---
 doc/guides/prog_guide/mempool_lib.rst | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/doc/guides/prog_guide/mempool_lib.rst b/doc/guides/prog_guide/mempool_lib.rst
index 4db577fe18..988b0e80c1 100644
--- a/doc/guides/prog_guide/mempool_lib.rst
+++ b/doc/guides/prog_guide/mempool_lib.rst
@@ -77,6 +77,12 @@ When creating a new pool, the user can specify to use this feature or not.
 
 .. _mempool_local_cache:
 
+.. note::
+
+    This feature is not present for Arm systems. Modern Arm Interconnects choose the SN-F (memory
+    channel) using a hash of memory address bits. As a result, the load is distributed evenly in all
+    cases, including the above described, rendering this feature unnecessary.
+
 Local Cache
 -----------
 
-- 
2.34.1


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

* Re: [PATCH] doc: clarify mempool striding optimisation on Arm
  2024-07-15 14:44 [PATCH] doc: clarify mempool striding optimisation on Arm Jack Bond-Preston
@ 2024-07-17  2:25 ` Stephen Hemminger
  2024-07-17 10:40   ` Bruce Richardson
  2024-07-29 19:46 ` Thomas Monjalon
  1 sibling, 1 reply; 4+ messages in thread
From: Stephen Hemminger @ 2024-07-17  2:25 UTC (permalink / raw)
  To: Jack Bond-Preston
  Cc: Andrew Rybchenko, Morten Brørup, dev, Wathsala Vithanage

On Mon, 15 Jul 2024 15:44:20 +0100
Jack Bond-Preston <jack.bond-preston@foss.arm.com> wrote:

> The mempool memory channel striding optimisation is not necessary on
> Arm platforms.
> Update the Programmer's Guide's mempool section to clarify this.
> 
> Signed-off-by: Jack Bond-Preston <jack.bond-preston@foss.arm.com>
> Reviewed-by: Wathsala Vithanage <wathsala.vithanage@arm.com>
> ---

The whole memory channels argument has been a problem from day 0 of DPDK.
There is no good way to find it from the OS, and it was never clear how much impact
it had anyway. It would simplify users experience if it was deprecated or at least
not required and rarely used.

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

* Re: [PATCH] doc: clarify mempool striding optimisation on Arm
  2024-07-17  2:25 ` Stephen Hemminger
@ 2024-07-17 10:40   ` Bruce Richardson
  0 siblings, 0 replies; 4+ messages in thread
From: Bruce Richardson @ 2024-07-17 10:40 UTC (permalink / raw)
  To: Stephen Hemminger
  Cc: Jack Bond-Preston, Andrew Rybchenko, Morten Brørup, dev,
	Wathsala Vithanage

On Tue, Jul 16, 2024 at 07:25:41PM -0700, Stephen Hemminger wrote:
> On Mon, 15 Jul 2024 15:44:20 +0100
> Jack Bond-Preston <jack.bond-preston@foss.arm.com> wrote:
> 
> > The mempool memory channel striding optimisation is not necessary on
> > Arm platforms.
> > Update the Programmer's Guide's mempool section to clarify this.
> > 
> > Signed-off-by: Jack Bond-Preston <jack.bond-preston@foss.arm.com>
> > Reviewed-by: Wathsala Vithanage <wathsala.vithanage@arm.com>
> > ---
> 
> The whole memory channels argument has been a problem from day 0 of DPDK.
> There is no good way to find it from the OS, and it was never clear how much impact
> it had anyway. It would simplify users experience if it was deprecated or at least
> not required and rarely used.

The default for mempools (at least on x86) is set to 4 which is a
reasonable value, and so specifying memory channels is not really required
for running DPDK in most cases (I never use the -n flag when running tests
myself). While I don't think we should deprecate the option, I feel it
should be removed from our examples and scripts.  Hopefully in future a
method of determining memory channels from code can be come up with that we
can use, but in the meantime using a sane default I feel is good enough.

/Bruce

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

* Re: [PATCH] doc: clarify mempool striding optimisation on Arm
  2024-07-15 14:44 [PATCH] doc: clarify mempool striding optimisation on Arm Jack Bond-Preston
  2024-07-17  2:25 ` Stephen Hemminger
@ 2024-07-29 19:46 ` Thomas Monjalon
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Monjalon @ 2024-07-29 19:46 UTC (permalink / raw)
  To: Jack Bond-Preston
  Cc: Andrew Rybchenko, Morten Brørup, dev, Wathsala Vithanage

15/07/2024 16:44, Jack Bond-Preston:
> The mempool memory channel striding optimisation is not necessary on
> Arm platforms.
> Update the Programmer's Guide's mempool section to clarify this.
> 
> Signed-off-by: Jack Bond-Preston <jack.bond-preston@foss.arm.com>
> Reviewed-by: Wathsala Vithanage <wathsala.vithanage@arm.com>
> ---
> +.. note::
> +
> +    This feature is not present for Arm systems. Modern Arm Interconnects choose the SN-F (memory
> +    channel) using a hash of memory address bits. As a result, the load is distributed evenly in all
> +    cases, including the above described, rendering this feature unnecessary.

Applied with indentation changes, thanks.




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

end of thread, other threads:[~2024-07-29 19:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-15 14:44 [PATCH] doc: clarify mempool striding optimisation on Arm Jack Bond-Preston
2024-07-17  2:25 ` Stephen Hemminger
2024-07-17 10:40   ` Bruce Richardson
2024-07-29 19:46 ` Thomas Monjalon

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).