Skip to content

Various memory tiering fixes

Zi Yan linux-mm lkml 3 versions – Applied

Status from this message: [merged mm-stable] memory-tiering-count-pgpromote_success-when-mem-tiering-is-enabled.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 4 repliesApplied 3/3
  2. v23 patches 10 repliesSuperseded
  3. v12 patches 4 repliesSuperseded

Changes in v3 from the cover letter

1. Renamed folio_has_cpupid() to folio_use_access_time() and reverse the code logic, since folio_has_cpupid() = !folio_use_access_time().
2. Wrapped folio_use_access_time() with CONFIG_NUMA_BALANCING to avoid the function redefinition compilation error.

Patches in v3 All 3 applied

#Subject and filesSizeRepliesApplied
1/3memory tiering: read last_cpupid correctly in do_huge_pmd_numa_page()mm/huge_memory.c+2 -10 repliesApplied
2/3memory tiering: introduce folio_use_access_time() checkinclude/linux/mm.h kernel/sched/fair.c mm/huge_memory.c +3 more+30 -102 repliesApplied
3/3memory tiering: count PGPROMOTE_SUCCESS when mem tiering is enabled.mm/migrate.c+3 -12 repliesApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchHuang, YingBaolin WangDavid HildenbrandKefeng Wang
1/3R-b R-b A-b R-b
2/3R-b A-b R-b
3/3A-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/3] Various memory tiering fixes

Changelog
===

From v2:
1. Renamed folio_has_cpupid() to folio_use_access_time() and reverse the code logic, since folio_has_cpupid() = !folio_use_access_time().
2. Wrapped folio_use_access_time() with CONFIG_NUMA_BALANCING to avoid the function redefinition compilation error.

From v1:
1. Added a memory tiering runtime check in migrate_misplaced_folio() to correct PGPROMOTE_SUCCESS counting.
2. Moved folio_has_cpupid() from memory-tiers.h to mm.h.

From RFC:
1. Added Reported-by and Closes flags to first patch

Zi Yan (3):
memory tiering: read last_cpupid correctly in do_huge_pmd_numa_page() memory tiering: introduce folio_use_access_time() check memory tiering: count PGPROMOTE_SUCCESS when mem tiering is enabled.

 include/linux/mm.h  |  6 ++++++
 kernel/sched/fair.c |  3 +--
 mm/huge_memory.c    |  5 ++---
 mm/memory-tiers.c   | 19 +++++++++++++++++++
 mm/memory.c         |  3 +--
 mm/migrate.c        |  4 +++-
 mm/mprotect.c       |  3 +--
 7 files changed, 33 insertions(+), 10 deletions(-)
Signature · 1 line
2.43.0