DPDK usage discussions
 help / color / mirror / Atom feed
From: "Burakov, Anatoly" <anatoly.burakov@intel.com>
To: Thomas Monjalon <thomas@monjalon.net>,
	Mohammad Masumi <mmasumi@gmail.com>
Cc: "users@dpdk.org" <users@dpdk.org>,
	"dmitry.kozliuk@gmail.com" <dmitry.kozliuk@gmail.com>,
	"Richardson, Bruce" <bruce.richardson@intel.com>,
	 "stephen@networkplumber.org" <stephen@networkplumber.org>
Subject: RE: [dpdk-users] Memory allocation limits
Date: Wed, 29 Sep 2021 10:14:26 +0000
Message-ID: <PH0PR11MB509303BFA63B5C9EF0888A8BF7A99@PH0PR11MB5093.namprd11.prod.outlook.com> (raw)
In-Reply-To: <1728391.6pqWS55XY0@thomas>

> -----Original Message-----
> From: Thomas Monjalon <thomas@monjalon.net>
> Sent: Wednesday, September 29, 2021 10:59 AM
> To: Mohammad Masumi <mmasumi@gmail.com>
> Cc: users@dpdk.org; Burakov, Anatoly <anatoly.burakov@intel.com>;
> dmitry.kozliuk@gmail.com; Richardson, Bruce
> <bruce.richardson@intel.com>; stephen@networkplumber.org
> Subject: Re: [dpdk-users] Memory allocation limits
> 
> 26/09/2021 17:52, Mohammad Masumi:
> > Hi
> >
> > I have HP server with 768GB memory 384GB in each Numa but I can't
> > allocate more than 64GB by rte_malloc by changing some parameters in
> > rte_config.h it increased to 128GB How to increase heap size?
> 
> adding people Cc to help
> 

Hi,

This is intentional. In order to increase the amount of contiguous allocation possible to perform in DPDK, you need to adjust the following values in rte_config.h:

#define RTE_MAX_MEMSEG_PER_LIST 8192
#define RTE_MAX_MEM_MB_PER_LIST 32768
#define RTE_MAX_MEMSEG_PER_TYPE 32768
#define RTE_MAX_MEM_MB_PER_TYPE 65536

I do not recommend arbitrarily changing them as this is untested, but increasing them proportionally (e.g. multiply all of them by 2 or 4) should not break anything.

Thanks,
Anatoly

  reply	other threads:[~2021-09-29 10:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-26 15:52 Mohammad Masumi
2021-09-29  9:58 ` Thomas Monjalon
2021-09-29 10:14   ` Burakov, Anatoly [this message]
2021-09-29 11:12     ` Thomas Monjalon
2021-09-29 12:43       ` Burakov, Anatoly
2021-09-29 12:55         ` Thomas Monjalon
2022-04-01 20:43 Dave Sclarsky
2022-04-01 21:42 Dave Sclarsky

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=PH0PR11MB509303BFA63B5C9EF0888A8BF7A99@PH0PR11MB5093.namprd11.prod.outlook.com \
    --to=anatoly.burakov@intel.com \
    --cc=bruce.richardson@intel.com \
    --cc=dmitry.kozliuk@gmail.com \
    --cc=mmasumi@gmail.com \
    --cc=stephen@networkplumber.org \
    --cc=thomas@monjalon.net \
    --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

DPDK usage discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.dpdk.org/users/0 users/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 users users/ http://inbox.dpdk.org/users \
		users@dpdk.org
	public-inbox-index users

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.users


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git