Skip to contentSkip to conversation

mm-consider-cma-pages-in-watermark-check-for-numa-balancing-target-node.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Sep 2, 2024

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm: consider CMA pages in watermark check for NUMA balancing target node
has been removed from the -mm tree. Its filename was
mm-consider-cma-pages-in-watermark-check-for-numa-balancing-target-node.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: Kaiyang Zhao <[email protected]>
Subject: mm: consider CMA pages in watermark check for NUMA balancing target node
Date: Thu, 1 Aug 2024 18:04:56 +0000

Currently in migrate_balanced_pgdat(), ALLOC_CMA flag is not passed when checking watermark on the migration target node. This does not match the gfp in alloc_misplaced_dst_folio() which allows allocation from CMA.

This causes promotion failures when there are a lot of available CMA memory in the system.

Therefore, we change the alloc_flags passed to zone_watermark_ok() in migrate_balanced_pgdat().

---

 mm/migrate.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/migrate.c renamed from mm/migrate.c~mm-consider-cma-pages-in-watermark-check-for-numa-balancing-target-node +1 -1
@@ -2526,7 +2526,7 @@ static bool migrate_balanced_pgdat(struc
 		if (!zone_watermark_ok(zone, 0,
 				       high_wmark_pages(zone) +
 				       nr_migrate_pages,
-				       ZONE_MOVABLE, 0))
+				       ZONE_MOVABLE, ALLOC_CMA))
 			continue;
 		return true;
 	}

_

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

mmmemcg-provide-per-cgroup-counters-for-numa-balancing-operations.patch mmmemcg-provide-per-cgroup-counters-for-numa-balancing-operations-v4.patch