From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from rcdn-iport-4.cisco.com (rcdn-iport-4.cisco.com [173.37.86.75]) by dpdk.org (Postfix) with ESMTP id 7A6F66848 for ; Sat, 31 May 2014 04:59:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=10418; q=dns/txt; s=iport; t=1401505171; x=1402714771; h=from:to:subject:date:message-id:mime-version; bh=74NMIr3aMC9Gpi4ccvPj1ABcM30UD3eRJJqpKTbPiKI=; b=lC8tSJVmFSR67+YCP+jOf5pFBNws+aweRcNePoQc5wMVw1510Ma6u0Rv MW2XPTh5q0hC1Tnq2rYRXU3KD4w+RswAsMzVrX+GzBLvuTbhPE/aQBwhx yxDO5Eeec5ytW2MkIHau5UkaU+UDT56QaKkoW0bJdqpx+0IgXfdFkd2ML U=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuMKAAdFiVOtJA2B/2dsb2JhbAAURYJCRVJYw00WdIIsJ2QBgQAnBIhVik+YJbQiF5MZBJl+gT6Rb4M4gi8 X-IronPort-AV: E=Sophos;i="4.98,944,1392163200"; d="scan'208,217";a="329457616" Received: from alln-core-9.cisco.com ([173.36.13.129]) by rcdn-iport-4.cisco.com with ESMTP; 31 May 2014 02:59:29 +0000 Received: from xhc-rcd-x05.cisco.com (xhc-rcd-x05.cisco.com [173.37.183.79]) by alln-core-9.cisco.com (8.14.5/8.14.5) with ESMTP id s4V2xTwl021133 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Sat, 31 May 2014 02:59:29 GMT Received: from xmb-aln-x03.cisco.com ([169.254.6.80]) by xhc-rcd-x05.cisco.com ([173.37.183.79]) with mapi id 14.03.0123.003; Fri, 30 May 2014 21:59:29 -0500 From: "Niraj Sharma (nirajsha)" To: "dev@dpdk.org" Thread-Topic: l3fwd fails : Cause: Unable to create the l3fwd LPM table on socket 0 Thread-Index: AQHPfHxWw2kqAMpufEyLOOnXfoq2Jg== Date: Sat, 31 May 2014 02:59:28 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.154.209.244] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] l3fwd fails : Cause: Unable to create the l3fwd LPM table on socket 0 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: Sat, 31 May 2014 02:59:19 -0000 Hello! I am new to DPDK. When I run "l3fwd" on a Ubuntu 12.04 Virtual Machine, the error is "Cause:= Unable to create the l3fwd LPM table on socket 0". The information about m= y set-up is as follows: 1) The command that I used to start the VM is: qemu-system-x86_64 -enable-kvm -m 1024 -localtime -boot d -vga std -name DP= DK \ -hda ./ubuntu_desktop_dpdk.img -cpu host \ -net nic,vlan=3D1,model=3Dvirtio,macaddr=3D00:40:47:1a:0a:44 \ -net tap,vlan=3D1,ifname=3Dtap-dpdk1,script=3Dno \ -net nic,vlan=3D2,model=3Dvirtio,macaddr=3D00:40:47:1a:0b:44 \ -net tap,vlan=3D2,ifname=3Dtap-dpdk2,script=3Dno \ -net nic,vlan=3D3,model=3Dvirtio,macaddr=3D00:40:47:1a:0c:44 \ -net tap,vlan=3D3,ifname=3Dtap0,script=3Dno Host has 4 cores Xeon 4771, but this VM ends up having only one core. Note = that I used option "-cpu host" in this qemu command. On VM, I give control to two ports to the igb_uio. For huge pages, I gave 6= 4x2MB memory to NUMA system using tools/setup.sh script. In another variati= on, I gave the same amount to non-NUMA system also. 2) The actual command used to start l3fwd and its output (1 core, 1 memory = channel, enabled all ports, and ports 0 & 1 both assigned to core 0): ./l3fwd -c 0x1 -n 1 -- -p 0xf --config=3D"(0,0,0),(1,0,0)" .... .... .... .... EAL: Skip lcore 63 (not detected) EAL: Setting up memory... EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7f67b7800000 (size =3D 0x200000) EAL: Ask a virtual area of 0x7c00000 bytes EAL: Virtual area found at 0x7f67afa00000 (size =3D 0x7c00000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7f67af600000 (size =3D 0x200000) EAL: Requesting 64 pages of size 2MB from socket 0 EAL: TSC frequency is ~3491919 KHz EAL: WARNING: cpu flags constant_tsc=3Dyes nonstop_tsc=3Dno -> using unreli= able clock cycles ! EAL: Master core 0 is ready (tid=3Db86e2800) EAL: PCI device 0000:00:03.0 on NUMA socket -1 EAL: probe driver: 1af4:1000 rte_virtio_pmd EAL: PCI Port IO found start=3D0xc000 with size=3D0x20 EAL: PCI device 0000:00:04.0 on NUMA socket -1 EAL: probe driver: 1af4:1000 rte_virtio_pmd EAL: PCI Port IO found start=3D0xc020 with size=3D0x20 EAL: PCI device 0000:00:05.0 on NUMA socket -1 EAL: probe driver: 1af4:1000 rte_virtio_pmd EAL: 0000:00:05.0 not managed by UIO driver, skipping Initializing port 0 ... Creating queues: nb_rxq=3D1 nb_txq=3D1... Address:= 00:40:47:1A:0A:44, All ocated mbuf pool on socket 0 LPM: Adding route 0x01010100 / 24 (0) LPM: Adding route 0x02010100 / 24 (1) LPM: Adding route 0x03010100 / 24 (2) LPM: Adding route 0x04010100 / 24 (3) LPM: Adding route 0x05010100 / 24 (4) LPM: Adding route 0x06010100 / 24 (5) LPM: Adding route 0x07010100 / 24 (6) LPM: Adding route 0x08010100 / 24 (7) LPM: LPM memory allocation failed EAL: Error - exiting with code: 1 Cause: Unable to create the l3fwd LPM table on socket 0 I will appreciate any help. Thanks, -- Niraj