* Memory sharing between two primary processes @ 2022-06-06 6:26 Kiran Khatke 2022-06-06 12:58 ` Pathak, Pravin 0 siblings, 1 reply; 7+ messages in thread From: Kiran Khatke @ 2022-06-06 6:26 UTC (permalink / raw) To: users [-- Attachment #1: Type: text/plain, Size: 794 bytes --] Hi, Per DPDK Multiprocess, we know that, it is possible to share memory(hugepages) between a primary and secondary Process. Primary process allocates the memory and that is accessible by the secondary (both are using same "--file-prefix=" parameter). There is a need in our application, to have two primary processes (started with different file-prefix) and would like to know the options - To share memory (hugepage) between two primaries and which can give us better throughputs. During exploration, got to know about memif PMD, which allows for DPDK and any other client using memif (DPDK, libmemif) to communicate over shared memory. Do you have any comments about memif performance ? Are there better options over memif to share memory between two primaries ? Thanks , Kiran [-- Attachment #2: Type: text/html, Size: 2407 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Memory sharing between two primary processes 2022-06-06 6:26 Memory sharing between two primary processes Kiran Khatke @ 2022-06-06 12:58 ` Pathak, Pravin 2022-06-06 13:24 ` Kiran Khatke 0 siblings, 1 reply; 7+ messages in thread From: Pathak, Pravin @ 2022-06-06 12:58 UTC (permalink / raw) To: Kiran Khatke, users [-- Attachment #1: Type: text/plain, Size: 1107 bytes --] Hi Kiran – Can your application create and manage shared memory on it own without using DPDK support ? Regards Pravin From: Kiran Khatke <kirankhatke23may@gmail.com> Sent: Monday, June 6, 2022 2:26 AM To: users@dpdk.org Subject: Memory sharing between two primary processes Hi, Per DPDK Multiprocess, we know that, it is possible to share memory(hugepages) between a primary and secondary Process. Primary process allocates the memory and that is accessible by the secondary (both are using same "--file-prefix=" parameter). There is a need in our application, to have two primary processes (started with different file-prefix) and would like to know the options - To share memory (hugepage) between two primaries and which can give us better throughputs. During exploration, got to know about memif PMD, which allows for DPDK and any other client using memif (DPDK, libmemif) to communicate over shared memory. Do you have any comments about memif performance ? Are there better options over memif to share memory between two primaries ? Thanks , Kiran [-- Attachment #2: Type: text/html, Size: 4047 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Memory sharing between two primary processes 2022-06-06 12:58 ` Pathak, Pravin @ 2022-06-06 13:24 ` Kiran Khatke 2022-06-06 13:53 ` Pathak, Pravin 0 siblings, 1 reply; 7+ messages in thread From: Kiran Khatke @ 2022-06-06 13:24 UTC (permalink / raw) To: Pathak, Pravin; +Cc: users [-- Attachment #1: Type: text/plain, Size: 1508 bytes --] Hi Pravin, Both are DPDK application, so want to use DPDK Share memory i.e hugepages. How to share memory between two independent (Primary) application? Does memif PMD allows that ? Thanks, Kiran On Mon, Jun 6, 2022 at 5:58 AM Pathak, Pravin <pravin.pathak@intel.com> wrote: > Hi Kiran – > > Can your application create and manage shared memory on it own without > using DPDK support ? > > Regards > > Pravin > > > > *From:* Kiran Khatke <kirankhatke23may@gmail.com> > *Sent:* Monday, June 6, 2022 2:26 AM > *To:* users@dpdk.org > *Subject:* Memory sharing between two primary processes > > > > Hi, > > > > Per DPDK Multiprocess, we know that, it is possible to share > memory(hugepages) between a primary and secondary Process. Primary process > allocates the memory and that is accessible by the secondary (both are > using same "--file-prefix=" parameter). > > > > There is a need in our application, to have two primary processes (started > with different file-prefix) and would like to know the options - To share > memory (hugepage) between two primaries and which can give us better > throughputs. > > > > During exploration, got to know about memif PMD, which allows for DPDK and > any other client using memif (DPDK, libmemif) to communicate over shared > memory. > > Do you have any comments about memif performance ? Are there better > options over memif to share memory between two primaries ? > > > > Thanks , > > Kiran > [-- Attachment #2: Type: text/html, Size: 3983 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Memory sharing between two primary processes 2022-06-06 13:24 ` Kiran Khatke @ 2022-06-06 13:53 ` Pathak, Pravin 2022-06-06 13:56 ` Kiran Khatke 0 siblings, 1 reply; 7+ messages in thread From: Pathak, Pravin @ 2022-06-06 13:53 UTC (permalink / raw) To: Kiran Khatke; +Cc: users [-- Attachment #1: Type: text/plain, Size: 2264 bytes --] Hi Kiran – It should be possible. DPDK documentation clearly shows two primary processes using memif to communicate. 32.2.1. Example: testpmd In this example we run two instances of testpmd application and transmit packets over memif. First create master interface: #./build/app/testpmd -l 0-1 --proc-type=primary --file-prefix=pmd1 --vdev=net_memif,role=master -- -i Now create slave interface (master must be already running so the slave will connect): #./build/app/testpmd -l 2-3 --proc-type=primary --file-prefix=pmd2 --vdev=net_memif -- -i From: Kiran Khatke <kirankhatke23may@gmail.com> Sent: Monday, June 6, 2022 9:24 AM To: Pathak, Pravin <pravin.pathak@intel.com> Cc: users@dpdk.org Subject: Re: Memory sharing between two primary processes Hi Pravin, Both are DPDK application, so want to use DPDK Share memory i.e hugepages. How to share memory between two independent (Primary) application? Does memif PMD allows that ? Thanks, Kiran On Mon, Jun 6, 2022 at 5:58 AM Pathak, Pravin <pravin.pathak@intel.com<mailto:pravin.pathak@intel.com>> wrote: Hi Kiran – Can your application create and manage shared memory on it own without using DPDK support ? Regards Pravin From: Kiran Khatke <kirankhatke23may@gmail.com<mailto:kirankhatke23may@gmail.com>> Sent: Monday, June 6, 2022 2:26 AM To: users@dpdk.org<mailto:users@dpdk.org> Subject: Memory sharing between two primary processes Hi, Per DPDK Multiprocess, we know that, it is possible to share memory(hugepages) between a primary and secondary Process. Primary process allocates the memory and that is accessible by the secondary (both are using same "--file-prefix=" parameter). There is a need in our application, to have two primary processes (started with different file-prefix) and would like to know the options - To share memory (hugepage) between two primaries and which can give us better throughputs. During exploration, got to know about memif PMD, which allows for DPDK and any other client using memif (DPDK, libmemif) to communicate over shared memory. Do you have any comments about memif performance ? Are there better options over memif to share memory between two primaries ? Thanks , Kiran [-- Attachment #2: Type: text/html, Size: 8795 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Memory sharing between two primary processes 2022-06-06 13:53 ` Pathak, Pravin @ 2022-06-06 13:56 ` Kiran Khatke 2022-06-08 0:21 ` Pathak, Pravin 0 siblings, 1 reply; 7+ messages in thread From: Kiran Khatke @ 2022-06-06 13:56 UTC (permalink / raw) To: Pathak, Pravin; +Cc: users [-- Attachment #1: Type: text/plain, Size: 2674 bytes --] Thanks Pravin. Do you any comments over memif PMD performance? Are there any better options than memif PMD in terms of performance? Kiran On Mon, Jun 6, 2022 at 6:53 AM Pathak, Pravin <pravin.pathak@intel.com> wrote: > Hi Kiran – > > It should be possible. DPDK documentation clearly shows two primary > processes using memif to communicate. > > > > *32.2.1. Example: testpmd* > > In this example we run two instances of testpmd application and transmit > packets over memif. > > First create master interface: > > #./build/app/testpmd -l 0-1 *--proc-type=primary --file-prefix=pmd1* > --vdev=net_memif,role=master -- -i > > > > Now create slave interface (master must be already running so the slave > will connect): > > #./build/app/testpmd -l 2-3 *--proc-type=primary --file-prefix=pmd2* > --vdev=net_memif -- -i > > > > > > *From:* Kiran Khatke <kirankhatke23may@gmail.com> > *Sent:* Monday, June 6, 2022 9:24 AM > *To:* Pathak, Pravin <pravin.pathak@intel.com> > *Cc:* users@dpdk.org > *Subject:* Re: Memory sharing between two primary processes > > > > Hi Pravin, > > > > Both are DPDK application, so want to use DPDK Share memory i.e hugepages. > > > > How to share memory between two independent (Primary) application? Does > memif PMD allows that ? > > > > Thanks, > > Kiran > > > > On Mon, Jun 6, 2022 at 5:58 AM Pathak, Pravin <pravin.pathak@intel.com> > wrote: > > Hi Kiran – > > Can your application create and manage shared memory on it own without > using DPDK support ? > > Regards > > Pravin > > > > *From:* Kiran Khatke <kirankhatke23may@gmail.com> > *Sent:* Monday, June 6, 2022 2:26 AM > *To:* users@dpdk.org > *Subject:* Memory sharing between two primary processes > > > > Hi, > > > > Per DPDK Multiprocess, we know that, it is possible to share > memory(hugepages) between a primary and secondary Process. Primary process > allocates the memory and that is accessible by the secondary (both are > using same "--file-prefix=" parameter). > > > > There is a need in our application, to have two primary processes (started > with different file-prefix) and would like to know the options - To share > memory (hugepage) between two primaries and which can give us better > throughputs. > > > > During exploration, got to know about memif PMD, which allows for DPDK and > any other client using memif (DPDK, libmemif) to communicate over shared > memory. > > Do you have any comments about memif performance ? Are there better > options over memif to share memory between two primaries ? > > > > Thanks , > > Kiran > > [-- Attachment #2: Type: text/html, Size: 8769 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Memory sharing between two primary processes 2022-06-06 13:56 ` Kiran Khatke @ 2022-06-08 0:21 ` Pathak, Pravin 2022-06-08 18:54 ` Kiran Khatke 0 siblings, 1 reply; 7+ messages in thread From: Pathak, Pravin @ 2022-06-08 0:21 UTC (permalink / raw) To: Kiran Khatke; +Cc: users [-- Attachment #1: Type: text/plain, Size: 3117 bytes --] I did not use memif so can not comment on its performance. It all also depends upon what kind of communication is needed between processes. Is it message based or simple shared memory structure. You should be able to allocate memory from hugepages and setup shared area. Pravin From: Kiran Khatke <kirankhatke23may@gmail.com> Sent: Monday, June 6, 2022 9:56 AM To: Pathak, Pravin <pravin.pathak@intel.com> Cc: users@dpdk.org Subject: Re: Memory sharing between two primary processes Thanks Pravin. Do you any comments over memif PMD performance? Are there any better options than memif PMD in terms of performance? Kiran On Mon, Jun 6, 2022 at 6:53 AM Pathak, Pravin <pravin.pathak@intel.com<mailto:pravin.pathak@intel.com>> wrote: Hi Kiran – It should be possible. DPDK documentation clearly shows two primary processes using memif to communicate. 32.2.1. Example: testpmd In this example we run two instances of testpmd application and transmit packets over memif. First create master interface: #./build/app/testpmd -l 0-1 --proc-type=primary --file-prefix=pmd1 --vdev=net_memif,role=master -- -i Now create slave interface (master must be already running so the slave will connect): #./build/app/testpmd -l 2-3 --proc-type=primary --file-prefix=pmd2 --vdev=net_memif -- -i From: Kiran Khatke <kirankhatke23may@gmail.com<mailto:kirankhatke23may@gmail.com>> Sent: Monday, June 6, 2022 9:24 AM To: Pathak, Pravin <pravin.pathak@intel.com<mailto:pravin.pathak@intel.com>> Cc: users@dpdk.org<mailto:users@dpdk.org> Subject: Re: Memory sharing between two primary processes Hi Pravin, Both are DPDK application, so want to use DPDK Share memory i.e hugepages. How to share memory between two independent (Primary) application? Does memif PMD allows that ? Thanks, Kiran On Mon, Jun 6, 2022 at 5:58 AM Pathak, Pravin <pravin.pathak@intel.com<mailto:pravin.pathak@intel.com>> wrote: Hi Kiran – Can your application create and manage shared memory on it own without using DPDK support ? Regards Pravin From: Kiran Khatke <kirankhatke23may@gmail.com<mailto:kirankhatke23may@gmail.com>> Sent: Monday, June 6, 2022 2:26 AM To: users@dpdk.org<mailto:users@dpdk.org> Subject: Memory sharing between two primary processes Hi, Per DPDK Multiprocess, we know that, it is possible to share memory(hugepages) between a primary and secondary Process. Primary process allocates the memory and that is accessible by the secondary (both are using same "--file-prefix=" parameter). There is a need in our application, to have two primary processes (started with different file-prefix) and would like to know the options - To share memory (hugepage) between two primaries and which can give us better throughputs. During exploration, got to know about memif PMD, which allows for DPDK and any other client using memif (DPDK, libmemif) to communicate over shared memory. Do you have any comments about memif performance ? Are there better options over memif to share memory between two primaries ? Thanks , Kiran [-- Attachment #2: Type: text/html, Size: 12450 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Memory sharing between two primary processes 2022-06-08 0:21 ` Pathak, Pravin @ 2022-06-08 18:54 ` Kiran Khatke 0 siblings, 0 replies; 7+ messages in thread From: Kiran Khatke @ 2022-06-08 18:54 UTC (permalink / raw) To: Pathak, Pravin; +Cc: users [-- Attachment #1: Type: text/plain, Size: 3403 bytes --] Thanks Pravin, will setup shared area. On Tue, Jun 7, 2022 at 5:21 PM Pathak, Pravin <pravin.pathak@intel.com> wrote: > I did not use memif so can not comment on its performance. It all also > depends upon what kind of communication is needed between processes. > > Is it message based or simple shared memory structure. You should be able > to allocate memory from hugepages and setup shared area. > > > > Pravin > > > > *From:* Kiran Khatke <kirankhatke23may@gmail.com> > *Sent:* Monday, June 6, 2022 9:56 AM > *To:* Pathak, Pravin <pravin.pathak@intel.com> > *Cc:* users@dpdk.org > *Subject:* Re: Memory sharing between two primary processes > > > > > > Thanks Pravin. > > > > Do you any comments over memif PMD performance? > > > > Are there any better options than memif PMD in terms of performance? > > > > Kiran > > > > > > On Mon, Jun 6, 2022 at 6:53 AM Pathak, Pravin <pravin.pathak@intel.com> > wrote: > > Hi Kiran – > > It should be possible. DPDK documentation clearly shows two primary > processes using memif to communicate. > > > > *32.2.1. Example: testpmd* > > In this example we run two instances of testpmd application and transmit > packets over memif. > > First create master interface: > > #./build/app/testpmd -l 0-1 *--proc-type=primary --file-prefix=pmd1* > --vdev=net_memif,role=master -- -i > > > > Now create slave interface (master must be already running so the slave > will connect): > > #./build/app/testpmd -l 2-3 *--proc-type=primary --file-prefix=pmd2* > --vdev=net_memif -- -i > > > > > > *From:* Kiran Khatke <kirankhatke23may@gmail.com> > *Sent:* Monday, June 6, 2022 9:24 AM > *To:* Pathak, Pravin <pravin.pathak@intel.com> > *Cc:* users@dpdk.org > *Subject:* Re: Memory sharing between two primary processes > > > > Hi Pravin, > > > > Both are DPDK application, so want to use DPDK Share memory i.e hugepages. > > > > How to share memory between two independent (Primary) application? Does > memif PMD allows that ? > > > > Thanks, > > Kiran > > > > On Mon, Jun 6, 2022 at 5:58 AM Pathak, Pravin <pravin.pathak@intel.com> > wrote: > > Hi Kiran – > > Can your application create and manage shared memory on it own without > using DPDK support ? > > Regards > > Pravin > > > > *From:* Kiran Khatke <kirankhatke23may@gmail.com> > *Sent:* Monday, June 6, 2022 2:26 AM > *To:* users@dpdk.org > *Subject:* Memory sharing between two primary processes > > > > Hi, > > > > Per DPDK Multiprocess, we know that, it is possible to share > memory(hugepages) between a primary and secondary Process. Primary process > allocates the memory and that is accessible by the secondary (both are > using same "--file-prefix=" parameter). > > > > There is a need in our application, to have two primary processes (started > with different file-prefix) and would like to know the options - To share > memory (hugepage) between two primaries and which can give us better > throughputs. > > > > During exploration, got to know about memif PMD, which allows for DPDK and > any other client using memif (DPDK, libmemif) to communicate over shared > memory. > > Do you have any comments about memif performance ? Are there better > options over memif to share memory between two primaries ? > > > > Thanks , > > Kiran > > [-- Attachment #2: Type: text/html, Size: 10376 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2022-06-08 18:55 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-06-06 6:26 Memory sharing between two primary processes Kiran Khatke 2022-06-06 12:58 ` Pathak, Pravin 2022-06-06 13:24 ` Kiran Khatke 2022-06-06 13:53 ` Pathak, Pravin 2022-06-06 13:56 ` Kiran Khatke 2022-06-08 0:21 ` Pathak, Pravin 2022-06-08 18:54 ` Kiran Khatke
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).