Re: [README]:Running DPDK in a LXC-based Container
From: Pushpasis Sarkar <hidden>
Date: 2016-02-11 16:19:50
Hi Bruce, Thanks a lot for pointing it out.. Yes this is exactly what I was facing.. If I have got it right the solution to my problem should be --file-prefix and -m (--socket-mem) options. Best Regards, -Pushpasis On Thu, Feb 11, 2016 at 6:38 PM, Bruce Richardson < bruce.richardson@intel.com> wrote:
[image: Boxbe] <https://www.boxbe.com/overview> Bruce Richardson ( bruce.richardson@intel.com) is not on your Guest List <https://www.boxbe.com/approved-list?tc_serial=24341194751&tc_rand=193289084&utm_source=stf&utm_medium=email&utm_campaign=ANNO_MWTP&utm_content=001&token=pogEWyVcHKeztbfIMXyh7LB6YVKH6X6ZIhzzgOYsWCOwbGS2EFRXhhm5SuzLCNG5&key=zMUKncrojx%2Fo8PerE9lyAO6NLk3c7xLzHKAzeRsfbxk%3D> | Approve sender <https://www.boxbe.com/anno?tc_serial=24341194751&tc_rand=193289084&utm_source=stf&utm_medium=email&utm_campaign=ANNO_MWTP&utm_content=001&token=pogEWyVcHKeztbfIMXyh7LB6YVKH6X6ZIhzzgOYsWCOwbGS2EFRXhhm5SuzLCNG5&key=zMUKncrojx%2Fo8PerE9lyAO6NLk3c7xLzHKAzeRsfbxk%3D> | Approve domain <https://www.boxbe.com/anno?tc_serial=24341194751&tc_rand=193289084&utm_source=stf&utm_medium=email&utm_campaign=ANNO_MWTP&utm_content=001&dom&token=pogEWyVcHKeztbfIMXyh7LB6YVKH6X6ZIhzzgOYsWCOwbGS2EFRXhhm5SuzLCNG5&key=zMUKncrojx%2Fo8PerE9lyAO6NLk3c7xLzHKAzeRsfbxk%3D> On Thu, Feb 11, 2016 at 06:26:10PM +0530, Pushpasis Sarkar wrote:quoted
Hi Alejandro, Thanks for the response. I tried the --file-prefix option.. But its the same issue.. :( Looks like the --file-prefix option only determines the name of the pages to be created under /mnt/huge/. I will try the --huge-dir option as well and see if I can do anythingwithquoted
it or not...DPDK scans the mounted filesystems to determine the directory where hugetlbfs is mounted, and uses that directory. If you have multiple hugetlbfs mount points then you can use --huge-dir to select just one of them. However, that's probably not what you want, unless you have multiple hugepage sizes (e.g. 1G and 2M) and want one app to use one size, and the other app to use the other size. If you use --file-prefix to specify different prefixes for the different apps, you almost certainly also need to use "-m" or "--socket-mem" flags to limit the amount of memory each process uses. Without that option the first app to run will use all the hugepage memory, leaving none for the other one. Please see also the section "Running Multiple Independent DPDK Applications" section of the Programmer's Guide in the DPDK documentation: http://dpdk.org/doc/guides/prog_guide/multi_proc_support.html#running-multiple-independent-dpdk-applications Regards. /Brucequoted
Thanks and Regards, Pushpasis On Thu, Feb 11, 2016 at 5:34 PM, Alejandro Lucero < alejandro.lucero@netronome.com> wrote:quoted
[image: Boxbe] <https://www.boxbe.com/overview> Alejandro Lucero ( alejandro.lucero@netronome.com) is not on your Guest List <https://www.boxbe.com/approved-list?tc_serial=24340454778&tc_rand=1758595516&utm_source=stf&utm_medium=email&utm_campaign=ANNO_MWTP&utm_content=001&token=d5AB60jxM3mp6UGnoaT1GyqDwTwwrUUOmC2KRJv2v5G6Yxmpi6xLug7B0Xnp73E2&key=8KrFUmOVgyyU7e09U%2F3XGcUfMiAzeGV6WqRa35oU89g%3Dquoted
quoted
| Approve sender <https://www.boxbe.com/anno?tc_serial=24340454778&tc_rand=1758595516&utm_source=stf&utm_medium=email&utm_campaign=ANNO_MWTP&utm_content=001&token=d5AB60jxM3mp6UGnoaT1GyqDwTwwrUUOmC2KRJv2v5G6Yxmpi6xLug7B0Xnp73E2&key=8KrFUmOVgyyU7e09U%2F3XGcUfMiAzeGV6WqRa35oU89g%3Dquoted
quoted
| Approve domain <https://www.boxbe.com/anno?tc_serial=24340454778&tc_rand=1758595516&utm_source=stf&utm_medium=email&utm_campaign=ANNO_MWTP&utm_content=001&dom&token=d5AB60jxM3mp6UGnoaT1GyqDwTwwrUUOmC2KRJv2v5G6Yxmpi6xLug7B0Xnp73E2&key=8KrFUmOVgyyU7e09U%2F3XGcUfMiAzeGV6WqRa35oU89g%3Dquoted
quoted
Did you try with the --file-prefix testpmd option? Just use different file-prefix for each DPDK app running. On Thu, Feb 11, 2016 at 5:01 AM, Pushpasis Sarkar <pushpasis@gmail.comquoted
wrote:quoted
Hi Krishna, Off-late I have been investigating DPDK on Linux containers.. I came across this thread and found it very helpful.. But I still find some issueswhenquoted
quoted
quoted
I try to run the same DPDK application simultaneously on more than oneLXCquoted
quoted
quoted
containers.. Even when following the example provided in this thread. I am unabletoquoted
quoted
quoted
run the same application simultaneously in both host and more than one LXC containers.. Is there any way to achieve the same.. The basic issue I see in the DPDK design that kit assumes that itwill usequoted
quoted
quoted
/mnt/huge/ file-path before using it.. making it unavailable to anyotherquoted
quoted
quoted
process.. Can this be changed to use the sub-directory/mnt/huge/$(unamequoted
quoted
quoted
-n)/<PID>. That way it cannot stop other process running on host/lxcfromquoted
quoted
quoted
using the hugepages.. I have donot have much knowledge about how the hugepage filesystem works.. so pardon my ignorance... :) Looking forward to some help on this. Regards, -Pushpasis