DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Burakov, Anatoly" <anatoly.burakov@intel.com>
To: Bruce Richardson <bruce.richardson@intel.com>
Cc: <dev@dpdk.org>, Wathsala Vithanage <wathsala.vithanage@arm.com>
Subject: Re: [PATCH v2 4/6] eal/memory: get rid of global VA space limits
Date: Wed, 27 May 2026 10:35:09 +0200	[thread overview]
Message-ID: <2ce0e4a2-b682-4ac3-a0f2-d69ded1babe8@intel.com> (raw)
In-Reply-To: <ahXEJslh20SWaq3E@bricha3-mobl1.ger.corp.intel.com>

On 5/26/2026 6:02 PM, Bruce Richardson wrote:
> On Fri, Mar 13, 2026 at 04:06:35PM +0000, Anatoly Burakov wrote:
>> Currently, all VA space reservations take into account global memory limit.
>> The original intent was to limit memory allocations to however many NUMA
>> nodes the machine had taking into the account that socket ID's may be
>> discontiguous. Since we have had "socket count" API for while and it gives
>> us correct NUMA node count, taking discontiguousness into account, we can
>> relax the total limits and remove the restrictions, and let VA space usage
>> scale with NUMA nodes.
>>
>> The only place where we actually require a hard limit is in 32-bit code,
>> where we cannot allocate more than 2G of VA space.
>>
>> Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
> 
> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
> 
> Asking AI about this patch flags an issue whereby the contigmem driver does
> not guarantee the number of buffers is >0, which can cause issues. However,
> that's better fixed in contigmem.
> 
> One additional comment inline below.
> 

<snip>

>> diff --git a/doc/guides/prog_guide/env_abstraction_layer.rst b/doc/guides/prog_guide/env_abstraction_layer.rst
>> index 04368a3950..63e0568afa 100644
>> --- a/doc/guides/prog_guide/env_abstraction_layer.rst
>> +++ b/doc/guides/prog_guide/env_abstraction_layer.rst
>> @@ -208,8 +208,6 @@ variables:
>>     can have (where "type" is defined as "page size + NUMA node" combination)
> 
> Is the RTE_MAX_MEMSEG_PER_TYPE value still necessary?

Yes, the "per list" values are gone, but "per type" values stay as they 
provide the defaults.

> 
>>   * ``RTE_MAX_MEM_MB_PER_TYPE`` controls how much megabytes of memory each
>>     memory type can address
>> -* ``RTE_MAX_MEM_MB`` places a global maximum on the amount of memory
>> -  DPDK can reserve
>>
> <snip>


-- 
Thanks,
Anatoly

  reply	other threads:[~2026-05-27  8:35 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-11 10:58 [PATCH v1 0/5] Make VA reservation limits configurable Anatoly Burakov
2026-03-11 10:58 ` [PATCH v1 1/5] eal/memory: always use one segment per memory type Anatoly Burakov
2026-03-11 10:58 ` [PATCH v1 2/5] eal/memory: allocate all VA space in one go Anatoly Burakov
2026-03-11 10:58 ` [PATCH v1 3/5] eal/memory: get rid of global VA space limits Anatoly Burakov
2026-03-11 10:58 ` [PATCH v1 4/5] eal/memory: store default segment limits in config Anatoly Burakov
2026-03-11 10:58 ` [PATCH v1 5/5] eal/memory: add page size VA limits EAL parameter Anatoly Burakov
2026-03-13 16:06 ` [PATCH v2 0/6] Make VA reservation limits configurable Anatoly Burakov
2026-03-13 16:06   ` [PATCH v2 1/6] eal: reject non-numeric input in str to size Anatoly Burakov
2026-03-13 16:16     ` Bruce Richardson
2026-03-13 16:06   ` [PATCH v2 2/6] eal/memory: remove per-list segment and memory limits Anatoly Burakov
2026-05-26 14:57     ` Bruce Richardson
2026-03-13 16:06   ` [PATCH v2 3/6] eal/memory: allocate all VA space in one go Anatoly Burakov
2026-05-26 15:25     ` Bruce Richardson
2026-03-13 16:06   ` [PATCH v2 4/6] eal/memory: get rid of global VA space limits Anatoly Burakov
2026-05-26 16:02     ` Bruce Richardson
2026-05-27  8:35       ` Burakov, Anatoly [this message]
2026-03-13 16:06   ` [PATCH v2 5/6] eal/memory: store default segment limits in config Anatoly Burakov
2026-05-26 16:08     ` Bruce Richardson
2026-03-13 16:06   ` [PATCH v2 6/6] eal/memory: add page size VA limits EAL parameter Anatoly Burakov
2026-05-26 16:16     ` Bruce Richardson
2026-06-01  9:14       ` Burakov, Anatoly
2026-06-01  9:21       ` Burakov, Anatoly
2026-05-29 16:15 ` [PATCH v3 0/6] Make VA reservation limits configurable Anatoly Burakov
2026-05-29 16:15   ` [PATCH v3 1/6] eal: reject non-numeric input in str to size Anatoly Burakov
2026-05-29 16:15   ` [PATCH v3 2/6] eal/memory: remove per-list segment and memory limits Anatoly Burakov
2026-05-29 16:15   ` [PATCH v3 3/6] eal/memory: allocate all VA space in one go Anatoly Burakov
2026-05-29 16:15   ` [PATCH v3 4/6] eal/memory: get rid of global VA space limits Anatoly Burakov
2026-05-29 16:15   ` [PATCH v3 5/6] eal/memory: store default segment limits in config Anatoly Burakov
2026-05-29 16:15   ` [PATCH v3 6/6] eal/memory: add page size VA limits EAL parameter Anatoly Burakov
2026-06-04  8:22   ` [PATCH v3 0/6] Make VA reservation limits configurable Thomas Monjalon

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=2ce0e4a2-b682-4ac3-a0f2-d69ded1babe8@intel.com \
    --to=anatoly.burakov@intel.com \
    --cc=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    --cc=wathsala.vithanage@arm.com \
    /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