[dpdk-users] testpmd - Cannot allocate memory error

Andrew Bainbridge andbain at microsoft.com
Tue Oct 10 17:00:32 CEST 2017


Hi

I'm trying to get DPDK to work on some new machines to which I've just
got access. I've used DPDK before on other machines, but this time I
cannot get past a memory allocation error. I assume I've got something
simple wrong with my configuration. I'd be grateful for any help tracking
down the cause.

Here's what I see:

$ sudo ./testpmd
EAL: Detected 16 lcore(s)
EAL: No free hugepages reported in hugepages-1048576kB
EAL: Probing VFIO support...
EAL: No probed ethernet devices
USER1: create a new mbuf pool <mbuf_pool_socket_0>: n=267456, size=2176,
  socket=0
RING: Cannot reserve memory
EAL: Error - exiting with code: 1
  Cause: Creation of mbuf pool for socket 0 failed: Cannot allocate
  memory


$ python dpdk-devbind.py --status
Network devices using DPDK-compatible driver
============================================
0000:03:00.0 'MT27500 Family [ConnectX-3] 1003' drv=igb_uio
  unused=uio_pci_generic
<snip>


$ hugeadm --pool-list
      Size  Minimum  Current  Maximum  Default
   2097152      192      192      192        *
1073741824        0        0        0


$ uname -a
Linux BELGRADE40G-02 4.4.0-96-generic #119-Ubuntu SMP Tue Sep 12
14:59:54 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux


$ cat /proc/meminfo
MemTotal:       65961040 kB
MemFree:        64742388 kB
MemAvailable:   64900376 kB
Buffers:           61888 kB
Cached:           439012 kB
SwapCached:            0 kB
Active:           297224 kB
Inactive:         222076 kB
Active(anon):      19860 kB
Inactive(anon):     8568 kB
Active(file):     277364 kB
Inactive(file):   213508 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:      67093500 kB
SwapFree:       67093500 kB
Dirty:                16 kB
Writeback:             0 kB
AnonPages:         18464 kB
Mapped:            23580 kB
Shmem:             10028 kB
Slab:             136164 kB
SReclaimable:      92940 kB
SUnreclaim:        43224 kB
KernelStack:        3824 kB
PageTables:         2972 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    99877412 kB
Committed_AS:     147072 kB
VmallocTotal:   34359738367 kB
VmallocUsed:           0 kB
VmallocChunk:          0 kB
HardwareCorrupted:     0 kB
AnonHugePages:         0 kB
CmaTotal:              0 kB
CmaFree:               0 kB
HugePages_Total:     192
HugePages_Free:       64
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:      105956 kB
DirectMap2M:     4075520 kB
DirectMap1G:    62914560 kB


Thanks,
Andrew


More information about the users mailing list