From mboxrd@z Thu Jan 1 00:00:00 1970 From: Murali Krishna Subject: Creation of mbuf pool for socket 0 failed on VM Date: Sat, 28 May 2016 13:09:42 +0530 Message-ID: <55dfc6a5221582a096a8e6c69b5eace7@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable To: dev@dpdk.org Return-path: Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by dpdk.org (Postfix) with ESMTP id A39C65A79 for ; Sat, 28 May 2016 09:39:44 +0200 (CEST) Received: by mail-wm0-f48.google.com with SMTP id n129so19072751wmn.1 for ; Sat, 28 May 2016 00:39:44 -0700 (PDT) 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, I have attached two 10G NICs to VM as pass-through devices and I=E2=80=99m = trying to run testpmd on the VM. I have assigned 4GB RAM and 2 cores to the VM. /DPDK22/testpmd -c 0x3 -n 2 -d /DPDK22/librte_pmd_oce.so -w $P0 -w $P1 -- -i --nb-cores=3D1 --nb-ports=3D2 Where P0 and P1 are the PCI IDs of the two NIC ports. Below is the complete testpmd app output: EAL: Detected lcore 0 as core 0 on socket 0 EAL: Detected lcore 1 as core 0 on socket 0 EAL: Support maximum 128 logical core(s) by configuration. EAL: Detected 2 lcore(s) EAL: VFIO modules not all loaded, skip VFIO support... EAL: Setting up physically contiguous memory... EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7f1d27600000 (size =3D 0x200000) EAL: Ask a virtual area of 0x5000000 bytes EAL: Virtual area found at 0x7f1d22400000 (size =3D 0x5000000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7f1d22000000 (size =3D 0x200000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7f1d21c00000 (size =3D 0x200000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7f1d21800000 (size =3D 0x200000) EAL: Ask a virtual area of 0x800000 bytes EAL: Virtual area found at 0x7f1d20e00000 (size =3D 0x800000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7f1d20a00000 (size =3D 0x200000) EAL: Ask a virtual area of 0x400000 bytes EAL: Virtual area found at 0x7f1d20400000 (size =3D 0x400000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7f1d20000000 (size =3D 0x200000) EAL: Ask a virtual area of 0x600000 bytes EAL: Virtual area found at 0x7f1d1f800000 (size =3D 0x600000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7f1d1f400000 (size =3D 0x200000) EAL: Ask a virtual area of 0x400000 bytes EAL: Virtual area found at 0x7f1d1ee00000 (size =3D 0x400000) EAL: Ask a virtual area of 0x400000 bytes EAL: Virtual area found at 0x7f1d1e800000 (size =3D 0x400000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7f1d1e400000 (size =3D 0x200000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7f1d1e000000 (size =3D 0x200000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7f1d1dc00000 (size =3D 0x200000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7f1d1d800000 (size =3D 0x200000) EAL: Requesting 64 pages of size 2MB from socket 0 EAL: TSC frequency is ~2596992 KHz EAL: WARNING: cpu flags constant_tsc=3Dyes nonstop_tsc=3Dno -> using unreli= able clock cycles ! EAL: open shared lib //DPDK22/librte_pmd_oce.so PMD: librte_pmd_oce by 6WIND registered EAL: Master lcore 0 is ready (tid=3D288c3900;cpuset=3D[0]) EAL: lcore 1 is ready (tid=3D1cdf2700;cpuset=3D[1]) EAL: PCI device 0000:00:09.0 on NUMA socket -1 EAL: probe driver: 10df:720 librte_pmd_oce EAL: PCI device 0000:00:0a.0 on NUMA socket -1 EAL: probe driver: 10df:720 librte_pmd_oce Interactive-mode selected EAL: Error - exiting with code: 1 Cause: Creation of mbuf pool for socket 0 failed Hugepage allocation: mkdir -p /mnt/huge mount -t hugetlbfs nodev /mnt/huge echo 64 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages Can someone tell me if there is anything wrong here. Thanks, Murali