DPDK usage discussions
 help / color / mirror / Atom feed
From: "Wiles, Keith" <keith.wiles@intel.com>
To: Sarthak Ray <sarthak_ray@outlook.com>
Cc: "users@dpdk.org" <users@dpdk.org>
Subject: Re: [dpdk-users] rte_eal_init fails with --socket-mem set to more than 192MB per socket
Date: Wed, 31 Aug 2016 19:58:36 +0000	[thread overview]
Message-ID: <B457E6EA-B966-4353-A8BE-0FC39022180C@intel.com> (raw)
In-Reply-To: <MAXPR01MB0315D2CB0963AD71394A2A509FE30@MAXPR01MB0315.INDPRD01.PROD.OUTLOOK.COM>


Regards,
Keith

> On Aug 31, 2016, at 2:15 PM, Sarthak Ray <sarthak_ray@outlook.com> wrote:
> 
> Hi,
> 
> I am using dpdk-2.1.0 and I am not able to reserve memory beyond 192MB per socket by using --socket-mem option. I see below error logs, though my system has enough free memory.
> 
> EAL: Not enough memory available on socket 0! Requested: 256MB, available: 192MB
> PANIC in rte_eal_init():
\Most of the time this means that contiguous memory is not available and you have fragmented huge pages. The normal fix is to make sure you allocate the huge pages early in boot up, which to me means making sure you have the /etc/sysctl.conf file setup with the number of huge pages.

vm.nr_hugepages=NNN

> 
> # numactl -H
> available: 2 nodes (0-1)
> node 0 cpus: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
> node 0 size: 65170 MB
> node 0 free: 47433 MB
> node 1 cpus: 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
> node 1 size: 65536 MB
> node 1 free: 49999 MB
> node distances:
> node   0   1
>  0:  10  21
>  1:  21  10
> 
> Is there any max limit for reserving memory per socket? If yes, then please suggest me how to increase that limit.
> 
> Thanks in advance,
> Sarthak

  reply	other threads:[~2016-08-31 19:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-31 19:15 Sarthak Ray
2016-08-31 19:58 ` Wiles, Keith [this message]
2016-09-01  6:46   ` Sarthak Ray

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=B457E6EA-B966-4353-A8BE-0FC39022180C@intel.com \
    --to=keith.wiles@intel.com \
    --cc=sarthak_ray@outlook.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).