linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/2] mm: using CMA for 1 GB hugepages allocation
@ 2020-04-07  1:04 Roman Gushchin
  2020-04-07  1:04 ` [PATCH v4 1/2] mm: cma: NUMA node interface Roman Gushchin
  2020-04-07  1:04 ` [PATCH v4 2/2] mm: hugetlb: optionally allocate gigantic hugepages using cma Roman Gushchin
  0 siblings, 2 replies; 8+ messages in thread
From: Roman Gushchin @ 2020-04-07  1:04 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Aslan Bakirov, Michal Hocko, linux-mm, kernel-team, linux-kernel,
	Rik van Riel, Mike Kravetz, Roman Gushchin

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.

This is v4 of the patch(set). It contains a patch from Aslan,
which adds a useful function of the cma side, and the previous
version of the hugetlb_cma patch (v3) with all following cleanups
and fixes squashed, plus the following changes:
1) removed the hard-coded archs list from docs
2) added a warning printing on non-supported archs
3) hugetlb_lock is temporarily dropped in update_and_free_page()

I've retained Michal's and Mike's acks, because changes are
not significant. Please, let me know if there is something
wrong.

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(-)

-- 
2.25.1



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-04-07 16:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-07  1:04 [PATCH v4 0/2] mm: using CMA for 1 GB hugepages allocation Roman Gushchin
2020-04-07  1:04 ` [PATCH v4 1/2] mm: cma: NUMA node interface Roman Gushchin
2020-04-07  1:04 ` [PATCH v4 2/2] mm: hugetlb: optionally allocate gigantic hugepages using cma Roman Gushchin
2020-04-07  7:03   ` Michal Hocko
2020-04-07 15:25     ` Roman Gushchin
2020-04-07 15:40       ` Michal Hocko
2020-04-07 16:06         ` Roman Gushchin
2020-04-07 16:23           ` Michal Hocko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox