From: Stephen Hemminger <stephen@networkplumber.org>
To: Bruce Richardson <bruce.richardson@intel.com>
Cc: dev@dpdk.org
Subject: Re: [PATCH v3 0/2] Enable apps to use external memory as native
Date: Mon, 18 Sep 2023 09:44:18 -0700 [thread overview]
Message-ID: <20230918094418.5448052f@hermes.local> (raw)
In-Reply-To: <20230918163206.1010611-1-bruce.richardson@intel.com>
On Mon, 18 Sep 2023 17:32:04 +0100
Bruce Richardson <bruce.richardson@intel.com> wrote:
> Sometimes apps (or perhaps DPDK driver components) may want to allow
> use of "external" i.e. non EAL allocated, memory as though it were
> standard DPDK memory. This patchset provides the ability to do this,
> by: firstly, adding an explicit flag to indicate non-EAL memory,
> rather than relying on the socket_id implicitly, and then secondly,
> allowing heaps to be swapped, so an external heap can be used as the
> default heap for socket 0 or 1, etc.
>
> V3:
> * Expand to 2 patch set, adding patch to tag external memory
> explicitly, before adding the swap function
> * Add locks to improve thread safety of the swap opperation.
> * Add additional notes to function to clarify usage.
>
> V2:
> * Fix doxygen comment issue on doc builds
>
> Bruce Richardson (2):
> eal: add flag to indicate non-EAL malloc heaps
> eal: allow swapping of malloc heaps
>
> lib/eal/common/malloc_heap.c | 46 ++++++++++++++++++++++++++++--------
> lib/eal/common/malloc_heap.h | 1 +
> lib/eal/common/malloc_mp.c | 5 ++--
> lib/eal/common/rte_malloc.c | 14 ++++++-----
> lib/eal/include/rte_malloc.h | 34 ++++++++++++++++++++++++++
> lib/eal/version.map | 2 ++
> 6 files changed, 83 insertions(+), 19 deletions(-)
>
> --
> 2.39.2
>
Series-Acked-by: Stephen Hemminger <stephen@networkplumber.org>
prev parent reply other threads:[~2023-09-18 16:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-15 12:27 [PATCH] eal: allow swapping of malloc heaps Bruce Richardson
2023-09-15 13:10 ` [PATCH v2] " Bruce Richardson
2023-09-15 15:43 ` [PATCH] " Stephen Hemminger
2023-09-18 16:32 ` [PATCH v3 0/2] Enable apps to use external memory as native Bruce Richardson
2023-09-18 16:32 ` [PATCH v3 1/2] eal: add flag to indicate non-EAL malloc heaps Bruce Richardson
2023-09-18 16:32 ` [PATCH v3 2/2] eal: allow swapping of " Bruce Richardson
2023-09-18 16:44 ` Stephen Hemminger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230918094418.5448052f@hermes.local \
--to=stephen@networkplumber.org \
--cc=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).