[dpdk-users] l2fwd example program error : Cannot init mbuf pool

Arseniy Zaostrovnykh arseniy.zaostrovnykh at epfl.ch
Fri Nov 27 13:06:26 CET 2015


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 at epfl.ch]
> Sent: Friday, November 27, 2015 3:07 PM
> To: P D, Arun (Nokia - IN/Bangalore) <arun.p_d at nokia.com>
> 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 at 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.



More information about the users mailing list