[dpdk-dev] testpmd crashes with Invalid NUMA socket, default to 0

Kenvish Butani kenvishwlan at gmail.com
Mon Oct 22 08:34:21 CEST 2018


Hi All,

I am new to dpdk, and trying it to integrate DPDK with one of my server
having intel nic's and 24 core cpu.

I am trying to run testpmd app and it gets crashed with below logs

++++++++++++++++++++++++++++++++++++++
# ./testpmd-cc-on-local -c 0xF -n 1 -w 01:00.0 -- -i
EAL: Detected 24 lcore(s)
EAL: Detected 2 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Probing VFIO support...
EAL: PCI device igb_uio 0000:01:00.0: uio device registered with irq 44
0000:01:00.0 on NUMA socket -1
EAL:   Invalid NUMA socket, default to 0
EAL:   probe driver: 8086:10a7 net_e1000_igb
EAL: Error - exiting with code: 1
  Cause: rte_zmalloc(32 struct rte_port) failed
++++++++++++++++++++++++++++++++++++++

I also tried by changing n=2 in testpmd commandline option but same crash
found.

Before running testpmd application here is the *script which setups the
environment*

++++++++++++++++++++++++++++++++++++++

/sbin/insmod
/lib/modules/4.14.30-ws-symbol/kernel/drivers/net/ethernet/intel/igb/igb.ko.lzma

/sbin/insmod /lib/modules/4.14.30-ws-symbol/kernel/drivers/uio/uio.ko.lzma
/sbin/insmod
/lib/modules/4.14.30-ws-symbol/kernel/drivers/uio/uio_pci_generic.ko.lzma
/sbin/insmod /lib/modules/4.14.30-ws-symbol/extra/dpdk/igb_uio.ko.lzma

/share/dpdk/usertools/dpdk-devbind.py --status
/share/dpdk/usertools/dpdk-devbind.py --bind=igb_uio eth0
/share/dpdk/usertools/dpdk-devbind.py --bind=igb_uio eth1
/share/dpdk/usertools/dpdk-devbind.py --status

echo 64 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
mkdir -p /mnt/huge
mount -t hugetlbfs nodev /mnt/huge

/bin/mknod /dev/uio0 c 247 0
/bin/chmod 777 /dev/uio0

+++++++++++++++++++++++++++++++++++++

Note : /dev/uio0 entry was not created after loading the driver and so i am
creating it manually with mknod.

*System config:*

++++++++++++++++++++++++++++++++++++
# /share/dpdk/usertools/dpdk-devbind.py --status

Network devices using DPDK-compatible driver
============================================
0000:01:00.0 'Device 10a7' drv=igb_uio unused=uio_pci_generic
0000:01:00.1 'Device 10a7' drv=igb_uio unused=uio_pci_generic

Network devices using kernel driver
===================================
<none>

Other Network devices
=====================
<none>

Crypto devices using DPDK-compatible driver
===========================================
<none>

Crypto devices using kernel driver
==================================
<none>

Other Crypto devices
====================
<none>

Eventdev devices using DPDK-compatible driver
=============================================
<none>

Eventdev devices using kernel driver
====================================
<none>

Other Eventdev devices
======================
<none>

Mempool devices using DPDK-compatible driver
============================================
<none>

Mempool devices using kernel driver
===================================
<none>

Other Mempool devices
=====================
<none>


#cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 44
model name      : Intel(R) Xeon(R) CPU           E5645  @ 2.40GHz
stepping        : 2
microcode       : 0x15
cpu MHz         : 1596.160
cache size      : 12288 KB
physical id     : 0
siblings        : 12
core id         : 0
cpu cores       : 6
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 11
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx
pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts ret
bugs            : cpu_meltdown spectre_v1 spectre_v2
bogomips        : 4788.86
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:

# cat /proc/meminfo
MemTotal:       36951260 kB
MemFree:        33182740 kB
MemAvailable:   33238132 kB
Buffers:           25632 kB
Cached:           263308 kB
SwapCached:            0 kB
Active:          1514816 kB
Inactive:         208784 kB
Active(anon):    1439404 kB
Inactive(anon):     1124 kB
Active(file):      75412 kB
Inactive(file):   207660 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       7823616 kB
SwapFree:        7823616 kB
Dirty:               160 kB
Writeback:             0 kB
AnonPages:       1434828 kB
Mapped:            70988 kB
Shmem:              5904 kB
Slab:              53732 kB
SReclaimable:      22184 kB
SUnreclaim:        31548 kB
KernelStack:       14304 kB
PageTables:        35768 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    26233708 kB
Committed_AS:    7762260 kB
VmallocTotal:   34359738367 kB
VmallocUsed:           0 kB
VmallocChunk:          0 kB
HugePages_Total:      64
HugePages_Free:       63
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:       79828 kB
DirectMap2M:     4048896 kB
DirectMap1G:    33554432 kB


# uname -a
Linux nx9000-6C883E 4.14.30-ws-symbol #1 SMP PREEMPT Thu Sep 20 15:04:33
IST 2018 x86_64 GNU/Linux

# lsmod
Module                  Size  Used by
igb_uio                16384  0
uio_pci_generic        16384  0
uio                    16384  2 igb_uio,uio_pci_generic
igb                   143360  0
ipi_hsl               139264  7
dataplane           29323264 151 ipi_hsl
ipv6                  303104 88 [permanent]
ftdi_sio               45056  0
usbserial              28672  1 ftdi_sio
xt_tcpudp              16384  0
xt_mark                16384  0
iptable_nat            16384  0
nf_nat_ipv4            16384  1 iptable_nat
nf_conntrack_ipv4      16384  1
nf_defrag_ipv4         16384  1 nf_conntrack_ipv4
nf_nat                 24576  1 nf_nat_ipv4
xt_connlimit           16384  0
nf_conntrack           69632  4
nf_nat_ipv4,nf_conntrack_ipv4,nf_nat,xt_connlimit
iptable_filter         16384  0
ip_tables              20480  2 iptable_nat,iptable_filter
x_tables               20480  5
xt_tcpudp,xt_mark,xt_connlimit,iptable_filter,ip_tables

+++++++++++++++++++++++++++++++++++++++++++++++++++++++

Can anyone help me out here to fix this. Please let me know if any more
information is required.

Thanks,
--Kenvish


More information about the dev mailing list