From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp5.epfl.ch (smtp5.epfl.ch [128.178.224.8]) by dpdk.org (Postfix) with ESMTP id 194F558F1 for ; Fri, 27 Nov 2015 13:06:30 +0100 (CET) Received: (qmail 28225 invoked by uid 107); 27 Nov 2015 12:06:27 -0000 X-Virus-Scanned: ClamAV Received: from vpn-252-087.epfl.ch (HELO [128.179.252.87]) (128.179.252.87) by mail.epfl.ch (AngelmatoPhylax SMTP proxy) with ESMTP; Fri, 27 Nov 2015 13:06:27 +0100 To: "P D, Arun (Nokia - IN/Bangalore)" , users@dpdk.org References: <452B978F8CA9744BAA81E3E69370ABC4D92794@SGSIMBX011.nsn-intra.net> <56582427.5000307@epfl.ch> <452B978F8CA9744BAA81E3E69370ABC4D927E5@SGSIMBX011.nsn-intra.net> From: Arseniy Zaostrovnykh Message-ID: <56584742.9060507@epfl.ch> Date: Fri, 27 Nov 2015 13:06:26 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <452B978F8CA9744BAA81E3E69370ABC4D927E5@SGSIMBX011.nsn-intra.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-users] l2fwd example program error : Cannot init mbuf pool X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Nov 2015 12:06:30 -0000 Did you allocate just 5*2MB = 10 MB for dpdk? That is hardly enough. I did not run l2fwd, but l3fwd example required more than 200 hugepages (> 500MB). Try to allocate more On 27.11.2015 12:45, P D, Arun (Nokia - IN/Bangalore) wrote: > Hi, > > Yes the hugepages have been allocated before running the example. Here is the hugepage info from /proc/meminfo > > AnonHugePages: 2048 kB > HugePages_Total: 5 > HugePages_Free: 0 > HugePages_Rsvd: 0 > HugePages_Surp: 0 > Hugepagesize: 2048 kB > > Regards, > Arun Raj > > -----Original Message----- > From: EXT Arseniy Zaostrovnykh [mailto:arseniy.zaostrovnykh@epfl.ch] > Sent: Friday, November 27, 2015 3:07 PM > To: P D, Arun (Nokia - IN/Bangalore) > Subject: Re: [dpdk-users] l2fwd example program error : Cannot init mbuf pool > > Hi Arun, > > Did you allocate hugepages (see tools/setup.sh - option [17]) before > running the example? > > > On 27.11.2015 05:04, P D, Arun (Nokia - IN/Bangalore) wrote: >> Hello, >> >> I have been trying to run the example program of DPDK namely l2fwd. I have initialized the EAL environments. When I execute the l2fwd program I get error as below. >> >> The error is its failing to initialie mbuf pool. >> >> [root@localhost app]# ./l2fwd -c 2 -n 2 >> EAL: Detected lcore 0 as core 0 on socket 0 >> EAL: Detected lcore 1 as core 1 on socket 0 >> EAL: Detected lcore 2 as core 2 on socket 0 >> EAL: Detected lcore 3 as core 3 on socket 0 >> EAL: Support maximum 128 logical core(s) by configuration. >> EAL: Detected 4 lcore(s) >> EAL: Setting up physically contiguous memory... >> EAL: Ask a virtual area of 0x200000 bytes >> EAL: Virtual area found at 0x7ff848200000 (size = 0x200000) >> EAL: Ask a virtual area of 0x200000 bytes >> EAL: Virtual area found at 0x7ff847e00000 (size = 0x200000) >> EAL: Ask a virtual area of 0x200000 bytes >> EAL: Virtual area found at 0x7ff847a00000 (size = 0x200000) >> EAL: Ask a virtual area of 0x200000 bytes >> EAL: Virtual area found at 0x7ff847600000 (size = 0x200000) >> EAL: Ask a virtual area of 0x200000 bytes >> EAL: Virtual area found at 0x7ff847200000 (size = 0x200000) >> EAL: Ask a virtual area of 0x400000 bytes >> EAL: Virtual area found at 0x7ff846c00000 (size = 0x400000) >> EAL: Requesting 7 pages of size 2MB from socket 0 >> EAL: TSC frequency is ~3192615 KHz >> EAL: Master lcore 1 is ready (tid=48625880;cpuset=[1]) >> EAL: PCI device 0000:03:00.0 on NUMA socket -1 >> EAL: probe driver: 8086:1533 rte_igb_pmd >> EAL: PCI memory mapped at 0x7ff848400000 >> EAL: PCI memory mapped at 0x7ff848500000 >> PMD: eth_igb_dev_init(): port_id 0 vendorID=0x8086 deviceID=0x1533 >> EAL: PCI device 0000:05:00.0 on NUMA socket -1 >> EAL: probe driver: 8086:100e rte_em_pmd >> EAL: Not managed by a supported kernel driver, skipped >> EAL: PCI device 0000:06:00.0 on NUMA socket -1 >> EAL: probe driver: 8086:10d3 rte_em_pmd >> EAL: PCI memory mapped at 0x7ff848504000 >> EAL: PCI memory mapped at 0x7ff848524000 >> EAL: PCI memory mapped at 0x7ff8485a4000 >> PMD: eth_em_dev_init(): port_id 1 vendorID=0x8086 deviceID=0x10d3 >> EAL: Error - exiting with code: 1 >> Cause: Cannot init mbuf pool >> >> Please let me know if I am missing anything. >> >> Regards, >> Arun Raj >> >> -- Respectfully, Arseniy.