Skip to content

mm/hugetlb: memory offline issues with hugepages

Gerald Schaefer linux-mm lkml 4 versions – Applied

Status from this message: [merged] mm-hugetlb-improve-locking-in-dissolve_free_huge_pages.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 6 repliesApplied 3/3
  2. v31 patch 3 repliesSuperseded
  3. v21 patch 8 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch9 repliesSuperseded

Changes in v4 from the cover letter

- Add check for free vs. reserved hugepages
- Revalidate checks in dissolve_free_huge_page() after taking the lock
- Split up into 3 patches

Patches in v4 All 3 applied

#Subject and filesSizeRepliesApplied
1/3mm/hugetlb: fix memory offline with hugepage size > memory block sizemm/hugetlb.c+7 -61 replyApplied
2/3mm/hugetlb: check for reserved hugepages during memory offlineinclude/linux/hugetlb.h mm/hugetlb.c mm/memory_hotplug.c+27 -93 repliesApplied
3/3mm/hugetlb: improve locking in dissolve_free_huge_pages()mm/hugetlb.c+9 -31 replyApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchNaoya HoriguchiMichal Hocko
SeriesA-b
1/3A-b
2/3A-b
3/3A-b

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

Read the v4 thread

Cover letter [PATCH v4 0/3] mm/hugetlb: memory offline issues with hugepages

This addresses several issues with hugepages and memory offline. While the first patch fixes a panic, and is therefore rather important, the last patch is just a performance optimization.

The second patch fixes a theoretical issue with reserved hugepages, while still leaving some ugly usability issue, see description.

Changes in v4:
- Add check for free vs. reserved hugepages
- Revalidate checks in dissolve_free_huge_page() after taking the lock
- Split up into 3 patches

Changes in v3:
- Add Fixes: c8721bbb
- Add Cc: stable
- Elaborate on losing the gigantic page vs. failing memory offline
- Move page_count() check out of dissolve_free_huge_page()

Changes in v2:
- Update comment in dissolve_free_huge_pages()
- Change locking in dissolve_free_huge_page()

Gerald Schaefer (3):
mm/hugetlb: fix memory offline with hugepage size > memory block size mm/hugetlb: check for reserved hugepages during memory offline mm/hugetlb: improve locking in dissolve_free_huge_pages()

 include/linux/hugetlb.h |  6 +++---
 mm/hugetlb.c            | 47 +++++++++++++++++++++++++++++++++++------------
 mm/memory_hotplug.c     |  4 +++-
 3 files changed, 41 insertions(+), 16 deletions(-)
Signature · 7 lines
2.8.4

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>