From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk0-f47.google.com (mail-vk0-f47.google.com [209.85.213.47]) by dpdk.org (Postfix) with ESMTP id E15BB379E for ; Thu, 11 Feb 2016 17:19:50 +0100 (CET) Received: by mail-vk0-f47.google.com with SMTP id e6so40176158vkh.2 for ; Thu, 11 Feb 2016 08:19:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=fRNgPuM/HOVmvkVFiluNscD2/SN0QMay/ENN3jKgczw=; b=XJEY8hLfGKbp4fwbezxz/oDVI+KDKVf9lPmanvP/mnr9EcVvtjpVnM0i7XZ8mX57md Yh7wiAa4nyGdsQhnpNFlzDVeR+1W2WPFjUPGHKeh/RdRtQdE8pE6eZ5OlDTbiYZ8saTG s6mfFTijFPdDVhMC1tH+/tMPPIAsUAMVvGhuHCh/mE4YDRAPmLPykIXJYV/U4S5rPnTx uj3wSTs4+V6S9UPEhSntBMrlvOpTCHD826S1Isi0OO20u54q0Sd1FZU78KsgoUxE99aU D+hy2yP4OuVmPJbdh7yeck1nya93KMQ3gt31uJiMj2ZZxYglYODAPgHkBlC65dyBedF3 hTtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=fRNgPuM/HOVmvkVFiluNscD2/SN0QMay/ENN3jKgczw=; b=fWAjhmnHW7BFS+atabbqWVXGenSmUAyu1PSVqkXZI3V2qHetj9IUHwftVRswJyCyJp jj9/pGa9PXmLrVuCwbS3volOg1OWWmrdxAbDq5BnjWejt4reORcH/IEQdDmFdxZ6zIO5 NChqS3UACFMwBVUuAF7zTG9htGuKKtFz72l1t0iU2MkjXcKkCv9qjxRBUsVDZuF1R/cQ F6L6F3s+ukWgP6o9yEaKgsR5gHE/jPfoLio8O1yLirvb7XdZ9g/3TAooFDUAUl7GJPrU G2xqV6iwzHQjQ/p8w0o4MSrAqEv3ADrLYPQymO6fA0mxkXtGeMcF6OShX66WIZj1Mkbh gJoQ== X-Gm-Message-State: AG10YOTO+nm+PxBTzHVVmJpJPXsuA7X025A8M3PahVohl1YtaTEs0vJhdwxUagr8lvs+UulakwbGCs2SHDh/pA== MIME-Version: 1.0 X-Received: by 10.31.54.12 with SMTP id d12mr35960618vka.34.1455207590250; Thu, 11 Feb 2016 08:19:50 -0800 (PST) Received: by 10.31.193.10 with HTTP; Thu, 11 Feb 2016 08:19:50 -0800 (PST) In-Reply-To: <1455197317303.1476199754@boxbe> References: <1455193461352.1476199754@boxbe> <1455197317303.1476199754@boxbe> Date: Thu, 11 Feb 2016 21:49:50 +0530 Message-ID: From: Pushpasis Sarkar To: Bruce Richardson Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: dev Subject: Re: [dpdk-dev] [README]:Running DPDK in a LXC-based Container X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Feb 2016 16:19:51 -0000 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] Bruce Richardson ( > bruce.richardson@intel.com) is not on your Guest List > > | Approve sender > > | Approve domain > > > 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-mul= tiple-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] Alejandro Lucero ( > > > alejandro.lucero@netronome.com) is not on your Guest List > > > < > https://www.boxbe.com/approved-list?tc_serial=3D24340454778&tc_rand=3D175= 8595516&utm_source=3Dstf&utm_medium=3Demail&utm_campaign=3DANNO_MWTP&utm_co= ntent=3D001&token=3Dd5AB60jxM3mp6UGnoaT1GyqDwTwwrUUOmC2KRJv2v5G6Yxmpi6xLug7= B0Xnp73E2&key=3D8KrFUmOVgyyU7e09U%2F3XGcUfMiAzeGV6WqRa35oU89g%3D > > > > > | Approve sender > > > < > https://www.boxbe.com/anno?tc_serial=3D24340454778&tc_rand=3D1758595516&u= tm_source=3Dstf&utm_medium=3Demail&utm_campaign=3DANNO_MWTP&utm_content=3D0= 01&token=3Dd5AB60jxM3mp6UGnoaT1GyqDwTwwrUUOmC2KRJv2v5G6Yxmpi6xLug7B0Xnp73E2= &key=3D8KrFUmOVgyyU7e09U%2F3XGcUfMiAzeGV6WqRa35oU89g%3D > > > > > | Approve domain > > > < > https://www.boxbe.com/anno?tc_serial=3D24340454778&tc_rand=3D1758595516&u= tm_source=3Dstf&utm_medium=3Demail&utm_campaign=3DANNO_MWTP&utm_content=3D0= 01&dom&token=3Dd5AB60jxM3mp6UGnoaT1GyqDwTwwrUUOmC2KRJv2v5G6Yxmpi6xLug7B0Xnp= 73E2&key=3D8KrFUmOVgyyU7e09U%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 > > > > 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 L= XC > > >> 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)/. 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 > > >> > > > > > > > > > > >