[-- Attachment #1: Type: text/plain, Size: 248 bytes --] 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? [-- Attachment #2: Type: text/html, Size: 281 bytes --]
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?
[-- Attachment #1: Type: text/plain, Size: 753 bytes --] Il giorno lun 4 apr 2022 alle ore 18:10 Dmitry Kozlyuk < dmitry.kozliuk@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. [-- Attachment #2: Type: text/html, Size: 1195 bytes --]
2022-04-04 21:48 (UTC+0200), Antonio Di Bacco:
> Il giorno lun 4 apr 2022 alle ore 18:10 Dmitry Kozlyuk <
> dmitry.kozliuk@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.