From: Pushpasis Sarkar <pushpasis@gmail.com>
To: Bruce Richardson <bruce.richardson@intel.com>
Cc: dev <dev@dpdk.org>
Subject: Re: [dpdk-dev] [README]:Running DPDK in a LXC-based Container
Date: Thu, 11 Feb 2016 21:49:50 +0530 [thread overview]
Message-ID: <CAKV+TPia486sMzO21G--ZhcKJfy+C1L0-DF7MMM7AaPFxJpnAg@mail.gmail.com> (raw)
In-Reply-To: <1455197317303.1476199754@boxbe>
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:
> > 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 anything
> with
> > 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.
> /Bruce
>
> >
> > Thanks and Regards,
> > Pushpasis
> >
> > On Thu, Feb 11, 2016 at 5:34 PM, Alejandro Lucero <
> > alejandro.lucero@netronome.com> wrote:
> >
> > > [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%3D
> >
> > > | 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%3D
> >
> > > | 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%3D
> >
> > >
> > > 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.com
> >
> > > wrote:
> > >
> > >> 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 issues
> when
> > >> I
> > >> try to run the same DPDK application simultaneously on more than one
> LXC
> > >> containers..
> > >>
> > >> Even when following the example provided in this thread. I am unable
> to
> > >> 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 it
> will use
> > >> /mnt/huge/ file-path before using it.. making it unavailable to any
> other
> > >> process.. Can this be changed to use the sub-directory
> /mnt/huge/$(uname
> > >> -n)/<PID>. That way it cannot stop other process running on host/lxc
> from
> > >> 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
> > >>
> > >
> > >
> > >
>
>
next prev parent reply other threads:[~2016-02-11 16:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-11 5:01 Pushpasis Sarkar
2016-02-11 12:04 ` Alejandro Lucero
[not found] ` <1455193461352.1476199754@boxbe>
2016-02-11 12:56 ` Pushpasis Sarkar
2016-02-11 13:08 ` Bruce Richardson
[not found] ` <1455197317303.1476199754@boxbe>
2016-02-11 16:19 ` Pushpasis Sarkar [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-06-17 6:01 Mohit Saxena
2014-10-08 13:44 Murthy, Krishna J
2014-10-10 0:26 ` Xie, Huawei
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAKV+TPia486sMzO21G--ZhcKJfy+C1L0-DF7MMM7AaPFxJpnAg@mail.gmail.com \
--to=pushpasis@gmail.com \
--cc=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).