Using Sharable Mempools for Zero-copy Sharing Between Processes -
summary
Proposes zero-copy sharing of mbufs between independent DPDK processes without DPDK multi-process by allocating a separate shared block (using memfd), registering it with xmem or a malloc-heap on one side, cloning per-process rte_mempool structs and relying on a mempool cache per-process so pointer translation happens only on ring enqueue/dequeue. Implements a mempool driver to translate pointers-to-offsets on DQ, registers an ethdev/bus shim, and demonstrates it with testpmd unmodified running in a container that needs no hugepages.
AI-written summary · about
chapters (14)
- 0:00Introduction and speaker background
- 1:25Problem statement and use cases
- 4:59Current solutions and limitations
- 7:11Shared memory allocation approach
- 11:29Memory pool creation challenges
- 13:18Cloning mempool structures
- 16:30Pointer translation strategies
- 17:55Adjusting mbuf internal pointers
- 23:28Passing buffers between processes
- 25:40Extending to other memory pools
- 28:35Suggested improvements to DPDK
- 31:06Prototype implementation details
- 34:40Benefits and potential use cases
- 35:01Q&A session begins
