All of lore.kernel.org
 help / color / mirror / Atom feed
* + mm-madvise-enable-soft-offline-of-hugetlb-pages-at-pud-level.patch added to -mm tree
@ 2017-09-28 21:43 akpm
  2017-10-03  7:33 ` Michal Hocko
  0 siblings, 1 reply; 5+ messages in thread
From: akpm @ 2017-09-28 21:43 UTC (permalink / raw)
  To: 00moses.alexander00, aneesh.kumar, gerald.schaefer, khandual,
	kirill, mhocko, mike.kravetz, n-horiguchi, punit.agrawal,
	mm-commits


The patch titled
     Subject: mm/madvise: enable soft offline of HugeTLB pages at PUD level
has been added to the -mm tree.  Its filename is
     mm-madvise-enable-soft-offline-of-hugetlb-pages-at-pud-level.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/mm-madvise-enable-soft-offline-of-hugetlb-pages-at-pud-level.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/mm-madvise-enable-soft-offline-of-hugetlb-pages-at-pud-level.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Alexandru Moise <00moses.alexander00@gmail.com>
Subject: mm/madvise: enable soft offline of HugeTLB pages at PUD level

Since 94310cbcaa3c2 ("mm/madvise: enable (soft|hard) offline of HugeTLB
pages at PGD level") we've been able to soft offline 1G hugepages at the
PGD level, however x86_64 gigantic hugepages are at the PUD level so we
should add an extra check to account for hstate order at PUD level.

I'm not sure if this also applies to 5 level page tables on x86_64
however. Tested with 4 level pagetable.

Link: http://lkml.kernel.org/r/20170913101047.GA13026@gmail.com
Signed-off-by: Alexandru Moise <00moses.alexander00@gmail.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Anshuman Khandual <khandual@linux.vnet.ibm.com>
Cc: Punit Agrawal <punit.agrawal@arm.com>
Cc: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Cc: "Kirill A. Shutemov" <kirill@shutemov.name>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 include/linux/hugetlb.h |    1 +
 1 file changed, 1 insertion(+)

diff -puN include/linux/hugetlb.h~mm-madvise-enable-soft-offline-of-hugetlb-pages-at-pud-level include/linux/hugetlb.h
--- a/include/linux/hugetlb.h~mm-madvise-enable-soft-offline-of-hugetlb-pages-at-pud-level
+++ a/include/linux/hugetlb.h
@@ -480,6 +480,7 @@ static inline bool hugepage_migration_su
 {
 #ifdef CONFIG_ARCH_ENABLE_HUGEPAGE_MIGRATION
 	if ((huge_page_shift(h) == PMD_SHIFT) ||
+		(huge_page_shift(h) == PUD_SHIFT) ||
 		(huge_page_shift(h) == PGDIR_SHIFT))
 		return true;
 	else
_

Patches currently in -mm which might be from 00moses.alexander00@gmail.com are

mm-hugetlb-soft_offline-save-compound-page-order-before-page-migration.patch
mm-madvise-enable-soft-offline-of-hugetlb-pages-at-pud-level.patch


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

end of thread, other threads:[~2017-10-03  8:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-28 21:43 + mm-madvise-enable-soft-offline-of-hugetlb-pages-at-pud-level.patch added to -mm tree akpm
2017-10-03  7:33 ` Michal Hocko
2017-10-03  7:49   ` Alexandru Moise
2017-10-03  8:00     ` Michal Hocko
2017-10-03  8:15       ` Alexandru Moise

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.