From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 80F605686 for ; Fri, 15 Jan 2016 07:39:30 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP; 14 Jan 2016 22:39:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,298,1449561600"; d="scan'208";a="633772784" Received: from shwdeisgchi083.ccr.corp.intel.com (HELO [10.239.67.119]) ([10.239.67.119]) by FMSMGA003.fm.intel.com with ESMTP; 14 Jan 2016 22:39:29 -0800 To: Amit Tomer References: <1446748276-132087-1-git-send-email-jianfeng.tan@intel.com> <1452426182-86851-1-git-send-email-jianfeng.tan@intel.com> <058a01d14c7b$5cdc60d0$16952270$@samsung.com> <5693CFE4.4060405@intel.com> <009a01d14d0c$3ab6cd60$b0246820$@samsung.com> <00b101d14d14$bab82510$30286f30$@samsung.com> <5694BE75.7010708@intel.com> <00d901d14d26$d04fc600$70ef5200$@samsung.com> <56951357.2030008@intel.com> <5695275A.5050203@intel.com> <56969A3F.1040503@intel.com> <5697896C.2000804@intel.com> From: "Tan, Jianfeng" Message-ID: <5698941E.5020101@intel.com> Date: Fri, 15 Jan 2016 14:39:26 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: nakajima.yoshihiro@lab.ntt.co.jp, "Michael S. Tsirkin" , dev@dpdk.org, ann.zhuangyanying@huawei.com Subject: Re: [dpdk-dev] [PATCH 0/4] virtio support for 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: Fri, 15 Jan 2016 06:39:31 -0000 Hi Amit, On 1/14/2016 8:03 PM, Amit Tomer wrote: > Hello, > >> Not necessary. But if you want to use hugepages inside Docker, use -v option >> to map a hugetlbfs into containers. > I modified Docker command line in order to make use of Hugetlbfs: > > CMD ["/usr/src/dpdk/examples/l2fwd/build/l2fwd", "-c", "0x3", "-n", > "4","--no-pci", "--socket-mem","512", > "--vdev=eth_cvio0,queue_num=256,rx=1,tx=1,cq=0,path=/var/run/usvhost", > "--", "-p", "0x1"] For this case, please use --single-file option because it creates much more than 8 fds, which can be handled by vhost-user sendmsg(). > > Then, I run docker : > > docker run -i -t --privileged -v /dev/hugepages:/dev/hugepages -v > /home/ubuntu/backup/usvhost:/var/run/usvhost l6 > > But this is what I see: > > EAL: Support maximum 128 logical core(s) by configuration. > EAL: Detected 48 lcore(s) > EAL: Setting up physically contiguous memory... > EAL: Failed to find phys addr for 2 MB pages > PANIC in rte_eal_init(): > Cannot init memory > 1: [/usr/src/dpdk/examples/l2fwd/build/l2fwd(rte_dump_stack+0x20) [0x48ea78]] From the log, it's caused by that it still cannot open /proc/self/pagemap. But it's strange that you already specify --privileged). Thanks, Jianfeng > > This is from Host: > > # mount | grep hugetlbfs > hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime) > none on /dev/hugepages type hugetlbfs (rw,relatime) > > #cat /proc/meminfo | grep Huge > AnonHugePages: 548864 kB > HugePages_Total: 4096 > HugePages_Free: 1024 > HugePages_Rsvd: 0 > HugePages_Surp: 0 > Hugepagesize: 2048 kB > > What is it, I'm doing wrong here? > > Thanks, > Amit