Fastest and easiest method to share mem between two DPDK processes

Dmitry Kozlyuk dmitry.kozliuk at gmail.com
Mon Apr 4 22:52:12 CEST 2022


2022-04-04 21:48 (UTC+0200), Antonio Di Bacco:
> Il giorno lun 4 apr 2022 alle ore 18:10 Dmitry Kozlyuk <
> dmitry.kozliuk at gmail.com> ha scritto:  
> 
> > 2022-04-04 16:04 (UTC+0200), Antonio Di Bacco:  
> > > I have a Primary (Pa) and a secondary (Sa). Pa allocates memory that  
> > shares  
> > > with Sa.
> > > Now I also have another Primary (Pb). I need to allocate some memory in  
> > Pa  
> > > or Sa that has to be shared with (Pb) or the reverse. Is this a feasible
> > > configuration?  
> >
> > Please tell more about the use case.
> > Do you want to share an arbitrary block or part of DPDK memory?
> > What the shared memory contains and how it will be used w.r.t. DPDK?
> >  
> 
> The memory will contain some signal samples, we would like the samples to
> be on a hugepage (1GB) shared between Sa and Pb.
> Sa will write and Pb will read.

Have you considered memif PMD (that you are already familiar with)?
It's precisely shared memory between processes.
And a shared hugepage(s) for data is how it operates in zero-copy mode.


More information about the users mailing list