Skip to contentSkip to conversation

mm, compaction: kcompactd should not ignore pageblock skip

PATCH New [email protected] 1 participant 1 message Nov 17, 2017

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 5/94 mm, compaction: kcompactd should not ignore pageblock skip

From: David Rientjes <[email protected]>
Subject: mm, compaction: kcompactd should not ignore pageblock skip

Kcompactd is needlessly ignoring pageblock skip information. It is doing MIGRATE_SYNC_LIGHT compaction, which is no more powerful than MIGRATE_SYNC compaction.

If compaction recently failed to isolate memory from a set of pageblocks, there is nothing to indicate that kcompactd will be able to do so, or that it is beneficial from attempting to isolate memory.

Use the pageblock skip hint to avoid rescanning pageblocks needlessly until that information is reset.

---

 mm/compaction.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
mm/compaction.c renamed from mm/compaction.c~mm-compaction-kcompactd-should-not-ignore-pageblock-skip +1 -1
diff -puN mm/compaction.c~mm-compaction-kcompactd-should-not-ignore-pageblock-skip mm/compaction.c
@@ -1928,9 +1928,8 @@ static void kcompactd_do_work(pg_data_t
 		.total_free_scanned = 0,
 		.classzone_idx = pgdat->kcompactd_classzone_idx,
 		.mode = MIGRATE_SYNC_LIGHT,
-		.ignore_skip_hint = true,
+		.ignore_skip_hint = false,
 		.gfp_mask = GFP_KERNEL,