All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yury Norov <ynorov@nvidia.com>
To: gourry@gourry.net
Cc: "Yury Norov" <yury.norov@gmail.com>,
	"Rasmus Villemoes" <linux@rasmusvillemoes.dk>,
	"David Hildenbrand" <david@kernel.org>,
	"Liam R. Howlett" <liam@infradead.org>,
	"Vlastimil Babka" <vbabka@kernel.org>,
	"Mike Rapoport" <rppt@kernel.org>,
	"Michal Hocko" <mhocko@suse.com>,
	"Andrew Morton" <akpm@linux-foundation.org>,
	"Oscar Salvador" <osalvador@suse.de>,
	"Johannes Weiner" <hannes@cmpxchg.org>,
	"Suren Baghdasaryan" <surenb@google.com>,
	"Brendan Jackman" <brendan.jackman@linux.dev>,
	"Zi Yan" <ziy@nvidia.com>, "Jonathan Corbet" <corbet@lwn.net>,
	"Shuah Khan" <skhan@linuxfoundation.org>,
	"Randy Dunlap" <rdunlap@infradead.org>,
	"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	"Rafael J. Wysocki" <rafael@kernel.org>,
	"Danilo Krummrich" <dakr@kernel.org>,
	"Johan Hovold" <johan@kernel.org>,
	"Joshua Hahn" <joshua.hahnjy@gmail.com>,
	"Rakie Kim" <rakie.kim@sk.com>,
	"Ying Huang" <ying.huang@linux.alibaba.com>,
	"Matthew Brost" <matthew.brost@intel.com>,
	"Byungchul Park" <byungchul@sk.com>,
	"Alistair Popple" <apopple@nvidia.com>, "SJ Park" <sj@kernel.org>,
	"Ingo Molnar" <mingo@redhat.com>,
	"Peter Zijlstra" <peterz@infradead.org>,
	"Juri Lelli" <juri.lelli@redhat.com>,
	"Vincent Guittot" <vincent.guittot@linaro.org>,
	"Dietmar Eggemann" <dietmar.eggemann@arm.com>,
	"Steven Rostedt" <rostedt@goodmis.org>,
	"Ben Segall" <bsegall@google.com>, "Mel Gorman" <mgorman@suse.de>,
	"Valentin Schneider" <vschneid@redhat.com>,
	"K Prateek Nayak" <kprateek.nayak@amd.com>,
	"Kees Cook" <kees@kernel.org>, "Kairui Song" <kasong@tencent.com>,
	"Barry Song" <baohua@kernel.org>, "Qi Zheng" <qi.zheng@linux.dev>,
	"Shakeel Butt" <shakeel.butt@linux.dev>,
	"Axel Rasmussen" <axelrasmussen@google.com>,
	"Yuanchu Xie" <yuanchu@google.com>, "Wei Xu" <weixugc@google.com>,
	"Baoquan He" <baoquan.he@linux.dev>,
	"Baolin Wang" <baolin.wang@linux.alibaba.com>,
	"Michal Hocko" <mhocko@kernel.org>,
	"David Rientjes" <rientjes@google.com>,
	"Pavel Machek" <pavel@kernel.org>, "Len Brown" <lenb@kernel.org>,
	"Nico Pache" <nico.pache@linux.dev>,
	"Ryan Roberts" <ryan.roberts@arm.com>,
	"Dev Jain" <dev.jain@arm.com>,
	"Lance Yang" <lance.yang@linux.dev>,
	"Usama Arif" <usama.arif@linux.dev>,
	"Kiryl Shutsemau" <kas@kernel.org>, "Xu Xin" <xu.xin@linux.dev>,
	"Chengming Zhou" <chengming.zhou@linux.dev>,
	"Lorenzo Stoakes" <ljs@kernel.org>,
	"Pedro Falcato" <pfalcato@suse.de>,
	"Jann Horn" <jannh@google.com>, "Chris Li" <chrisl@kernel.org>,
	"Kemeng Shi" <shikemeng@huaweicloud.com>,
	"Nhat Pham" <nphamcs@gmail.com>,
	"Youngjun Park" <youngjun.park@lge.com>,
	"Matthew Wilcox (Oracle)" <willy@infradead.org>,
	"Jan Kara" <jack@suse.cz>, "Waiman Long" <longman@redhat.com>,
	"Ridong Chen" <ridong.chen@linux.dev>,
	"Tejun Heo" <tj@kernel.org>, "Michal Koutný" <mkoutny@suse.com>,
	"Dan Williams" <djbw@kernel.org>,
	"Vishal Verma" <vishal.l.verma@intel.com>,
	"Dave Jiang" <dave.jiang@intel.com>,
	"Alison Schofield" <alison.schofield@intel.com>,
	"Shuah Khan" <shuah@kernel.org>,
	linux-kernel@vger.kernel.org, linux-mm@kvack.org,
	linux-cxl@vger.kernel.org, linux-doc@vger.kernel.org,
	driver-core@lists.linux.dev, damon@lists.linux.dev,
	linux-pm@vger.kernel.org, linux-fsdevel@vger.kernel.org,
	cgroups@vger.kernel.org, nvdimm@lists.linux.dev,
	linux-kselftest@vger.kernel.org
Subject: Re: [PATCH 00/60] Private NUMA nodes
Date: Sun, 22 Nov 2026 11:51:04 -0500	[thread overview]
Message-ID: <awMdeK8O-5mffg2m@yury> (raw)
In-Reply-To: <20261120-private_nodes_v6-v1-0-74f5f9a115c2@gourry.net>

On Fri, Nov 20, 2026 at 01:08:51PM -0500, Gregory Price via B4 Relay wrote:
> This is v6 of the Private NUMA node series. The series falls into four
> parts, each building on the one before:
> 
>    1-18  mm: introduce N_MEMORY_COMMON

I walked through this part, mostly. It looks like you can substantially
decrease the patch count if you keep N_MEMORY meaning unchanged, and
add another type, like N_MEMORY_NOALLOC.

>   19-26  restrict folio-walking MM services to common memory
>   27-44  N_MEMORY_PRIVATE, kept out of cpusets, mempolicy, accounting
>          and the page allocator's ordinary paths
>   45-61  private node features, memory hotplug of private memory,
>          dax/kmem private mode, selftests and documentation
> 
> Patches 1-26 change no behavior on any system and can be reviewed and
> merged on their own. Without private nodes, every path in patches 27-61
> behaves as before.
> 
> The full stack is also available at:
> https://github.com/gourryinverse/linux/tree/scratch/gourry/managed_nodes/private_nodes_v6
> 
> Motivation
> ==========
> 
> Some memory should be visible as a NUMA node without becoming part of
> the general allocation pool: HBM, coherent GPU or accelerator memory,
> or device memory a driver hands out itself.
> 
> Today such memory is either ordinary System RAM, where any allocation
> can fall back onto it and every MM service manages it, or ZONE_DEVICE,
> where the buddy allocator and the MM services are not available at all.
> 
> Private nodes sit in between. Their memory is managed by the buddy
> allocator, but ordinary allocations never land on it, and generic MM
> services leave it alone unless the node opts back in.
> 
> Model
> =====
> 
>   N_MEMORY = N_MEMORY_COMMON + N_MEMORY_PRIVATE
> 
>   - N_MEMORY keeps meaning "this node has memory".
>   - N_MEMORY_COMMON means ordinary allocations and kernel services
>     may use it.
>   - Allocation isolation comes from the zonelists: a private node is
>     on no fallback zonelist and has an empty __GFP_THISNODE zonelist.
>     It is reached only through its own private zonelist.
>   - Services that walk existing folios check folio_is_common_memory()
>     where they already skip ZONE_DEVICE.
>   - A private node can opt into compaction, reclaim and userspace
>     placement through per-node features. The services are written in
>     terms of their own node state (N_MEMORY_RECLAIM, ...), so services
>     don't need to be "aware" of anything but themselves.
> 
> The node state use / filtering model goes as such:
>   1) If you're walking the normal zonelists, you're already filtered
>   2) If you're walking nodelists to touch memory, filter on
>      N_MEMORY_COMMON by default (replacing N_MEMORY).
>   3) If you're walking structures to operate on folios / pages,
>      check folio_is_common_memory() (replacing zone_device checks)
>   4) If the service allows private memory interactions, use the
>      N_MEMORY_<FEATURE> bit corresponding to the service.
> 
>      e.g.: reclaim checks N_MEMORY_FEATURE when walking N_MEMORY
>      or when walking the private memory zonelist.
> 
> N_MEMORY_COMMON (patches 1-18)
> ==============================
> 
> N_MEMORY has two meanings today:
>   1) this node has memory
>   2) ordinary allocations and MM services can use this node's memory
> 
> The two are the same today. They stop being the same once a NUMA node
> with memory isn't part of the general allocation pool.
> 
> N_MEMORY_COMMON takes the second meaning, and the N_MEMORY users that
> mean it are converted. N_MEMORY continues reporting memory topology.
> 
> The rule for choosing between them:
> 
>   N_MEMORY         the node has memory: topology, per-node metadata and
>                    statistics, cpuset.mems.
>   N_MEMORY_COMMON  ordinary allocations or a kernel service may use the
>                    node's memory: zonelists, allocation and migration
>                    targets, per-node service threads, and sizing or
>                    accounting meant for ordinary allocations.
> 
> Code that walks the existing zonelist needs no check. The zonelists
> are built from N_MEMORY_COMMON, so they already hold only memory the
> allocation may use.
> 
> Unless a system actually has a private node, N_MEMORY and
> N_MEMORY_COMMON are the same set, so behavior should be unchanged.
> 
>   1-3   node-state helpers, N_MEMORY_COMMON itself, and the
>         `has_common_memory` sysfs ABI.
>   4     zonelists: the fallback lists hold common nodes, and a node's
>         __GFP_THISNODE list is built only for a common node
>   5-11  allocation and migration targets
>   12-13 kswapd and kcompactd
>   14-18 sizing and accounting meant for ordinary allocations
> 
> has_common_memory lists the same nodes as has_memory until memory
> outside N_MEMORY_COMMON exists. It is added now so that userspace, such
> as libnuma, can start choosing allocation targets from it, and so that
> the meaning is fixed before anything makes the two lists differ.
> 
> Folio-walking MM services (patches 19-26)
> =========================================
> 
> Patches 1-18 decide where memory comes from: zonelists, allocation
> targets and per-node services follow N_MEMORY_COMMON. Some MM services
> instead reach folios that already exist, wherever they are: through
> page tables (KSM, khugepaged, NUMA hinting, madvise, mbind() and
> migrate_pages(), move_pages()) or through physical addresses (DAMON).
> 
> These services skip ZONE_DEVICE folios with folio_is_zone_device() and
> page_is_zone_device().
> 
> Patch 19 generalizes those checks into folio_is_common_memory() and
> page_is_common_memory(), which reject ZONE_DEVICE folios and folios
> on a node outside N_MEMORY_COMMON.
> 
> The rule: a service that walks folios checks folio_is_common_memory()
> where it would otherwise check folio_is_zone_device().
> 
> Rather than add new hooks to page-table and pfn walkers, this reuses the
> places that already opt ZONE_DEVICE memory out.
> 
>   19    folio_is_common_memory() and page_is_common_memory()
>   20-26 ZONE_DEVICE checks in folio-walking services become
>         page/folio_is_common_memory(). One component per patch.
> 
> N_MEMORY_PRIVATE (patches 27-44)
> ================================
> 
> Patches 27-44 add the memory that makes N_MEMORY and N_MEMORY_COMMON
> differ. A private node has online System RAM that ordinary allocations
> do not use and MM services leave alone, so neither an allocation that
> names no node nor a node-local kernel allocation can land on it.
> 
> Most of these patches add the explicit opt-outs that the N_MEMORY ->
> N_MEMORY_COMMON conversion did not cover, largely concentrated in
> cpuset, mempolicy and migration.
> 
> In the page allocator, each node gets a private zonelist holding its
> own zones only if it is private. MM code reaches private memory only
> through that zonelist (ALLOC_ZONELIST_PRIVATE plus a nodemask).
> 
> A private request whose node becomes ineligible relaxes onto common
> memory, and exhausting private memory fails the allocation (SIGBUS on
> fault) instead of invoking the OOM killer (this can change in the
> future with additional work).
> 
> Nothing in patches 27-44 creates private memory. Memory hotplug of
> private memory, with dax/kmem as its first user, comes in patches
> 56-57, after the feature bits that let a private node opt into
> reclaim, compaction and userspace placement.
> 
>   27-28 N_MEMORY_PRIVATE, exported as has_private_memory.
>         A per-node feature mask on the pgdat.
>   29-30 accounting: MemTotal/MemFree/other limits ignore private mem.
>         the auto-movable online policy ignores private memory
>   31-35 cpusets and mempolicy: private nodes are inherited only on
>         request, never rebound onto, never spread over, and never
>         migrate_pages() destinations
>   36    explicit reclaim and compaction requests refuse private nodes
>   37-44 page allocator:
>         37-38 the reserves and watermarks, and contiguous allocation,
>               skip/refuse private memory
>         39-40 the private zonelist and its selection by MM callers
>         41    a private request whose node becomes ineligible relaxes
>               onto common memory to ensure forward progress
>         42    exhausting private memory fails with SIGBUS, like an
>               exhausted HugeTLB pool
>         43    an alloc_flags-aware folio allocator (Brendan Jackman)
>         44    a bind policy whose nodes became private falls back to
>               common memory
> 
> Private node features and providers (patches 45-61)
> ===================================================
> 
> Patches 1-44 keep every generic MM service off private memory.
> 
> Some private memory wants a few of them back: HBM or coherent GPU
> memory that userspace manages with mbind() and migrate_pages() needs
> reclaim and compaction, while staying out of incidental allocation
> (no fallback onto it, only explicit placement).
> 
> Patches 45-55 add three opt-in feature bits and corresponding node
> states:
> 
>   N_MEMORY_COMPACTION   kcompactd, proactive and explicit compaction
>   N_MEMORY_RECLAIM      kswapd, memcg and explicit reclaim
>   N_MEMORY_MEMPOLICY    mbind() and explicit migration may target it
> 
> The states cover what the kernel does on its own initiative. Direct
> reclaim and compaction serve an allocation within its own zonelist, so
> an allocation from a private node may reclaim and compact it either way.
> 
> RECLAIM requires COMPACTION, and MEMPOLICY requires both. Userspace
> control (mbind, migration) generates fragmentation, and as a result
> private allocations would fail unpredictably without reclaim/compaction.
> 
> Relcaim and compaction are required by mempolicy because otherwise
> order-N allocations cause unpredictable out of memory conditions due
> to fragmentation.
> 
> Demotion and NUMA balancing support are deferred to a later series
> but can be trivially support to allow demotions from HBM to DRAM
> as a way of cheap tiering.
> 
> Every common node carries all three, so the existing N_MEMORY_COMMON
> users that mean "reclaim" or "compaction" move to the new states.
> 
> Service support:
> 
>   45-46 N_MEMORY_COMPACTION, and compaction switched to it
>   47-48 N_MEMORY_RECLAIM, and reclaim switched to it
>   49    madvise reclaim advice only for reclaim-capable memory
>   50    memcg reclaim also visits private nodes that permit reclaim
>   51    N_MEMORY_MEMPOLICY
>   52    explicit migration acts on N_MEMORY_MEMPOLICY memory
>   53    N_MEMORY_MEMPOLICY memory counts as general-purpose.
>         MemAvailable (free and file pages) and dirty limits count
> 	only common memory.
>   54    MPOL_F_PRIVATE_NODES: mbind() flag that binds a mapping to
>         one private node.
>   55    migrate_pages() support for N_MEMORY_MEMPOLICY nodes
> 
> Creating a private node
> 
>   56    memory hotplug of private memory, with a feature mask
>   57    dax/kmem private mode
> 
> Testing and Documentation:
> 
>   58-60 selftests: private kmem devices and services, memory policy
>         bindings, migration and exhaustion, and cpuset interaction
>   61    Documentation/mm/numa_private_nodes.rst
> 
> MPOL_F_PRIVATE_NODES is new uapi. Without it, private nodes in an
> mbind() mask are ignored, similar to nodes outside the cpuset.
> 
> libnuma and numactl need a matching change to reach private nodes.
> 
> There is no sysfs list of the nodes that accept private bindings.
> userspace can probe with MPOL_F_PRIVATE_NODES.  Otherwise - we can
> discuss how service support should be discoverable to userspace.
> 
> Memory hotplug is the only source of private memory right now.
> 
> All System RAM on a node shares one configuration: hotplug with a
> different one fails with -EBUSY.
> 
> Costs and known limits
> ======================
> 
>   - ZONELIST_PRIVATE is a third zonelist per pgdat; with NODES_SHIFT=10
>     that is about 80KB per possible node, though a private zonelist
>     holds at most one node's zones.
> 
>     local-only zonelists can be space-optimized if this matters.
> 
>   - Free page reporting reports free private pages like any others.
> 
>   - Tasks are OOM-scored by all of their resident memory,
>     private pages included.
> 
> Changes since v5 ("Private Memory NUMA Nodes")
> ==============================================
> 
>   - Reordered so the N_MEMORY audit (patches 1-26) comes first and can
>     be reviewed (and merged) on its own if desired.
>   - Capabilities became memory features with node states, so a service
>     can be written in terms of itself: reclaim walks N_MEMORY_RECLAIM,
>     compaction N_MEMORY_COMPACTION.
>   - The capability set is pared down to COMPACTION, RECLAIM and
>     MEMPOLICY for the first run.  DEMOTION, NUMA_BALANCING, and
>     compressed RAM support are deferred.
>   - The private zonelist is now local-only. A fallback variant can be
>     added if a use case needs one.
>   - cpuset and OOM semantics are worked out:
>       - cpuset.mems governs private nodes
>       - private-only request inherits the parent's common nodes.
>   - Private bindings are an explicit uapi flag, MPOL_F_PRIVATE_NODES,
>     rather than inferred from the nodemask.
>   - Exhausting private placement fails the fault with SIGBUS, as an
>     exhausted HugeTLB pool does, instead of invoking the OOM killer.
>     OOM support can be added later, but this keeps initial support
>     reasonable simple.
> 
> Signed-off-by: Gregory Price (Meta) <gourry@gourry.net>
> ---
> Gregory Price (Meta) (60):
>       nodemask: add node-state iterators
>       mm: publish and clear node memory states via helpers
>       mm: introduce the common-memory node state
>       mm/page_alloc: build zonelists from common memory
>       mm/mempolicy: keep interleave and tmpfs mount policies on common memory
>       mm/memory_hotplug: migrate offlined pages to common memory
>       mm/memory-tiers: restrict demotion topology to common memory
>       mm/migrate: reject move_pages() destinations outside common memory
>       mm/damon: reject migration destinations outside common memory
>       sched/numa: restrict NUMA migration targets to common memory
>       fork: check cached stack locality only on common memory nodes
>       mm/vmscan: restrict reclaim to common memory
>       mm/compaction: restrict compaction to common memory
>       mm: base hash distribution on common memory nodes
>       mm/page_alloc: count common memory nodes for kswapd recovery
>       mm/oom_kill: compare OOM constraints against common memory
>       PM: hibernate: size the image from common memory
>       mm/khugepaged: base the recommended min_free_kbytes on common memory
>       mm: add folio_is_common_memory() and page_is_common_memory()
>       mm/ksm: restrict merging to common memory
>       mm/khugepaged: restrict collapse to common memory
>       mm/mempolicy: don't NUMA-hint folios outside common memory
>       mm/damon: restrict DAMON-native folio operations to common memory
>       mm/madvise: restrict reclaim advice to common memory
>       mm/mempolicy: queue only common memory for mbind() and migrate_pages()
>       mm/migrate: leave pages outside common memory in move_pages()
>       mm: add the private-memory node state
>       mm: select memory features per node
>       mm: keep private memory out of the system memory totals
>       mm/memory_hotplug: keep private memory out of the auto-movable ratio
>       cgroup/cpuset: inherit common memory when a nodemask is private only
>       cgroup/cpuset: keep spread page cache off private nodes
>       cgroup/cpuset: ignore private nodes when matching OOM victims
>       mm/mempolicy: don't rebind policies onto private nodes
>       mm/mempolicy: keep private nodes out of migrate_pages() destinations
>       mm: refuse explicit reclaim and compaction of private nodes
>       mm/page_alloc: keep private memory out of reclaim reserves
>       mm/page_alloc: refuse contiguous allocation from private memory
>       mm/page_alloc: add a private-node zonelist
>       mm/page_alloc: let MM callers select the local private zonelist
>       mm/page_alloc: relax a private request whose node becomes ineligible
>       mm: fail private placement on exhaustion instead of OOM killing
>       mm/page_alloc: fall back when a bind policy's nodes become private
>       mm: add N_MEMORY_COMPACTION node state
>       mm/compaction: restrict compaction to N_MEMORY_COMPACTION
>       mm: add N_MEMORY_RECLAIM node state
>       mm/vmscan: restrict reclaim to N_MEMORY_RECLAIM instead of N_MEMORY_COMMON
>       mm/madvise: restrict reclaim advice to reclaim-capable memory
>       mm/vmscan: reclaim private nodes for memcg
>       mm: add N_MEMORY_MEMPOLICY node state
>       mm: restrict explicit migration to N_MEMORY_MEMPOLICY
>       mm: count memory with userspace placement as general purpose
>       mm/mempolicy: add MPOL_F_PRIVATE_NODES for private node bindings
>       mm/migrate: route explicit NUMA migration to private nodes
>       mm/memory_hotplug: online and offline private memory nodes
>       dax/kmem: add a private memory mode
>       selftests/dax: test private kmem devices and services
>       selftests/dax: test memory policy on private nodes
>       selftests/dax: test cpuset interaction with private nodes
>       Documentation/mm: describe private memory nodes
> 
>  Documentation/ABI/stable/sysfs-devices-node        |  27 +
>  Documentation/ABI/testing/sysfs-bus-dax            |  19 +
>  Documentation/admin-guide/cgroup-v1/cpusets.rst    |   7 +
>  Documentation/admin-guide/cgroup-v2.rst            |  13 +-
>  .../admin-guide/mm/numa_memory_policy.rst          |  22 +
>  Documentation/mm/index.rst                         |   1 +
>  Documentation/mm/numa_private_nodes.rst            | 223 ++++++++
>  Documentation/mm/physical_memory.rst               |  25 +-
>  drivers/base/node.c                                |   9 +-
>  drivers/dax/kmem.c                                 |  55 +-
>  include/linux/memory_hotplug.h                     |   2 +-
>  include/linux/mmzone.h                             |   6 +-
>  include/linux/nodemask.h                           |  74 ++-
>  include/linux/sched.h                              |   2 +
>  include/linux/swap.h                               |   4 +-
>  include/uapi/linux/mempolicy.h                     |   4 +-
>  kernel/cgroup/cpuset.c                             |  85 ++-
>  kernel/fork.c                                      |   2 +-
>  kernel/power/snapshot.c                            |  15 +-
>  kernel/sched/fair.c                                |   2 +-
>  mm/compaction.c                                    |  10 +-
>  mm/damon/core.c                                    |   5 +-
>  mm/damon/ops-common.c                              |   7 +-
>  mm/damon/vaddr.c                                   |   2 +-
>  mm/huge_memory.c                                   |   2 +-
>  mm/internal.h                                      |  71 +++
>  mm/khugepaged.c                                    |  20 +-
>  mm/ksm.c                                           |   8 +-
>  mm/madvise.c                                       |   6 +-
>  mm/memory-tiers.c                                  |  23 +-
>  mm/memory.c                                        |   5 +
>  mm/memory_hotplug.c                                | 120 ++--
>  mm/mempolicy.c                                     | 165 ++++--
>  mm/migrate.c                                       |  15 +-
>  mm/mm_init.c                                       |  20 +-
>  mm/mmap.c                                          |   6 +-
>  mm/nommu.c                                         |   4 +-
>  mm/oom_kill.c                                      |   7 +-
>  mm/page-writeback.c                                |   7 +-
>  mm/page_alloc.c                                    | 199 ++++++-
>  mm/page_alloc.h                                    |  22 +-
>  mm/show_mem.c                                      |  49 +-
>  mm/vmscan.c                                        |  58 +-
>  tools/testing/selftests/dax/.gitignore             |   3 +
>  tools/testing/selftests/dax/Makefile               |  10 +
>  tools/testing/selftests/dax/config                 |   6 +
>  tools/testing/selftests/dax/kmem_private.sh        |  94 ++++
>  tools/testing/selftests/dax/kmem_private_cpuset.sh |  70 +++
>  tools/testing/selftests/dax/kmem_private_policy.sh |  58 ++
>  .../selftests/dax/kmem_private_policy_tool.c       | 620 +++++++++++++++++++++
>  tools/testing/selftests/dax/kmem_private_rebind.sh | 301 ++++++++++
>  .../selftests/dax/kmem_private_rebind_tool.c       | 495 ++++++++++++++++
>  .../testing/selftests/dax/kmem_private_services.sh |  97 ++++
>  tools/testing/selftests/dax/private_node_common.sh | 268 +++++++++
>  tools/testing/selftests/dax/settings               |   2 +-
>  55 files changed, 3249 insertions(+), 203 deletions(-)
> ---
> base-commit: 15f114dac9a7bde1796f0e54e22726fd31cfa8a5
> change-id: 20261120-private_nodes_v6-64d04596e126
> 
> Best regards,
> -- 
> ~Gregory
> 

  parent reply	other threads:[~2026-11-22 16:51 UTC|newest]

Thread overview: 202+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-20 18:08 [PATCH 00/60] Private NUMA nodes Gregory Price via B4 Relay
2026-11-20 18:08 ` Gregory Price (Meta)
2026-11-20 18:08 ` [PATCH 01/60] nodemask: add node-state iterators Gregory Price via B4 Relay
2026-11-20 18:08   ` Gregory Price (Meta)
2026-11-20 18:20   ` sashiko-bot
2026-11-22 15:32   ` Yury Norov
2026-11-23 14:01     ` Gregory Price (Meta)
2026-11-24 21:00       ` Yury Norov
2026-11-20 18:08 ` [PATCH 02/60] mm: publish and clear node memory states via helpers Gregory Price via B4 Relay
2026-11-20 18:08   ` Gregory Price (Meta)
2026-11-20 18:20   ` sashiko-bot
2026-11-20 18:08 ` [PATCH 03/60] mm: introduce the common-memory node state Gregory Price via B4 Relay
2026-11-20 18:08   ` Gregory Price (Meta)
2026-11-20 18:22   ` sashiko-bot
2026-11-22 15:52   ` Yury Norov
2026-11-20 18:08 ` [PATCH 04/60] mm/page_alloc: build zonelists from common memory Gregory Price via B4 Relay
2026-11-20 18:08   ` Gregory Price (Meta)
2026-11-20 18:27   ` sashiko-bot
2026-11-20 18:08 ` [PATCH 05/60] mm/mempolicy: keep interleave and tmpfs mount policies on " Gregory Price via B4 Relay
2026-11-20 18:08   ` Gregory Price (Meta)
2026-11-20 18:22   ` sashiko-bot
2026-11-20 18:08 ` [PATCH 06/60] mm/memory_hotplug: migrate offlined pages to " Gregory Price via B4 Relay
2026-11-20 18:08   ` Gregory Price (Meta)
2026-11-20 18:20   ` sashiko-bot
2026-11-20 18:08 ` [PATCH 07/60] mm/memory-tiers: restrict demotion topology " Gregory Price via B4 Relay
2026-11-20 18:08   ` Gregory Price (Meta)
2026-11-20 18:21   ` sashiko-bot
2026-11-20 18:08 ` [PATCH 08/60] mm/migrate: reject move_pages() destinations outside " Gregory Price via B4 Relay
2026-11-20 18:08   ` Gregory Price (Meta)
2026-11-20 18:19   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 09/60] mm/damon: reject migration " Gregory Price via B4 Relay
2026-11-20 18:09   ` Gregory Price (Meta)
2026-11-20 18:18   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 10/60] sched/numa: restrict NUMA migration targets to " Gregory Price via B4 Relay
2026-11-20 18:09   ` Gregory Price (Meta)
2026-11-20 18:21   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 11/60] fork: check cached stack locality only on common memory nodes Gregory Price via B4 Relay
2026-11-20 18:09   ` Gregory Price (Meta)
2026-11-20 18:20   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 12/60] mm/vmscan: restrict reclaim to common memory Gregory Price via B4 Relay
2026-11-20 18:09   ` Gregory Price (Meta)
2026-11-20 18:25   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 13/60] mm/compaction: restrict compaction " Gregory Price via B4 Relay
2026-11-20 18:09   ` Gregory Price (Meta)
2026-11-20 18:20   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 14/60] mm: base hash distribution on common memory nodes Gregory Price via B4 Relay
2026-11-20 18:09   ` Gregory Price (Meta)
2026-11-20 18:19   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 15/60] mm/page_alloc: count common memory nodes for kswapd recovery Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:20   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 16/60] mm/oom_kill: compare OOM constraints against common memory Gregory Price via B4 Relay
2026-11-20 18:09   ` Gregory Price (Meta)
2026-11-20 18:21   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 17/60] PM: hibernate: size the image from " Gregory Price via B4 Relay
2026-11-20 18:09   ` Gregory Price (Meta)
2026-11-20 18:35   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 18/60] mm/khugepaged: base the recommended min_free_kbytes on " Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:20   ` sashiko-bot
2026-11-22 16:41   ` Yury Norov
2026-11-23 14:02     ` Gregory Price (Meta)
2026-11-20 18:09 ` [PATCH 19/60] mm: add folio_is_common_memory() and page_is_common_memory() Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:20   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 20/60] mm/ksm: restrict merging to common memory Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:20   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 21/60] mm/khugepaged: restrict collapse " Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:21   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 22/60] mm/mempolicy: don't NUMA-hint folios outside " Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:21   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 23/60] mm/damon: restrict DAMON-native folio operations to " Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:21   ` sashiko-bot
2026-11-22 16:47   ` Yury Norov
2026-11-23 14:05     ` Gregory Price (Meta)
2026-11-20 18:09 ` [PATCH 24/60] mm/madvise: restrict reclaim advice " Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:19   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 25/60] mm/mempolicy: queue only common memory for mbind() and migrate_pages() Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:25   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 26/60] mm/migrate: leave pages outside common memory in move_pages() Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:21   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 27/60] mm: add the private-memory node state Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:25   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 28/60] mm: select memory features per node Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:24   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 29/60] mm: keep private memory out of the system memory totals Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:40   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 30/60] mm/memory_hotplug: keep private memory out of the auto-movable ratio Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:33   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 31/60] cgroup/cpuset: inherit common memory when a nodemask is private only Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:43   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 32/60] cgroup/cpuset: keep spread page cache off private nodes Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:31   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 33/60] cgroup/cpuset: ignore private nodes when matching OOM victims Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:24   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 34/60] mm/mempolicy: don't rebind policies onto private nodes Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:35   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 35/60] mm/mempolicy: keep private nodes out of migrate_pages() destinations Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:25   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 36/60] mm: refuse explicit reclaim and compaction of private nodes Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:24   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 37/60] mm/page_alloc: keep private memory out of reclaim reserves Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:31   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 38/60] mm/page_alloc: refuse contiguous allocation from private memory Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:24   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 39/60] mm/page_alloc: add a private-node zonelist Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:31   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 40/60] mm/page_alloc: let MM callers select the local private zonelist Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:46   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 41/60] mm/page_alloc: relax a private request whose node becomes ineligible Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:32   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 42/60] mm: fail private placement on exhaustion instead of OOM killing Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:40   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 43/60] mm/page_alloc: fall back when a bind policy's nodes become private Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:34   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 44/60] mm: add N_MEMORY_COMPACTION node state Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:24   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 45/60] mm/compaction: restrict compaction to N_MEMORY_COMPACTION Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:30   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 46/60] mm: add N_MEMORY_RECLAIM node state Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:25   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 47/60] mm/vmscan: restrict reclaim to N_MEMORY_RECLAIM instead of N_MEMORY_COMMON Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:38   ` sashiko-bot
2026-11-20 18:41     ` Gregory Price (Meta)
2026-11-20 18:09 ` [PATCH 48/60] mm/madvise: restrict reclaim advice to reclaim-capable memory Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:29   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 49/60] mm/vmscan: reclaim private nodes for memcg Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:31   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 50/60] mm: add N_MEMORY_MEMPOLICY node state Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:27   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 51/60] mm: restrict explicit migration to N_MEMORY_MEMPOLICY Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:38   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 52/60] mm: count memory with userspace placement as general purpose Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:33   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 53/60] mm/mempolicy: add MPOL_F_PRIVATE_NODES for private node bindings Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:44   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 54/60] mm/migrate: route explicit NUMA migration to private nodes Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:42   ` sashiko-bot
2026-11-20 18:56     ` Gregory Price (Meta)
2026-11-21  7:46   ` kernel test robot
2026-11-21  8:17   ` kernel test robot
2026-11-21 12:03   ` kernel test robot
2026-11-20 18:09 ` [PATCH 55/60] mm/memory_hotplug: online and offline private memory nodes Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:34   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 56/60] dax/kmem: add a private memory mode Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:31   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 57/60] selftests/dax: test private kmem devices and services Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:42   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 58/60] selftests/dax: test memory policy on private nodes Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:35   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 59/60] selftests/dax: test cpuset interaction with " Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:35   ` sashiko-bot
2026-11-20 18:09 ` [PATCH 60/60] Documentation/mm: describe private memory nodes Gregory Price (Meta)
2026-11-20 18:09   ` Gregory Price via B4 Relay
2026-11-20 18:31   ` sashiko-bot
2026-11-20 18:59 ` [PATCH 00/60] Private NUMA nodes Gregory Price (Meta)
2026-11-22 16:51 ` Yury Norov [this message]
2026-11-22 19:11   ` Gregory Price (Meta)
2026-11-22 21:12     ` Yury Norov
2026-11-23  8:06       ` Gregory Price (Meta)
2026-11-25 17:29         ` Yury Norov
2026-11-30 18:41           ` Gregory Price (Meta)

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=awMdeK8O-5mffg2m@yury \
    --to=ynorov@nvidia.com \
    --cc=akpm@linux-foundation.org \
    --cc=alison.schofield@intel.com \
    --cc=apopple@nvidia.com \
    --cc=axelrasmussen@google.com \
    --cc=baohua@kernel.org \
    --cc=baolin.wang@linux.alibaba.com \
    --cc=baoquan.he@linux.dev \
    --cc=brendan.jackman@linux.dev \
    --cc=bsegall@google.com \
    --cc=byungchul@sk.com \
    --cc=cgroups@vger.kernel.org \
    --cc=chengming.zhou@linux.dev \
    --cc=chrisl@kernel.org \
    --cc=corbet@lwn.net \
    --cc=dakr@kernel.org \
    --cc=damon@lists.linux.dev \
    --cc=dave.jiang@intel.com \
    --cc=david@kernel.org \
    --cc=dev.jain@arm.com \
    --cc=dietmar.eggemann@arm.com \
    --cc=djbw@kernel.org \
    --cc=driver-core@lists.linux.dev \
    --cc=gourry@gourry.net \
    --cc=gregkh@linuxfoundation.org \
    --cc=hannes@cmpxchg.org \
    --cc=jack@suse.cz \
    --cc=jannh@google.com \
    --cc=johan@kernel.org \
    --cc=joshua.hahnjy@gmail.com \
    --cc=juri.lelli@redhat.com \
    --cc=kas@kernel.org \
    --cc=kasong@tencent.com \
    --cc=kees@kernel.org \
    --cc=kprateek.nayak@amd.com \
    --cc=lance.yang@linux.dev \
    --cc=lenb@kernel.org \
    --cc=liam@infradead.org \
    --cc=linux-cxl@vger.kernel.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux@rasmusvillemoes.dk \
    --cc=ljs@kernel.org \
    --cc=longman@redhat.com \
    --cc=matthew.brost@intel.com \
    --cc=mgorman@suse.de \
    --cc=mhocko@kernel.org \
    --cc=mhocko@suse.com \
    --cc=mingo@redhat.com \
    --cc=mkoutny@suse.com \
    --cc=nico.pache@linux.dev \
    --cc=nphamcs@gmail.com \
    --cc=nvdimm@lists.linux.dev \
    --cc=osalvador@suse.de \
    --cc=pavel@kernel.org \
    --cc=peterz@infradead.org \
    --cc=pfalcato@suse.de \
    --cc=qi.zheng@linux.dev \
    --cc=rafael@kernel.org \
    --cc=rakie.kim@sk.com \
    --cc=rdunlap@infradead.org \
    --cc=ridong.chen@linux.dev \
    --cc=rientjes@google.com \
    --cc=rostedt@goodmis.org \
    --cc=rppt@kernel.org \
    --cc=ryan.roberts@arm.com \
    --cc=shakeel.butt@linux.dev \
    --cc=shikemeng@huaweicloud.com \
    --cc=shuah@kernel.org \
    --cc=sj@kernel.org \
    --cc=skhan@linuxfoundation.org \
    --cc=surenb@google.com \
    --cc=tj@kernel.org \
    --cc=usama.arif@linux.dev \
    --cc=vbabka@kernel.org \
    --cc=vincent.guittot@linaro.org \
    --cc=vishal.l.verma@intel.com \
    --cc=vschneid@redhat.com \
    --cc=weixugc@google.com \
    --cc=willy@infradead.org \
    --cc=xu.xin@linux.dev \
    --cc=ying.huang@linux.alibaba.com \
    --cc=youngjun.park@lge.com \
    --cc=yuanchu@google.com \
    --cc=yury.norov@gmail.com \
    --cc=ziy@nvidia.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.