All of lore.kernel.org
 help / color / mirror / Atom feed
* Testpmd fails in initialization
@ 2018-06-01 22:06 Monika Mails
  2018-06-01 22:11 ` Stephen Hemminger
  0 siblings, 1 reply; 5+ messages in thread
From: Monika Mails @ 2018-06-01 22:06 UTC (permalink / raw)
  To: dev

Hi All,

This is Monika.
I am new to DPDK.
I just installed DPDK release - 18.05 on my server and trying to run
"testpmd"

Here is my command and its output :-

 sudo testpmd -l 8 -n 4 -c 0x3 --socket-mem=512,512

EAL: Detected lcore 0 as core 3 on socket 0
EAL: Detected lcore 1 as core 3 on socket 1
EAL: Detected lcore 2 as core 4 on socket 0
EAL: Detected lcore 3 as core 4 on socket 1
EAL: Detected lcore 4 as core 5 on socket 0
EAL: Detected lcore 5 as core 5 on socket 1
EAL: Detected lcore 6 as core 6 on socket 0
EAL: Detected lcore 7 as core 6 on socket 1
EAL: Detected lcore 8 as core 10 on socket 0
EAL: Detected lcore 9 as core 10 on socket 1
EAL: Detected lcore 10 as core 11 on socket 0
EAL: Detected lcore 11 as core 11 on socket 1
EAL: Detected lcore 12 as core 3 on socket 0
EAL: Detected lcore 13 as core 3 on socket 1
EAL: Detected lcore 14 as core 4 on socket 0
EAL: Detected lcore 15 as core 4 on socket 1
EAL: Detected lcore 16 as core 5 on socket 0
EAL: Detected lcore 17 as core 5 on socket 1
EAL: Detected lcore 18 as core 6 on socket 0
EAL: Detected lcore 19 as core 6 on socket 1
EAL: Detected lcore 20 as core 10 on socket 0
EAL: Detected lcore 21 as core 10 on socket 1
EAL: Detected lcore 22 as core 11 on socket 0
EAL: Detected lcore 23 as core 11 on socket 1
EAL: Support maximum 128 logical core(s) by configuration.
EAL: Detected 24 lcore(s)
EAL: No free hugepages reported in hugepages-1048576kB
EAL: Setting up physically contiguous memory...
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f2d14600000 (size = 0x200000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f2d14200000 (size = 0x200000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f2d13e00000 (size = 0x200000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f2d13a00000 (size = 0x200000)
EAL: Ask a virtual area of 0x400000 bytes
EAL: Virtual area found at 0x7f2d13400000 (size = 0x400000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f2d13000000 (size = 0x200000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f2d12c00000 (size = 0x200000)
EAL: Ask a virtual area of 0x400000 bytes
EAL: Virtual area found at 0x7f2d12600000 (size = 0x400000)
*EAL: Not enough memory available on socket 0! Requested: 512MB, available:
0MB*
PANIC in rte_eal_init():
Cannot init memory
6: [testpmd(_start+0x29) [0x4155b9]]
5: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)
[0x7f2d158b5830]]
4: [testpmd(main+0x51) [0x414fb1]]
3: [/usr/lib/x86_64-linux-gnu/libdpdk.so.0(rte_eal_init+0x1111)
[0x7f2d16e59c91]]
2: [/usr/lib/x86_64-linux-gnu/libdpdk.so.0(__rte_panic+0xd0)
[0x7f2d16e38e18]]
1: [/usr/lib/x86_64-linux-gnu/libdpdk.so.0(rte_dump_stack+0x2b)
[0x7f2d16fa840b]]
Aborted (core dumped)

Here are the other details of my server :-

*./deps/dpdk-18.05/usertools/cpu_layout.py*
======================================================================
Core and Socket Information (as reported by '/sys/devices/system/cpu')
======================================================================

cores =  [3, 4, 5, 6, 10, 11]
sockets =  [0, 1]

        Socket 0        Socket 1
        --------        --------
Core 3  [0, 12]         [1, 13]
Core 4  [2, 14]         [3, 15]
Core 5  [4, 16]         [5, 17]
Core 6  [6, 18]         [7, 19]
Core 10 [8, 20]         [9, 21]
Core 11 [10, 22]        [11, 23]

I tried selecting different number of hugepages from 1024-10, but getting
the same initialization error.
Can someone please suggest some resolution.
Appreciate some advice.

Regards,
Monika

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Testpmd fails in initialization
  2018-06-01 22:06 Testpmd fails in initialization Monika Mails
@ 2018-06-01 22:11 ` Stephen Hemminger
  2018-06-01 22:17   ` Monika Mails
  0 siblings, 1 reply; 5+ messages in thread
From: Stephen Hemminger @ 2018-06-01 22:11 UTC (permalink / raw)
  To: Monika Mails; +Cc: dev

How much huge page memory did you confirm?
$ cat /proc/meminfo

On Fri, Jun 1, 2018, 3:06 PM Monika Mails <mails.monika@gmail.com> wrote:

> Hi All,
>
> This is Monika.
> I am new to DPDK.
> I just installed DPDK release - 18.05 on my server and trying to run
> "testpmd"
>
> Here is my command and its output :-
>
>  sudo testpmd -l 8 -n 4 -c 0x3 --socket-mem=512,512
>
> EAL: Detected lcore 0 as core 3 on socket 0
> EAL: Detected lcore 1 as core 3 on socket 1
> EAL: Detected lcore 2 as core 4 on socket 0
> EAL: Detected lcore 3 as core 4 on socket 1
> EAL: Detected lcore 4 as core 5 on socket 0
> EAL: Detected lcore 5 as core 5 on socket 1
> EAL: Detected lcore 6 as core 6 on socket 0
> EAL: Detected lcore 7 as core 6 on socket 1
> EAL: Detected lcore 8 as core 10 on socket 0
> EAL: Detected lcore 9 as core 10 on socket 1
> EAL: Detected lcore 10 as core 11 on socket 0
> EAL: Detected lcore 11 as core 11 on socket 1
> EAL: Detected lcore 12 as core 3 on socket 0
> EAL: Detected lcore 13 as core 3 on socket 1
> EAL: Detected lcore 14 as core 4 on socket 0
> EAL: Detected lcore 15 as core 4 on socket 1
> EAL: Detected lcore 16 as core 5 on socket 0
> EAL: Detected lcore 17 as core 5 on socket 1
> EAL: Detected lcore 18 as core 6 on socket 0
> EAL: Detected lcore 19 as core 6 on socket 1
> EAL: Detected lcore 20 as core 10 on socket 0
> EAL: Detected lcore 21 as core 10 on socket 1
> EAL: Detected lcore 22 as core 11 on socket 0
> EAL: Detected lcore 23 as core 11 on socket 1
> EAL: Support maximum 128 logical core(s) by configuration.
> EAL: Detected 24 lcore(s)
> EAL: No free hugepages reported in hugepages-1048576kB
> EAL: Setting up physically contiguous memory...
> EAL: Ask a virtual area of 0x200000 bytes
> EAL: Virtual area found at 0x7f2d14600000 (size = 0x200000)
> EAL: Ask a virtual area of 0x200000 bytes
> EAL: Virtual area found at 0x7f2d14200000 (size = 0x200000)
> EAL: Ask a virtual area of 0x200000 bytes
> EAL: Virtual area found at 0x7f2d13e00000 (size = 0x200000)
> EAL: Ask a virtual area of 0x200000 bytes
> EAL: Virtual area found at 0x7f2d13a00000 (size = 0x200000)
> EAL: Ask a virtual area of 0x400000 bytes
> EAL: Virtual area found at 0x7f2d13400000 (size = 0x400000)
> EAL: Ask a virtual area of 0x200000 bytes
> EAL: Virtual area found at 0x7f2d13000000 (size = 0x200000)
> EAL: Ask a virtual area of 0x200000 bytes
> EAL: Virtual area found at 0x7f2d12c00000 (size = 0x200000)
> EAL: Ask a virtual area of 0x400000 bytes
> EAL: Virtual area found at 0x7f2d12600000 (size = 0x400000)
> *EAL: Not enough memory available on socket 0! Requested: 512MB, available:
> 0MB*
> PANIC in rte_eal_init():
> Cannot init memory
> 6: [testpmd(_start+0x29) [0x4155b9]]
> 5: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)
> [0x7f2d158b5830]]
> 4: [testpmd(main+0x51) [0x414fb1]]
> 3: [/usr/lib/x86_64-linux-gnu/libdpdk.so.0(rte_eal_init+0x1111)
> [0x7f2d16e59c91]]
> 2: [/usr/lib/x86_64-linux-gnu/libdpdk.so.0(__rte_panic+0xd0)
> [0x7f2d16e38e18]]
> 1: [/usr/lib/x86_64-linux-gnu/libdpdk.so.0(rte_dump_stack+0x2b)
> [0x7f2d16fa840b]]
> Aborted (core dumped)
>
> Here are the other details of my server :-
>
> *./deps/dpdk-18.05/usertools/cpu_layout.py*
> ======================================================================
> Core and Socket Information (as reported by '/sys/devices/system/cpu')
> ======================================================================
>
> cores =  [3, 4, 5, 6, 10, 11]
> sockets =  [0, 1]
>
>         Socket 0        Socket 1
>         --------        --------
> Core 3  [0, 12]         [1, 13]
> Core 4  [2, 14]         [3, 15]
> Core 5  [4, 16]         [5, 17]
> Core 6  [6, 18]         [7, 19]
> Core 10 [8, 20]         [9, 21]
> Core 11 [10, 22]        [11, 23]
>
> I tried selecting different number of hugepages from 1024-10, but getting
> the same initialization error.
> Can someone please suggest some resolution.
> Appreciate some advice.
>
> Regards,
> Monika
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Testpmd fails in initialization
  2018-06-01 22:11 ` Stephen Hemminger
@ 2018-06-01 22:17   ` Monika Mails
  2018-06-01 22:25     ` Monika Mails
  2018-06-02  3:16     ` Rosen, Rami
  0 siblings, 2 replies; 5+ messages in thread
From: Monika Mails @ 2018-06-01 22:17 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: dev

Hi Stephen

For last command I just declared 10 hugepages.

Regards,
Monika

On Fri, Jun 1, 2018 at 3:11 PM, Stephen Hemminger <
stephen@networkplumber.org> wrote:

> How much huge page memory did you confirm?
> $ cat /proc/meminfo
>
> On Fri, Jun 1, 2018, 3:06 PM Monika Mails <mails.monika@gmail.com> wrote:
>
>> Hi All,
>>
>> This is Monika.
>> I am new to DPDK.
>> I just installed DPDK release - 18.05 on my server and trying to run
>> "testpmd"
>>
>> Here is my command and its output :-
>>
>>  sudo testpmd -l 8 -n 4 -c 0x3 --socket-mem=512,512
>>
>> EAL: Detected lcore 0 as core 3 on socket 0
>> EAL: Detected lcore 1 as core 3 on socket 1
>> EAL: Detected lcore 2 as core 4 on socket 0
>> EAL: Detected lcore 3 as core 4 on socket 1
>> EAL: Detected lcore 4 as core 5 on socket 0
>> EAL: Detected lcore 5 as core 5 on socket 1
>> EAL: Detected lcore 6 as core 6 on socket 0
>> EAL: Detected lcore 7 as core 6 on socket 1
>> EAL: Detected lcore 8 as core 10 on socket 0
>> EAL: Detected lcore 9 as core 10 on socket 1
>> EAL: Detected lcore 10 as core 11 on socket 0
>> EAL: Detected lcore 11 as core 11 on socket 1
>> EAL: Detected lcore 12 as core 3 on socket 0
>> EAL: Detected lcore 13 as core 3 on socket 1
>> EAL: Detected lcore 14 as core 4 on socket 0
>> EAL: Detected lcore 15 as core 4 on socket 1
>> EAL: Detected lcore 16 as core 5 on socket 0
>> EAL: Detected lcore 17 as core 5 on socket 1
>> EAL: Detected lcore 18 as core 6 on socket 0
>> EAL: Detected lcore 19 as core 6 on socket 1
>> EAL: Detected lcore 20 as core 10 on socket 0
>> EAL: Detected lcore 21 as core 10 on socket 1
>> EAL: Detected lcore 22 as core 11 on socket 0
>> EAL: Detected lcore 23 as core 11 on socket 1
>> EAL: Support maximum 128 logical core(s) by configuration.
>> EAL: Detected 24 lcore(s)
>> EAL: No free hugepages reported in hugepages-1048576kB
>> EAL: Setting up physically contiguous memory...
>> EAL: Ask a virtual area of 0x200000 bytes
>> EAL: Virtual area found at 0x7f2d14600000 (size = 0x200000)
>> EAL: Ask a virtual area of 0x200000 bytes
>> EAL: Virtual area found at 0x7f2d14200000 (size = 0x200000)
>> EAL: Ask a virtual area of 0x200000 bytes
>> EAL: Virtual area found at 0x7f2d13e00000 (size = 0x200000)
>> EAL: Ask a virtual area of 0x200000 bytes
>> EAL: Virtual area found at 0x7f2d13a00000 (size = 0x200000)
>> EAL: Ask a virtual area of 0x400000 bytes
>> EAL: Virtual area found at 0x7f2d13400000 (size = 0x400000)
>> EAL: Ask a virtual area of 0x200000 bytes
>> EAL: Virtual area found at 0x7f2d13000000 (size = 0x200000)
>> EAL: Ask a virtual area of 0x200000 bytes
>> EAL: Virtual area found at 0x7f2d12c00000 (size = 0x200000)
>> EAL: Ask a virtual area of 0x400000 bytes
>> EAL: Virtual area found at 0x7f2d12600000 (size = 0x400000)
>> *EAL: Not enough memory available on socket 0! Requested: 512MB,
>> available:
>> 0MB*
>> PANIC in rte_eal_init():
>> Cannot init memory
>> 6: [testpmd(_start+0x29) [0x4155b9]]
>> 5: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)
>> [0x7f2d158b5830]]
>> 4: [testpmd(main+0x51) [0x414fb1]]
>> 3: [/usr/lib/x86_64-linux-gnu/libdpdk.so.0(rte_eal_init+0x1111)
>> [0x7f2d16e59c91]]
>> 2: [/usr/lib/x86_64-linux-gnu/libdpdk.so.0(__rte_panic+0xd0)
>> [0x7f2d16e38e18]]
>> 1: [/usr/lib/x86_64-linux-gnu/libdpdk.so.0(rte_dump_stack+0x2b)
>> [0x7f2d16fa840b]]
>> Aborted (core dumped)
>>
>> Here are the other details of my server :-
>>
>> *./deps/dpdk-18.05/usertools/cpu_layout.py*
>> ======================================================================
>> Core and Socket Information (as reported by '/sys/devices/system/cpu')
>> ======================================================================
>>
>> cores =  [3, 4, 5, 6, 10, 11]
>> sockets =  [0, 1]
>>
>>         Socket 0        Socket 1
>>         --------        --------
>> Core 3  [0, 12]         [1, 13]
>> Core 4  [2, 14]         [3, 15]
>> Core 5  [4, 16]         [5, 17]
>> Core 6  [6, 18]         [7, 19]
>> Core 10 [8, 20]         [9, 21]
>> Core 11 [10, 22]        [11, 23]
>>
>> I tried selecting different number of hugepages from 1024-10, but getting
>> the same initialization error.
>> Can someone please suggest some resolution.
>> Appreciate some advice.
>>
>> Regards,
>> Monika
>>
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Testpmd fails in initialization
  2018-06-01 22:17   ` Monika Mails
@ 2018-06-01 22:25     ` Monika Mails
  2018-06-02  3:16     ` Rosen, Rami
  1 sibling, 0 replies; 5+ messages in thread
From: Monika Mails @ 2018-06-01 22:25 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: dev

Hi Stephen,

if I don't give the last option for socket memory then also it fails.
Here is the error log :-

*sudo testpmd -l 8 -n 4 -c 0x3 *

EAL: Detected lcore 0 as core 3 on socket 0
EAL: Detected lcore 1 as core 3 on socket 1
EAL: Detected lcore 2 as core 4 on socket 0
EAL: Detected lcore 3 as core 4 on socket 1
EAL: Detected lcore 4 as core 5 on socket 0
EAL: Detected lcore 5 as core 5 on socket 1
EAL: Detected lcore 6 as core 6 on socket 0
EAL: Detected lcore 7 as core 6 on socket 1
EAL: Detected lcore 8 as core 10 on socket 0
EAL: Detected lcore 9 as core 10 on socket 1
EAL: Detected lcore 10 as core 11 on socket 0
EAL: Detected lcore 11 as core 11 on socket 1
EAL: Detected lcore 12 as core 3 on socket 0
EAL: Detected lcore 13 as core 3 on socket 1
EAL: Detected lcore 14 as core 4 on socket 0
EAL: Detected lcore 15 as core 4 on socket 1
EAL: Detected lcore 16 as core 5 on socket 0
EAL: Detected lcore 17 as core 5 on socket 1
EAL: Detected lcore 18 as core 6 on socket 0
EAL: Detected lcore 19 as core 6 on socket 1
EAL: Detected lcore 20 as core 10 on socket 0
EAL: Detected lcore 21 as core 10 on socket 1
EAL: Detected lcore 22 as core 11 on socket 0
EAL: Detected lcore 23 as core 11 on socket 1
EAL: Support maximum 128 logical core(s) by configuration.
EAL: Detected 24 lcore(s)
EAL: No free hugepages reported in hugepages-1048576kB
EAL: Setting up physically contiguous memory...
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f882aa00000 (size = 0x200000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f882a600000 (size = 0x200000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f882a200000 (size = 0x200000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f8829e00000 (size = 0x200000)
EAL: Ask a virtual area of 0x400000 bytes
EAL: Virtual area found at 0x7f8829800000 (size = 0x400000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f8829400000 (size = 0x200000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f8829000000 (size = 0x200000)
EAL: Ask a virtual area of 0x400000 bytes
EAL: Virtual area found at 0x7f8828a00000 (size = 0x400000)
*EAL: Requesting 10 pages of size 2MB from socket 1*
EAL: TSC frequency is ~3399997 KHz
EAL: WARNING: Master core has no memory on local socket!
EAL: Master lcore 0 is ready (tid=2de3d8c0;cpuset=[0])
EAL: lcore 1 is ready (tid=289ff700;cpuset=[1])
EAL: PCI device 0000:01:00.0 on NUMA socket 0
EAL:   probe driver: 8086:10fb rte_ixgbe_pmd
EAL:   PCI memory mapped at 0x7f882ac00000
EAL:   PCI memory mapped at 0x7f882ac80000

*PANIC in rte_eth_dev_data_alloc():Cannot allocate memzone for ethernet
port data*
10: [testpmd(_start+0x29) [0x4155b9]]
9: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)
[0x7f882c1ed830]]
8: [testpmd(main+0x51) [0x414fb1]]
7: [/usr/lib/x86_64-linux-gnu/libdpdk.so.0(rte_eal_init+0xb8b)
[0x7f882d79170b]]
6: [/usr/lib/x86_64-linux-gnu/libdpdk.so.0(rte_eal_pci_probe+0xc5)
[0x7f882d8a8d25]]
5: [/usr/lib/x86_64-linux-gnu/libdpdk.so.0(+0x1547f1) [0x7f882d8a87f1]]
4: [/usr/lib/x86_64-linux-gnu/libdpdk.so.0(+0x14c226) [0x7f882d8a0226]]
3: [/usr/lib/x86_64-linux-gnu/libdpdk.so.0(+0x14c09c) [0x7f882d8a009c]]
2: [/usr/lib/x86_64-linux-gnu/libdpdk.so.0(__rte_panic+0xd0)
[0x7f882d770e18]]
1: [/usr/lib/x86_64-linux-gnu/libdpdk.so.0(rte_dump_stack+0x2b)
[0x7f882d8e040b]]
Aborted (core dumped)


Regards,
Monika

On Fri, Jun 1, 2018 at 3:17 PM, Monika Mails <mails.monika@gmail.com> wrote:

> Hi Stephen
>
> For last command I just declared 10 hugepages.
>
> Regards,
> Monika
>
> On Fri, Jun 1, 2018 at 3:11 PM, Stephen Hemminger <
> stephen@networkplumber.org> wrote:
>
>> How much huge page memory did you confirm?
>> $ cat /proc/meminfo
>>
>> On Fri, Jun 1, 2018, 3:06 PM Monika Mails <mails.monika@gmail.com> wrote:
>>
>>> Hi All,
>>>
>>> This is Monika.
>>> I am new to DPDK.
>>> I just installed DPDK release - 18.05 on my server and trying to run
>>> "testpmd"
>>>
>>> Here is my command and its output :-
>>>
>>>  sudo testpmd -l 8 -n 4 -c 0x3 --socket-mem=512,512
>>>
>>> EAL: Detected lcore 0 as core 3 on socket 0
>>> EAL: Detected lcore 1 as core 3 on socket 1
>>> EAL: Detected lcore 2 as core 4 on socket 0
>>> EAL: Detected lcore 3 as core 4 on socket 1
>>> EAL: Detected lcore 4 as core 5 on socket 0
>>> EAL: Detected lcore 5 as core 5 on socket 1
>>> EAL: Detected lcore 6 as core 6 on socket 0
>>> EAL: Detected lcore 7 as core 6 on socket 1
>>> EAL: Detected lcore 8 as core 10 on socket 0
>>> EAL: Detected lcore 9 as core 10 on socket 1
>>> EAL: Detected lcore 10 as core 11 on socket 0
>>> EAL: Detected lcore 11 as core 11 on socket 1
>>> EAL: Detected lcore 12 as core 3 on socket 0
>>> EAL: Detected lcore 13 as core 3 on socket 1
>>> EAL: Detected lcore 14 as core 4 on socket 0
>>> EAL: Detected lcore 15 as core 4 on socket 1
>>> EAL: Detected lcore 16 as core 5 on socket 0
>>> EAL: Detected lcore 17 as core 5 on socket 1
>>> EAL: Detected lcore 18 as core 6 on socket 0
>>> EAL: Detected lcore 19 as core 6 on socket 1
>>> EAL: Detected lcore 20 as core 10 on socket 0
>>> EAL: Detected lcore 21 as core 10 on socket 1
>>> EAL: Detected lcore 22 as core 11 on socket 0
>>> EAL: Detected lcore 23 as core 11 on socket 1
>>> EAL: Support maximum 128 logical core(s) by configuration.
>>> EAL: Detected 24 lcore(s)
>>> EAL: No free hugepages reported in hugepages-1048576kB
>>> EAL: Setting up physically contiguous memory...
>>> EAL: Ask a virtual area of 0x200000 bytes
>>> EAL: Virtual area found at 0x7f2d14600000 (size = 0x200000)
>>> EAL: Ask a virtual area of 0x200000 bytes
>>> EAL: Virtual area found at 0x7f2d14200000 (size = 0x200000)
>>> EAL: Ask a virtual area of 0x200000 bytes
>>> EAL: Virtual area found at 0x7f2d13e00000 (size = 0x200000)
>>> EAL: Ask a virtual area of 0x200000 bytes
>>> EAL: Virtual area found at 0x7f2d13a00000 (size = 0x200000)
>>> EAL: Ask a virtual area of 0x400000 bytes
>>> EAL: Virtual area found at 0x7f2d13400000 (size = 0x400000)
>>> EAL: Ask a virtual area of 0x200000 bytes
>>> EAL: Virtual area found at 0x7f2d13000000 (size = 0x200000)
>>> EAL: Ask a virtual area of 0x200000 bytes
>>> EAL: Virtual area found at 0x7f2d12c00000 (size = 0x200000)
>>> EAL: Ask a virtual area of 0x400000 bytes
>>> EAL: Virtual area found at 0x7f2d12600000 (size = 0x400000)
>>> *EAL: Not enough memory available on socket 0! Requested: 512MB,
>>> available:
>>> 0MB*
>>> PANIC in rte_eal_init():
>>> Cannot init memory
>>> 6: [testpmd(_start+0x29) [0x4155b9]]
>>> 5: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)
>>> [0x7f2d158b5830]]
>>> 4: [testpmd(main+0x51) [0x414fb1]]
>>> 3: [/usr/lib/x86_64-linux-gnu/libdpdk.so.0(rte_eal_init+0x1111)
>>> [0x7f2d16e59c91]]
>>> 2: [/usr/lib/x86_64-linux-gnu/libdpdk.so.0(__rte_panic+0xd0)
>>> [0x7f2d16e38e18]]
>>> 1: [/usr/lib/x86_64-linux-gnu/libdpdk.so.0(rte_dump_stack+0x2b)
>>> [0x7f2d16fa840b]]
>>> Aborted (core dumped)
>>>
>>> Here are the other details of my server :-
>>>
>>> *./deps/dpdk-18.05/usertools/cpu_layout.py*
>>> ======================================================================
>>> Core and Socket Information (as reported by '/sys/devices/system/cpu')
>>> ======================================================================
>>>
>>> cores =  [3, 4, 5, 6, 10, 11]
>>> sockets =  [0, 1]
>>>
>>>         Socket 0        Socket 1
>>>         --------        --------
>>> Core 3  [0, 12]         [1, 13]
>>> Core 4  [2, 14]         [3, 15]
>>> Core 5  [4, 16]         [5, 17]
>>> Core 6  [6, 18]         [7, 19]
>>> Core 10 [8, 20]         [9, 21]
>>> Core 11 [10, 22]        [11, 23]
>>>
>>> I tried selecting different number of hugepages from 1024-10, but getting
>>> the same initialization error.
>>> Can someone please suggest some resolution.
>>> Appreciate some advice.
>>>
>>> Regards,
>>> Monika
>>>
>>
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Testpmd fails in initialization
  2018-06-01 22:17   ` Monika Mails
  2018-06-01 22:25     ` Monika Mails
@ 2018-06-02  3:16     ` Rosen, Rami
  1 sibling, 0 replies; 5+ messages in thread
From: Rosen, Rami @ 2018-06-02  3:16 UTC (permalink / raw)
  To: Monika Mails, Stephen Hemminger; +Cc: dev

Hi Monika,

> For last command I just declared 10 hugepages.

This is not enough.

I would suggest that you will try with 256 pages.
I assume you have 2 sockets on the host (this can be verified by running "lspcu") and use 2MB hugepages.

So, this can be done by:
echo 256 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages
and 
echo 256 > /sys/devices/system/node/node1/hugepages/hugepages-2048kB/nr_hugepages

And run the same command that you used to launch testpmd.

(And if testpmd will still fail, please post the output of 
cat /proc/meminfo | grep -i huge)

Also for the future, this type of queries should be posted on dpdk-users mailing list.

Regards,
Rami Rosen


-----Original Message-----
From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Monika Mails
Sent: Saturday, June 02, 2018 01:18
To: Stephen Hemminger <stephen@networkplumber.org>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] Testpmd fails in initialization

Hi Stephen

For last command I just declared 10 hugepages.

Regards,
Monika

On Fri, Jun 1, 2018 at 3:11 PM, Stephen Hemminger < stephen@networkplumber.org> wrote:

> How much huge page memory did you confirm?
> $ cat /proc/meminfo
>
> On Fri, Jun 1, 2018, 3:06 PM Monika Mails <mails.monika@gmail.com> wrote:
>
>> Hi All,
>>
>> This is Monika.
>> I am new to DPDK.
>> I just installed DPDK release - 18.05 on my server and trying to run 
>> "testpmd"
>>
>> Here is my command and its output :-
>>
>>  sudo testpmd -l 8 -n 4 -c 0x3 --socket-mem=512,512
>>
>> EAL: Detected lcore 0 as core 3 on socket 0
>> EAL: Detected lcore 1 as core 3 on socket 1
>> EAL: Detected lcore 2 as core 4 on socket 0
>> EAL: Detected lcore 3 as core 4 on socket 1
>> EAL: Detected lcore 4 as core 5 on socket 0
>> EAL: Detected lcore 5 as core 5 on socket 1
>> EAL: Detected lcore 6 as core 6 on socket 0
>> EAL: Detected lcore 7 as core 6 on socket 1
>> EAL: Detected lcore 8 as core 10 on socket 0
>> EAL: Detected lcore 9 as core 10 on socket 1
>> EAL: Detected lcore 10 as core 11 on socket 0
>> EAL: Detected lcore 11 as core 11 on socket 1
>> EAL: Detected lcore 12 as core 3 on socket 0
>> EAL: Detected lcore 13 as core 3 on socket 1
>> EAL: Detected lcore 14 as core 4 on socket 0
>> EAL: Detected lcore 15 as core 4 on socket 1
>> EAL: Detected lcore 16 as core 5 on socket 0
>> EAL: Detected lcore 17 as core 5 on socket 1
>> EAL: Detected lcore 18 as core 6 on socket 0
>> EAL: Detected lcore 19 as core 6 on socket 1
>> EAL: Detected lcore 20 as core 10 on socket 0
>> EAL: Detected lcore 21 as core 10 on socket 1
>> EAL: Detected lcore 22 as core 11 on socket 0
>> EAL: Detected lcore 23 as core 11 on socket 1
>> EAL: Support maximum 128 logical core(s) by configuration.
>> EAL: Detected 24 lcore(s)
>> EAL: No free hugepages reported in hugepages-1048576kB
>> EAL: Setting up physically contiguous memory...
>> EAL: Ask a virtual area of 0x200000 bytes
>> EAL: Virtual area found at 0x7f2d14600000 (size = 0x200000)
>> EAL: Ask a virtual area of 0x200000 bytes
>> EAL: Virtual area found at 0x7f2d14200000 (size = 0x200000)
>> EAL: Ask a virtual area of 0x200000 bytes
>> EAL: Virtual area found at 0x7f2d13e00000 (size = 0x200000)
>> EAL: Ask a virtual area of 0x200000 bytes
>> EAL: Virtual area found at 0x7f2d13a00000 (size = 0x200000)
>> EAL: Ask a virtual area of 0x400000 bytes
>> EAL: Virtual area found at 0x7f2d13400000 (size = 0x400000)
>> EAL: Ask a virtual area of 0x200000 bytes
>> EAL: Virtual area found at 0x7f2d13000000 (size = 0x200000)
>> EAL: Ask a virtual area of 0x200000 bytes
>> EAL: Virtual area found at 0x7f2d12c00000 (size = 0x200000)
>> EAL: Ask a virtual area of 0x400000 bytes
>> EAL: Virtual area found at 0x7f2d12600000 (size = 0x400000)
>> *EAL: Not enough memory available on socket 0! Requested: 512MB,
>> available:
>> 0MB*
>> PANIC in rte_eal_init():
>> Cannot init memory
>> 6: [testpmd(_start+0x29) [0x4155b9]]
>> 5: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)
>> [0x7f2d158b5830]]
>> 4: [testpmd(main+0x51) [0x414fb1]]
>> 3: [/usr/lib/x86_64-linux-gnu/libdpdk.so.0(rte_eal_init+0x1111)
>> [0x7f2d16e59c91]]
>> 2: [/usr/lib/x86_64-linux-gnu/libdpdk.so.0(__rte_panic+0xd0)
>> [0x7f2d16e38e18]]
>> 1: [/usr/lib/x86_64-linux-gnu/libdpdk.so.0(rte_dump_stack+0x2b)
>> [0x7f2d16fa840b]]
>> Aborted (core dumped)
>>
>> Here are the other details of my server :-
>>
>> *./deps/dpdk-18.05/usertools/cpu_layout.py*
>> =====================================================================
>> = Core and Socket Information (as reported by 
>> '/sys/devices/system/cpu') 
>> =====================================================================
>> =
>>
>> cores =  [3, 4, 5, 6, 10, 11]
>> sockets =  [0, 1]
>>
>>         Socket 0        Socket 1
>>         --------        --------
>> Core 3  [0, 12]         [1, 13]
>> Core 4  [2, 14]         [3, 15]
>> Core 5  [4, 16]         [5, 17]
>> Core 6  [6, 18]         [7, 19]
>> Core 10 [8, 20]         [9, 21]
>> Core 11 [10, 22]        [11, 23]
>>
>> I tried selecting different number of hugepages from 1024-10, but 
>> getting the same initialization error.
>> Can someone please suggest some resolution.
>> Appreciate some advice.
>>
>> Regards,
>> Monika
>>
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-06-02  3:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-01 22:06 Testpmd fails in initialization Monika Mails
2018-06-01 22:11 ` Stephen Hemminger
2018-06-01 22:17   ` Monika Mails
2018-06-01 22:25     ` Monika Mails
2018-06-02  3:16     ` Rosen, Rami

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.