From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-f193.google.com (mail-qk0-f193.google.com [209.85.220.193]) by dpdk.org (Postfix) with ESMTP id 4758B8E74 for ; Thu, 14 Jan 2016 13:03:53 +0100 (CET) Received: by mail-qk0-f193.google.com with SMTP id p186so25882819qke.2 for ; Thu, 14 Jan 2016 04:03:53 -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=/Frp8wROw1rogZDHef6aDGzmrvfV3cghhmNQWhQACU4=; b=rWXO3S/Lvale9o9puQGdpXu9M5d7kgMYGVkkNy+eupLLDHahQhmQFY+qUEd/Lq8I8h iNGY36VOSjcqPj68kW1LpIK1jUY0rMuyIDq/4ZF8lIATa8TvCSqwRaekkXXoF5wTzShC xu7nd8BW99B1+NQVLEXoZD9iiLJAbprYJxfkDcUQZqKHIbCf58/ZXKpsvbDKjb4uzPFe D7WqTN32/A9zqydE1PRrVMR9yIJl6jRgNHEdRJI6vj+d4cDAIOzG2Y4isXP2BL+l1dbW lKrMHUV5nfW5+huWXP3K9jYrnytewxs1RVnUHWsJYc+f6OnS5JW5Gg8Ir//8jIxG+/yw J0hw== 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=/Frp8wROw1rogZDHef6aDGzmrvfV3cghhmNQWhQACU4=; b=M/NLq4VRAX8eN6XksxK90lL8mlOsi2AanQSGUGQ8EuN0kVnECnkEdEweuXUjoto6Ek KLXuvTEkSl4ud07FyvNLOQLTce1WvEUfWj/dSfgNZDjyuSuDtG9DSjo7BIDHlf5Dl0it +1iKnHXIq6FkPB4cr15kADOxPbdYikGfua1CoW1kQZKelnSfVZVGFdtiJtpiA3pVMUXD qX973+tRFS1zD7R6QHT/nsZB+NsdObVZWo58SxD5z6IkpX8+BBZWQZC4DLVK8ws85TUh r090gjqaq6KrrpTPFUte9agjxB6UcFftQGtwPpZecu7Fym7PDYhk80npnBGuRQCY2qUu VxXw== X-Gm-Message-State: ALoCoQncDnaI81I/CTuIb61YbCSLKsYFjwDJmB9dX8uFCdoBYzaJytq7gB9pKOuRyrcinz8sgBwQtZinXOVK52ne1GbAadfE7w== MIME-Version: 1.0 X-Received: by 10.13.222.70 with SMTP id h67mr2629679ywe.185.1452773032743; Thu, 14 Jan 2016 04:03:52 -0800 (PST) Received: by 10.129.123.134 with HTTP; Thu, 14 Jan 2016 04:03:52 -0800 (PST) In-Reply-To: <5697896C.2000804@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> Date: Thu, 14 Jan 2016 17:33:52 +0530 Message-ID: From: Amit Tomer To: "Tan, Jianfeng" Content-Type: text/plain; charset=UTF-8 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: Thu, 14 Jan 2016 12:03:53 -0000 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"] 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]] 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