<div dir="ltr"><div>Cliff,</div><div><br></div><div>Many thanks for your help!</div><div>Mapping /var/run/dpdk into both containers as you said made it possible to use the multi-process feature in Docker containers.</div><div><br></div><div>Regards<br></div><div>Staffan<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Den tors 18 nov. 2021 kl 07:47 skrev Li Feng <<a href="mailto:fengli@smartx.com">fengli@smartx.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Thu, Nov 18, 2021 at 2:23 PM Cliff Burdick <<a href="mailto:shaklee3@gmail.com" target="_blank">shaklee3@gmail.com</a>> wrote:<br>
><br>
> I don't remember that being a problem. Are you starting them with two different file prefixes and mounting the hugepages directory into both containers?<br>
><br>
I'm running the spdk processes, so the hugepage files are created with<br>
prefix "spdk-<PID>", both containers are mounting the same<br>
/dev/hugepages.<br>
<br>
<br>
><br>
> On Wed, Nov 17, 2021, 22:20 Li Feng <<a href="mailto:fengli@smartx.com" target="_blank">fengli@smartx.com</a>> wrote:<br>
>><br>
>> On Thu, Nov 18, 2021 at 2:11 PM Cliff Burdick <<a href="mailto:shaklee3@gmail.com" target="_blank">shaklee3@gmail.com</a>> wrote:<br>
>> ><br>
>> > Yes. Try mapping the dpdk metadata directory (/var/run/dpdk) into both containers from the host. You should be able to do the normal dual process methods.<br>
>> ><br>
>> By the way, if I want to run two separate dpdk processes in two<br>
>> different dockers, what should I do?<br>
>> e.g. Running two processes: examples/dpdk-mp_server<br>
>> These two dockers have mapped the same /dev/hugepages directories.<br>
>> I have tested, the dpdk will crash because the hugepages are mixed.<br>
>><br>
>> Thanks.<br>
>> ><br>
>> > On Wed, Nov 17, 2021, 05:58 Staffan Wiklund <<a href="mailto:staffan491@gmail.com" target="_blank">staffan491@gmail.com</a>> wrote:<br>
>> >><br>
>> >> Hello<br>
>> >><br>
>> >> I wonder if it is possible to use the DPDK multi-process feature in Docker containers?<br>
>> >><br>
>> >> That is, can a DPDK application execute in a Docker container and share its<br>
>> >> DPDK memory with another DPDK application executing in another Docker container<br>
>> >> using the DPDK multi-process feature?<br>
>> >><br>
>> >> For example if the DPDK example mp_server executes in one Docker container:<br>
>> >> <build_dir>/examples/dpdk-mp_server -l 1-2 -n 4 -- -p 3 -n 2<br>
>> >><br>
>> >> and the DPDK example mp_client executes in another Docker container:<br>
>> >><br>
>> >> <build_dir>/examples/dpdk-mp_client -l 3 -n 4 --proc-type=auto -- -n 0<br>
>> >><br>
>> >> Is this possible to implement?<br>
>> >><br>
>> >> Thanks<br>
>> >> Staffan<br>
>> >><br>
>> >><br>
</blockquote></div>