DPDK usage discussions
 help / color / mirror / Atom feed
From: Andrew Bainbridge <andbain@microsoft.com>
To: "users@dpdk.org" <users@dpdk.org>
Subject: [dpdk-users] testpmd - Cannot allocate memory error
Date: Tue, 10 Oct 2017 15:00:32 +0000	[thread overview]
Message-ID: <HE1PR83MB0220831B84CB58ECBA91B73DAE750@HE1PR83MB0220.EURPRD83.prod.outlook.com> (raw)

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

                 reply	other threads:[~2017-10-10 15:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=HE1PR83MB0220831B84CB58ECBA91B73DAE750@HE1PR83MB0220.EURPRD83.prod.outlook.com \
    --to=andbain@microsoft.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).