Skip to contentSkip to conversation

sched-numa-mm-do-not-try-to-migrate-memory-to-memoryless-nodes.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Mar 5, 2024

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: sched/numa, mm: do not try to migrate memory to memoryless nodes
has been removed from the -mm tree. Its filename was
sched-numa-mm-do-not-try-to-migrate-memory-to-memoryless-nodes.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Byungchul Park <[email protected]>
Subject: sched/numa, mm: do not try to migrate memory to memoryless nodes
Date: Mon, 19 Feb 2024 13:10:47 +0900

Memoryless nodes do not have any memory to migrate to, so, as an optimization, stop trying it.

Fixes c574bbe91703 ("NUMA balancing: optimize page placement for memory tiering system")
Cc Benjamin Segall <[email protected]>
Cc Daniel Bristot de Oliveira <[email protected]>
Cc Dietmar Eggemann <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Juri Lelli <[email protected]>
Cc Mel Gorman <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Steven Rostedt <[email protected]>
Cc Valentin Schneider <[email protected]>
Cc Vincent Guittot <[email protected]>

---

 kernel/sched/fair.c |    6 ++++++
 1 file changed, 6 insertions(+)
kernel/sched/fair.c renamed from kernel/sched/fair.c~sched-numa-mm-do-not-try-to-migrate-memory-to-memoryless-nodes +6 -0
@@ -1831,6 +1831,12 @@ bool should_numa_migrate_memory(struct t
 	int last_cpupid, this_cpupid;
 
 	/*
+	 * Cannot migrate to memoryless nodes.
+	 */
+	if (!node_state(dst_nid, N_MEMORY))
+		return false;
+
+	/*
 	 * The pages in slow memory node should be migrated according
 	 * to hot/cold instead of private/shared.
 	 */

_

Patches currently in -mm which might be from [email protected] are

mm-vmscan-retry-kswapds-priority-loop-with-cache_trim_mode-off-on-failure.patch