From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Tan, Jianfeng" Subject: Re: [PATCH 0/4] virtio support for container Date: Fri, 15 Jan 2016 14:39:26 +0800 Message-ID: <5698941E.5020101@intel.com> 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> Mime-Version: 1.0 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 To: Amit Tomer 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) In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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