<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font face="verdana, sans-serif">I am running DPDK application inside docker container bound to a Numa Node.</font></div><div dir="ltr"><font face="verdana, sans-serif">The command to bring up the docker container, I am using the command below:</font><div><div><font color="#0000ff" style="background-color:rgb(255,255,0)" face="monospace">docker run -itd \</font></div><div><font color="#0000ff" style="background-color:rgb(255,255,0)" face="monospace">    --privileged \</font></div><div><font color="#0000ff" style="background-color:rgb(255,255,0)" face="monospace">    --name ${DOCKER_NAME} \</font></div><div><font color="#0000ff" style="background-color:rgb(255,255,0)" face="monospace">    --rm \</font></div><div><font color="#0000ff" style="background-color:rgb(255,255,0)" face="monospace">    --network=${DOCKER_NETWORK} \</font></div><div><font color="#0000ff" style="background-color:rgb(255,255,0)" face="monospace">    --cpuset-cpus="${CPU_SET}" \</font></div><div><font color="#0000ff" style="background-color:rgb(255,255,0)" face="monospace">    -e TEST_INTERFACE="${INTERFACE}" \</font></div><div><font color="#0000ff" style="background-color:rgb(255,255,0)" face="monospace">    -e DPDK_FILE_PREFIX="${PREFIX}" \</font></div><div><font color="#0000ff" style="background-color:rgb(255,255,0)" face="monospace">    -e DPDK_HUGE_MEM="${HUGE_MEM}" \</font></div><div><font color="#0000ff" style="background-color:rgb(255,255,0)" face="monospace">    -v /sys/bus/pci/drivers:/sys/bus/pci/drivers \</font></div><div><font color="#0000ff" style="background-color:rgb(255,255,0)" face="monospace">    -v /sys/kernel/mm/hugepages:/sys/kernel/mm/hugepages \</font></div><div><font color="#0000ff" style="background-color:rgb(255,255,0)" face="monospace">    -v /sys/devices/system/node:/sys/devices/system/node \</font></div><div><font color="#0000ff" style="background-color:rgb(255,255,0)" face="monospace">    -v /dev/hugepages:/dev/hugepages \</font></div><div><font color="#0000ff" style="background-color:rgb(255,255,0)" face="monospace">    ${DOCKER_IMAGE}</font></div></div><div><font face="verdana, sans-serif"><br></font></div><div><font face="verdana, sans-serif">Once the docker comes up, the application executes the following steps:</font></div><div><font face="verdana, sans-serif">1. cleans up residual </font>hugepage  <font color="#0000ff"># <span style="background-color:rgb(255,255,0)"><font face="monospace"><b>./dpdk-hugepages.py -c</b></font></span></font></div><div><font face="verdana, sans-serif">2. unmounts hugepage filesystem <font color="#0000ff"># </font></font><font face="monospace" style="background-color:rgb(255,255,0)" color="#0000ff"><b>./dpdk-hugepages.py -u</b></font></div><div><span style="font-family:verdana,sans-serif">3. sets up hugepage size, reserves hugepage and mounts hugepage filesystem <font color="#0000ff"># </font></span><font face="monospace" style="background-color:rgb(255,255,0)" color="#0000ff"><b>./dpdk-hugepages.py -p 1G -r <some-value>G -m</b></font></div><div>4. does the DPDK EAL init.</div><div><br></div><div>During EAL init, I am getting an error: <b style="background-color:rgb(234,153,153)">EAL: Not enough memory available on socket 1! Requested: <specified-value>, available: 0MB</b></div><div><br></div><div><span style="font-family:verdana,sans-serif">As per my understanding - inside the docker container <b>step-2</b> unmounts /dev/hugepages and with <b>step-3</b> it is not properly mounted back to /dev/hugepages though the command does not give any explicit error with mount.</span><b style="background-color:rgb(234,153,153)"><br></b></div><div><span style="font-family:verdana,sans-serif">To test my understanding -</span><span style="font-family:verdana,sans-serif"> I created a file in host /dev/hugepages and I could see/access the file inside docker. When I executed <b>step-2</b> and <b>step-3</b>, /dev/hugepages content is not visible from the docker container. </span><span style="font-family:verdana,sans-serif">Hence it looks to me <b>step-2</b> is not required at all.<br><br>Please correct me if I am wrong and also mention the correct steps to unmount/mount hugepages inside docker.</span></div><div><span style="font-family:verdana,sans-serif"><br></span></div><div><span style="font-family:verdana,sans-serif">Regards,</span></div><div><span style="font-family:verdana,sans-serif">Nirmal Sarkar</span></div><div><span style="font-family:verdana,sans-serif"><br></span></div><div><span style="font-family:verdana,sans-serif"><br></span></div><div><span style="font-family:verdana,sans-serif"><br></span></div><div><b style="background-color:rgb(234,153,153)"><br></b></div></div></div></div></div></div></div></div></div>