Skip to content

mm: using CMA for 1 GB hugepages allocation

Roman Gushchin linux-mm lkml 2 versions Applied

Status from this message: [merged] mm-hugetlb-optionally-allocate-gigantic-hugepages-using-cma.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest2 patches 4 repliesApplied 2/2
  2. v42 patches 5 repliesSuperseded

Changes in v5 from the cover letter

1) made the hugetlb_cma work if a cma reservation fails on some nodes

Patches in v5 All 2 applied

#Subject and filesSizeRepliesApplied
1/2mm: cma: NUMA node interfaceinclude/linux/cma.h include/linux/memblock.h mm/cma.c +1 more+24 -102 repliesApplied
2/2mm: hugetlb: optionally allocate gigantic hugepages using cmaDocumentation/admin-guide/kernel-parameters.txt arch/arm64/mm/init.c arch/x86/kernel/setup.c +2 more+139 -02 repliesApplied

Reviews trailers per patch

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

PatchMichal HockoAndreas SchauflerMike Kravetz
1/2A-b A-b
2/2A-b T-b A-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 3 reviewers.

Read the v5 thread

Cover letter [PATCH v5 0/2] mm: using CMA for 1 GB hugepages allocation

The patchset adds a hugetlb_cma boot option, which allows to reserve a cma area which can be later used for 1 GB hugepages allocations.

v5:
1) made the hugetlb_cma work if a cma reservation fails on some nodes

v4:
1) added a patch from Aslan, which is adding a useful function to cma
2) removed the hard-coded archs list from docs
3) added a warning printing on non-supported archs
4) hugetlb_lock is temporarily dropped in update_and_free_page()

Thanks!

Aslan Bakirov (1):
mm: cma: NUMA node interface

Roman Gushchin (1):
mm: hugetlb: optionally allocate gigantic hugepages using cma

 .../admin-guide/kernel-parameters.txt         |   8 ++
 arch/arm64/mm/init.c                          |   6 +
 arch/x86/kernel/setup.c                       |   4 +
 include/linux/cma.h                           |  13 ++-
 include/linux/hugetlb.h                       |  12 ++
 include/linux/memblock.h                      |   3 +
 mm/cma.c                                      |  16 +--
 mm/hugetlb.c                                  | 109 ++++++++++++++++++
 mm/memblock.c                                 |   2 +-
 9 files changed, 163 insertions(+), 10 deletions(-)
Signature · 1 line
2.25.1