make the hugetlb migration strategy consistent
Status from this message: [merged mm-stable] docs-hugetlbpagerst-add-hugetlb-migration-description.patch removed from -mm tree
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest3 patches 1 replyApplied 3/3
- v13 patches 8 repliesSuperseded
Changes in v2 from the cover letter
- Add reviewed tag from Oscar.
- Move the gfp_mask modification into a new helper called by alloc_migration_target().
Patches in v2 All 3 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | mm: record the migration reason for struct migration_target_controlmm/ mm/ mm/ +5 more | +9 | 0 replies | Applied |
| 2/3 | mm: hugetlb: make the hugetlb migration strategy consistentinclude/ mm/ mm/ +1 more | +49 | 1 reply | Applied |
| 3/3 | docs: hugetlbpage.rst: add hugetlb migration descriptionDocumentation/ | +7 | 0 replies | Applied |
Reviews trailers per patch
2 of 3 patches have a Reviewed-by or Acked-by.
| Patch | Oscar Salvador |
|---|---|
| 1/3 | R-b |
| 2/3 | R-b |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/3] make the hugetlb migration strategy consistent
Hi,
As discussed in previous thread [1], there is an inconsistency when handling hugetlb migration. When handling the migration of freed hugetlb, it prevents fallback to other NUMA nodes in alloc_and_dissolve_hugetlb_folio(). However, when dealing with in-use hugetlb, it allows fallback to other NUMA nodes in alloc_hugetlb_folio_nodemask(), which can break the per-node hugetlb pool and might result in unexpected failures when node bound workloads doesn't get what is asssumed available.
This patch set tries to make the hugetlb migration strategy more clear and consistent. Please find details in each patch.
Changes from v1:
- Add reviewed tag from Oscar.
- Move the gfp_mask modification into a new helper called by alloc_migration_target().
Changes from RFC:
- Move the gfp modification into alloc_migrate_hugetlb_folio().
- Add more comments.
Baolin Wang (3):
mm: record the migration reason for struct migration_target_control
mm: hugetlb: make the hugetlb migration strategy consistent
docs: hugetlbpage.rst: add hugetlb migration description
Documentation/admin-guide/mm/hugetlbpage.rst | 7 ++++ include/linux/hugetlb.h | 35 ++++++++++++++++++-- mm/gup.c | 1 + mm/hugetlb.c | 14 ++++++-- mm/internal.h | 1 + mm/memory-failure.c | 1 + mm/memory_hotplug.c | 1 + mm/mempolicy.c | 4 ++- mm/migrate.c | 4 ++- mm/page_alloc.c | 1 + mm/vmscan.c | 3 +- 11 files changed, 65 insertions(+), 7 deletions(-)
Signature · 1 line
2.39.3