DPDK usage discussions
 help / color / mirror / Atom feed
* Fastest and easiest method to share mem between two DPDK processes
@ 2022-04-04 14:04 Antonio Di Bacco
  2022-04-04 16:10 ` Dmitry Kozlyuk
  0 siblings, 1 reply; 4+ messages in thread
From: Antonio Di Bacco @ 2022-04-04 14:04 UTC (permalink / raw)
  To: users

[-- 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 --]

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

* Re: Fastest and easiest method to share mem between two DPDK processes
  2022-04-04 14:04 Fastest and easiest method to share mem between two DPDK processes Antonio Di Bacco
@ 2022-04-04 16:10 ` Dmitry Kozlyuk
  2022-04-04 19:48   ` Antonio Di Bacco
  0 siblings, 1 reply; 4+ messages in thread
From: Dmitry Kozlyuk @ 2022-04-04 16:10 UTC (permalink / raw)
  To: Antonio Di Bacco; +Cc: users

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?

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

* Re: Fastest and easiest method to share mem between two DPDK processes
  2022-04-04 16:10 ` Dmitry Kozlyuk
@ 2022-04-04 19:48   ` Antonio Di Bacco
  2022-04-04 20:52     ` Dmitry Kozlyuk
  0 siblings, 1 reply; 4+ messages in thread
From: Antonio Di Bacco @ 2022-04-04 19:48 UTC (permalink / raw)
  To: Dmitry Kozlyuk; +Cc: users

[-- 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 --]

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

* Re: Fastest and easiest method to share mem between two DPDK processes
  2022-04-04 19:48   ` Antonio Di Bacco
@ 2022-04-04 20:52     ` Dmitry Kozlyuk
  0 siblings, 0 replies; 4+ messages in thread
From: Dmitry Kozlyuk @ 2022-04-04 20:52 UTC (permalink / raw)
  To: Antonio Di Bacco; +Cc: users

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.

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

end of thread, other threads:[~2022-04-04 20:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-04 14:04 Fastest and easiest method to share mem between two DPDK processes Antonio Di Bacco
2022-04-04 16:10 ` Dmitry Kozlyuk
2022-04-04 19:48   ` Antonio Di Bacco
2022-04-04 20:52     ` Dmitry Kozlyuk

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