DPDK usage discussions
 help / color / mirror / Atom feed
* DPDK Memory Management Help
@ 2024-10-01 12:25 Alan Beadle
  2024-10-01 14:12 ` David Marchand
  0 siblings, 1 reply; 2+ messages in thread
From: Alan Beadle @ 2024-10-01 12:25 UTC (permalink / raw)
  To: users

Hi everyone,

I'm working with DPDK and could use some advice about memory
management of the DPDK heap.

I need to prevent DPDK from freeing the rte_mbuf buffers once the
corresponding packets have been sent with rte_eth_tx_burst(). My
application has local readers as well, and so I want to keep that data
around for them to read via shared memory. I would prefer to rely on
explicit calls to free any of these buffers. I can find plenty of
sources about rte_eth_tx_burst() freeing messages once they are sent,
but cannot find a way to override this behavior, or any mention of an
alternate call to send without freeing.

This would let me avoid copying the data into a separate buffer just
for local readers and to let them read from the same buffers that DPDK
already requires., leading to a significant performance gain (less
memcpy). This seems like something that should be possible *without*
modifying DPDK, but I haven't figured out how yet. I know that I would
need to take care that the buffers are not freed prior to sending.

Thanks for any advice,
-Alan

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

end of thread, other threads:[~2024-10-01 14:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-01 12:25 DPDK Memory Management Help Alan Beadle
2024-10-01 14:12 ` David Marchand

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