Skip to content

support multi-size THP numa balancing

Baolin Wang linux-mm lkml 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 0 repliesNew 1 of 2 applied
  2. v22 patches 4 repliesSuperseded 1 of 2 applied
  3. v12 patches 10 repliesSuperseded

Changes in v3 from the cover letter

- Add reviewed tag from Huang, Ying.
- Reuse numa_rebuild_single_mapping() to remove duplicate code per Kefeng Wang.
- Remove an unnecessary vma_wants_manual_pte_write_upgrad() per Huang, Ying.

Patches in v3 1 of 2 applied

#Subject and filesSizeRepliesApplied
1/2mm: factor out the numa mapping rebuilding into a new helpermm/memory.c+15 -70 replies
2/2mm: support multi-size THP numa balancingmm/memory.c mm/mprotect.c+52 -130 repliesApplied

Reviews trailers per patch

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

PatchHuang, Ying
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] support multi-size THP numa balancing

This patchset tries to support mTHP numa balancing, as a simple solution to start, the NUMA balancing algorithm for mTHP will follow the THP strategy as the basic support. Please find details in each patch.

Changes from v2:
- Add reviewed tag from Huang, Ying.
- Reuse numa_rebuild_single_mapping() to remove duplicate code per Kefeng Wang.
- Remove an unnecessary vma_wants_manual_pte_write_upgrad() per Huang, Ying.

Changes from v1:
- Fix the issue where the end address might exceed the range of the
folio size, suggested by Huang, Ying.
- Simplify the folio validation.
- Add pte_modify() before checking pte writable.
- Update the performance data.

Changes from RFC v2:
- Follow the THP algorithm per Huang, Ying.

Changes from RFC v1:
- Add some preformance data per Huang, Ying.
- Allow mTHP scanning per David Hildenbrand.
- Avoid sharing mapping for numa balancing to avoid false sharing.
- Add more commit message.

Baolin Wang (2):
mm: factor out the numa mapping rebuilding into a new helper
mm: support multi-size THP numa balancing

 mm/memory.c   | 76 +++++++++++++++++++++++++++++++++++++++++----------
 mm/mprotect.c |  3 +-
 2 files changed, 63 insertions(+), 16 deletions(-)
Signature · 1 line
2.39.3