From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 92CCC688E for ; Wed, 22 Apr 2015 13:01:11 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP; 22 Apr 2015 04:01:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,623,1422950400"; d="scan'208";a="717403659" Received: from irsmsx154.ger.corp.intel.com ([163.33.192.96]) by orsmga002.jf.intel.com with ESMTP; 22 Apr 2015 04:01:11 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.246]) by IRSMSX154.ger.corp.intel.com ([169.254.12.138]) with mapi id 14.03.0224.002; Wed, 22 Apr 2015 12:01:08 +0100 From: "De Lara Guarch, Pablo" To: ChenXiaodong , "dev@dpdk.org" Thread-Topic: [dpdk-dev] problem: Cannot allocate memzone for ethernet port data Thread-Index: AQHQfOe+B1cfOK/350iDmXXRncBWZp1Y3A6Q Date: Wed, 22 Apr 2015 11:01:08 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] problem: Cannot allocate memzone for ethernet port data 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: Wed, 22 Apr 2015 11:01:12 -0000 Hi , > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of ChenXiaodong > Sent: Wednesday, April 22, 2015 11:33 AM > To: dev@dpdk.org > Subject: [dpdk-dev] problem: Cannot allocate memzone for ethernet port > data >=20 > Hi, every one >=20 > Is there any one who can help me ? I'm new to DPDK, here is a problem th= at > I don't know how to deal with. The program is running on an machine with > two Intel 82576 NICs. One of the NICs is binded with the uio_pci_generic > driver=1B$B!#=1B(B1024 2M hugepages have been setup. >=20 > Any suggestion about the cause of the problem or solution to it will be > appreciated! Could you tell us what these commands return? ./tools/cpu_layout.py cat /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages cat /sys/devices/system/node/node1/hugepages/hugepages-2048kB/nr_hugepages (assuming you have 2 NUMA nodes) Pablo >=20 > Here is the output of the program: >=20 > [root@test dpdk-2.0.0]# build/app/testpmd -c ff -n 4 --socket-mem=3D1024 > EAL: Cannot read numa node link for lcore 0 - using physical package id > instead > EAL: Detected lcore 0 as core 0 on socket 1 > EAL: Cannot read numa node link for lcore 1 - using physical package id > instead > EAL: Detected lcore 1 as core 1 on socket 1 > EAL: Cannot read numa node link for lcore 2 - using physical package id > instead > EAL: Detected lcore 2 as core 2 on socket 1 > EAL: Cannot read numa node link for lcore 3 - using physical package id > instead > EAL: Detected lcore 3 as core 3 on socket 1 > EAL: Cannot read numa node link for lcore 4 - using physical package id > instead > EAL: Detected lcore 4 as core 0 on socket 1 > EAL: Cannot read numa node link for lcore 5 - using physical package id > instead > EAL: Detected lcore 5 as core 1 on socket 1 > EAL: Cannot read numa node link for lcore 6 - using physical package id > instead > EAL: Detected lcore 6 as core 2 on socket 1 > EAL: Cannot read numa node link for lcore 7 - using physical package id > instead > EAL: Detected lcore 7 as core 3 on socket 1 > EAL: Support maximum 128 logical core(s) by configuration. > EAL: Detected 8 lcore(s) > EAL: Setting up memory... > EAL: Ask a virtual area of 0x8000000 bytes > EAL: Virtual area found at 0x7f83fae00000 (size =3D 0x8000000) > EAL: Ask a virtual area of 0x38000000 bytes > EAL: Virtual area found at 0x7f83c2c00000 (size =3D 0x38000000) > EAL: Requesting 512 pages of size 2MB from socket 0 > EAL: TSC frequency is ~2394002 KHz > EAL: WARNING: Master core has no memory on local socket! > EAL: Cannot read numa node link for lcore 0 - using physical package id > instead > EAL: Cannot read numa node link for lcore 0 - using physical package id > instead > EAL: Master lcore 0 is ready (tid=3D319e880;cpuset=3D[0]) > PMD: ENICPMD trace: rte_enic_pmd_init > EAL: Cannot read numa node link for lcore 4 - using physical package id > instead > EAL: Cannot read numa node link for lcore 5 - using physical package id > instead > EAL: Cannot read numa node link for lcore 1 - using physical package id > instead > EAL: Cannot read numa node link for lcore 1 - using physical package id > instead > EAL: Cannot read numa node link for lcore 2 - using physical package id > instead > EAL: Cannot read numa node link for lcore 3 - using physical package id > instead > EAL: Cannot read numa node link for lcore 5 - using physical package id > instead > EAL: Cannot read numa node link for lcore 6 - using physical package id > instead > EAL: Cannot read numa node link for lcore 7 - using physical package id > instead > EAL: Cannot read numa node link for lcore 2 - using physical package id > instead > EAL: Cannot read numa node link for lcore 7 - using physical package id > instead > EAL: lcore 1 is ready (tid=3Dc1ff8700;cpuset=3D[1]) > EAL: lcore 2 is ready (tid=3Dc15f7700;cpuset=3D[2]) > EAL: Cannot read numa node link for lcore 4 - using physical package id > instead > EAL: Cannot read numa node link for lcore 3 - using physical package id > instead > EAL: lcore 5 is ready (tid=3Dbf7f4700;cpuset=3D[5]) > EAL: Cannot read numa node link for lcore 6 - using physical package id > instead > EAL: lcore 7 is ready (tid=3Dbe3f2700;cpuset=3D[7]) > EAL: lcore 3 is ready (tid=3Dc0bf6700;cpuset=3D[3]) > EAL: lcore 6 is ready (tid=3Dbedf3700;cpuset=3D[6]) > EAL: lcore 4 is ready (tid=3Dc01f5700;cpuset=3D[4]) > EAL: PCI device 0000:07:00.0 on NUMA socket -1 > EAL: probe driver: 8086:10c9 rte_igb_pmd > EAL: PCI memory mapped at 0x7f8402e00000 > EAL: PCI memory mapped at 0x7f83bd5f2000 > EAL: PCI memory mapped at 0x7f84031ba000 > PANIC in rte_eth_dev_data_alloc(): > Cannot allocate memzone for ethernet port data > 8: [build/app/testpmd() [0x4285d9]] > 7: [/lib64/libc.so.6(__libc_start_main+0xfd) [0x3d18e1ecdd]] > 6: [build/app/testpmd(main+0x18) [0x42dce8]] > 5: [build/app/testpmd(rte_eal_init+0xab8) [0x4982c8]] > 4: [build/app/testpmd(rte_eal_pci_probe+0xe2) [0x4a27e2]] > 3: [build/app/testpmd() [0x491ea7]] > 2: [build/app/testpmd(__rte_panic+0xc0) [0x428520]] > 1: [build/app/testpmd(rte_dump_stack+0x1e) [0x49e91e]] >=20 >=20