<div dir="auto">Hi Pravin, </div><div dir="auto"><br></div><div dir="auto">Both are DPDK application, so want to use DPDK Share memory i.e hugepages.</div><div dir="auto"><br></div><div dir="auto">How to share memory between two independent (Primary) application? Does memif PMD allows that ? </div><div dir="auto"><br></div><div dir="auto">Thanks,</div><div dir="auto">Kiran </div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 6, 2022 at 5:58 AM Pathak, Pravin <<a href="mailto:pravin.pathak@intel.com">pravin.pathak@intel.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">
<div lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="m_-592784815525649196WordSection1">
<p class="MsoNormal">Hi Kiran –<u></u><u></u></p>
<p class="MsoNormal">Can your application create and manage shared memory on it own without using DPDK support ?<u></u><u></u></p>
<p class="MsoNormal">Regards</p></div></div><div lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word"><div class="m_-592784815525649196WordSection1"><p class="MsoNormal"><u></u><u></u></p>
<p class="MsoNormal">Pravin<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div style="border-style:solid none none;border-top-width:1pt;padding:3pt 0in 0in;border-top-color:rgb(225,225,225)">
<p class="MsoNormal"><b>From:</b> Kiran Khatke <<a href="mailto:kirankhatke23may@gmail.com" target="_blank">kirankhatke23may@gmail.com</a>> <br>
<b>Sent:</b> Monday, June 6, 2022 2:26 AM<br>
<b>To:</b> <a href="mailto:users@dpdk.org" target="_blank">users@dpdk.org</a><br>
<b>Subject:</b> Memory sharing between two primary processes<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p style="margin:0in"><span style="color:rgb(49,49,49)">Hi,<u></u><u></u></span></p>
<p style="margin:0in;font-size:1rem;word-spacing:1px"><span style="color:rgb(49,49,49)"><u></u> <u></u></span></p>
<p style="margin:0in;font-size:1rem;word-spacing:1px"><span style="color:rgb(49,49,49)">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).<u></u><u></u></span></p>
<p style="margin:0in;word-spacing:1px"><span style="color:rgb(49,49,49)"> <u></u><u></u></span></p>
<p style="margin:0in;font-size:1rem;word-spacing:1px"><span style="color:rgb(49,49,49)">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.<u></u><u></u></span></p>
<p style="margin:0in;word-spacing:1px"><span style="color:rgb(49,49,49)"> <u></u><u></u></span></p>
<p style="margin:0in;font-size:1rem;word-spacing:1px"><span style="color:rgb(49,49,49)">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. <u></u><u></u></span></p>
<p style="margin:0in;font-size:1rem;word-spacing:1px"><span style="color:rgb(49,49,49)">Do you have any comments about memif performance ? Are there better options over memif to share memory between two primaries ?<u></u><u></u></span></p>
<p style="margin:0in;font-size:1rem;word-spacing:1px"><span style="color:rgb(49,49,49)"><u></u> <u></u></span></p>
<p style="margin:0in;font-size:1rem;word-spacing:1px"><span style="color:rgb(49,49,49)">Thanks ,<u></u><u></u></span></p>
<p style="margin:0in;font-size:1rem;word-spacing:1px"><span style="color:rgb(49,49,49)">Kiran <u></u><u></u></span></p>
</div>
</div>
</div>
</blockquote></div></div>