Linux Documentation
 help / color / mirror / Atom feed
From: "David Hildenbrand (Arm)" <david@kernel.org>
To: Mike Rapoport <rppt@kernel.org>,
	Suseendran Bhaskaran <suseendranb@google.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Dan Williams <djbw@kernel.org>, Alexander Graf <graf@amazon.com>,
	Alison Schofield <alison.schofield@intel.com>,
	Andy Lutomirski <luto@kernel.org>, Borislav Petkov <bp@alien8.de>,
	Catalin Marinas <catalin.marinas@arm.com>,
	Changyuan Lyu <changyuanl@google.com>,
	Dave Hansen <dave.hansen@linux.intel.com>,
	Dave Jiang <dave.jiang@intel.com>,
	David Rientjes <rientjes@google.com>,
	Frank van der Linden <fvdl@google.com>,
	"H. Peter Anvin" <hpa@zytor.com>, Ingo Molnar <mingo@redhat.com>,
	Ira Weiny <iweiny@kernel.org>, Jonathan Corbet <corbet@lwn.net>,
	"Liam R. Howlett" <liam@infradead.org>,
	Mark Rutland <mark.rutland@arm.com>,
	Michal Hocko <mhocko@suse.com>,
	Oscar Salvador <osalvador@suse.de>,
	Pasha Tatashin <pasha.tatashin@soleen.com>,
	Peter Zijlstra <peterz@infradead.org>,
	Pratyush Yadav <pratyush@kernel.org>,
	Randy Dunlap <rdunlap@infradead.org>,
	Shuah Khan <skhan@linuxfoundation.org>,
	Thomas Gleixner <tglx@kernel.org>,
	Vishal Verma <vishal.l.verma@intel.com>,
	Vlastimil Babka <vbabka@kernel.org>,
	Will Deacon <will@kernel.org>,
	kexec@lists.infradead.org, linux-arm-kernel@lists.infradead.org,
	linux-cxl@vger.kernel.org, linux-doc@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-mm@kvack.org,
	nvdimm@lists.linux.dev, x86@kernel.org
Subject: Re: [RFC PATCH 00/11] mm: NUMA-aware boot memory carving (extmem)
Date: Wed, 2 Dec 2026 16:10:37 +0100	[thread overview]
Message-ID: <38f6a880-b2ff-491a-910a-f003a01ca0e5@kernel.org> (raw)
In-Reply-To: <axAvBGwomUIAwRLo@kernel.org>

On 12/2/26 15:45, Mike Rapoport wrote:
> Hi Suseendran,
> 
> On Wed, Dec 02, 2026 at 12:19:35AM +0000, Suseendran Bhaskaran wrote:
>> Many server workloads need a portable, NUMA-aware way to carve out large
>> aligned regions of DRAM at boot -- keeping only a modest pool of System
>> RAM per NUMA node for the host kernel while handing the rest off to
>> external memory consumers outside the buddy allocator and boot vmemmap.
>> Common use cases include character DAX (/dev/daxX.Y) backing guest VMs
>> across KHO live updates, /dev/pmemX block devices backing fsdax
>> filesystems, and other driver-managed memory pools.
>>
>> Today there is no portable way to establish that split at boot across
>> x86_64 and arm64:
>>
>>  - EFI_MEMORY_SP ("Soft Reserved") requires per-host firmware setup, is
>>    absent on arm64 DeviceTree, and defaults in dax_hmem to routing via
>>    dax_kmem (where onlining overwrites backed VM memory across KHO kexec).
>>  - memmap=nn!ss is x86-only and ignores NUMA topology and firmware holes.
>>    For example, booting a 2-node x86_64 host (512 GiB total, 256 GiB per
>>    node) with memmap=448G!64G leaves NUMA node 1 with 0 kB of System RAM.
>>  - cma=, hugetlb_cma=, and reserve_mem= keep pages in System RAM, paying
>>    ~16 MiB/GiB of boot struct page arrays upfront and preventing
>>    ZONE_DEVICE or driver-managed attachment.
>>  - Runtime memory offlining cannot guarantee 1 GiB physical contiguity
>>    after early allocations (and boot RAM cannot be offlined on arm64).
>>
>> Design
>> ------
>> This series adds CONFIG_EXTMEM and a single boot parameter:
>>   extmem=[<nid>|all:]<size|max>[:<align>][:keep=<size>][,...]
>>
>>   <nid>|all    target node, every node with RAM, or any node if omitted
>>   <size|max>   bytes to carve (multiple of <align>), or "max" for all
>>                available aligned RAM above 4 GiB and keep=<size>
>>   <align>      power-of-two alignment >= section size (default: 128M on
>>                4K/16K pages, 512M on 64K pages)
>>   keep=<size>  minimum System RAM to leave uncarved on the target node(s)
> 
> I agree that we need a generic way to define memory carve-outs, but I doubt
> that a command line parameter is the way to go.

+1

And I am also not convinced that we want more of special+weird core-mm
infrastructure KHO for ("mm/extmem: preserve carved regions across KHO kexec").

-- 
Cheers,

David

      reply	other threads:[~2026-12-02 15:10 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02  0:19 [RFC PATCH 00/11] mm: NUMA-aware boot memory carving (extmem) Suseendran Bhaskaran
2026-12-02  0:19 ` [RFC PATCH 01/11] mm/cma: clamp multi-range search to 4G and honor memblock flags Suseendran Bhaskaran
2026-12-02  0:19 ` [RFC PATCH 02/11] mm/memblock: factor out multi-range contiguous reservation helper from CMA Suseendran Bhaskaran
2026-12-02  0:19 ` [RFC PATCH 03/11] x86/mm: add early direct-map unmap helpers for boot carveouts Suseendran Bhaskaran
2026-12-02  0:19 ` [RFC PATCH 04/11] arm64/mm: support unmapping boot carveouts from the linear map Suseendran Bhaskaran
2026-12-02  0:19 ` [RFC PATCH 05/11] mm/extmem: add architecture-neutral external memory subsystem Suseendran Bhaskaran
2026-12-02  0:19 ` [RFC PATCH 06/11] dax/hmem: bind extmem platform devices with per-region alignment Suseendran Bhaskaran
2026-12-02  0:19 ` [RFC PATCH 07/11] nvdimm/ramdax: manage bus and DIMM allocations with devres Suseendran Bhaskaran
2026-12-02  0:19 ` [RFC PATCH 08/11] nvdimm/ramdax: harden probe checks and select NUMA_KEEP_MEMINFO Suseendran Bhaskaran
2026-12-02  0:19 ` [RFC PATCH 09/11] nvdimm/ramdax: support binding extmem platform devices Suseendran Bhaskaran
2026-12-02  0:19 ` [RFC PATCH 10/11] x86/kaslr: avoid placing kernel in carvable high memory when extmem= is set Suseendran Bhaskaran
2026-12-02  0:19 ` [RFC PATCH 11/11] mm/extmem: preserve carved regions across KHO kexec Suseendran Bhaskaran
2026-12-02 14:45 ` [RFC PATCH 00/11] mm: NUMA-aware boot memory carving (extmem) Mike Rapoport
2026-12-02 15:10   ` David Hildenbrand (Arm) [this message]

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=38f6a880-b2ff-491a-910a-f003a01ca0e5@kernel.org \
    --to=david@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=alison.schofield@intel.com \
    --cc=bp@alien8.de \
    --cc=catalin.marinas@arm.com \
    --cc=changyuanl@google.com \
    --cc=corbet@lwn.net \
    --cc=dave.hansen@linux.intel.com \
    --cc=dave.jiang@intel.com \
    --cc=djbw@kernel.org \
    --cc=fvdl@google.com \
    --cc=graf@amazon.com \
    --cc=hpa@zytor.com \
    --cc=iweiny@kernel.org \
    --cc=kexec@lists.infradead.org \
    --cc=liam@infradead.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-cxl@vger.kernel.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=luto@kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=mhocko@suse.com \
    --cc=mingo@redhat.com \
    --cc=nvdimm@lists.linux.dev \
    --cc=osalvador@suse.de \
    --cc=pasha.tatashin@soleen.com \
    --cc=peterz@infradead.org \
    --cc=pratyush@kernel.org \
    --cc=rdunlap@infradead.org \
    --cc=rientjes@google.com \
    --cc=rppt@kernel.org \
    --cc=skhan@linuxfoundation.org \
    --cc=suseendranb@google.com \
    --cc=tglx@kernel.org \
    --cc=vbabka@kernel.org \
    --cc=vishal.l.verma@intel.com \
    --cc=will@kernel.org \
    --cc=x86@kernel.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