From: Rik van Riel <riel@surriel.com>
To: linux-kernel@vger.kernel.org, riel@fb.com
Cc: kernel-team@fb.com, akpm@linux-foundation.org,
linux-mm@kvack.org, mhocko@kernel.org, vbabka@suse.cz,
mgorman@techsingularity.net, rientjes@google.com,
aarcange@redhat.com, Rik van Riel <riel@surriel.com>
Subject: [PATCH 0/2] fix THP migration for CMA allocations
Date: Fri, 21 Feb 2020 16:53:41 -0500 [thread overview]
Message-ID: <cover.1582321645.git.riel@surriel.com> (raw)
Transparent huge pages are allocated with __GFP_MOVABLE, and can end
up in CMA memory blocks. Transparent huge pages also have most of the
infrastructure in place to allow migration.
However, a few pieces were missing, causing THP migration to fail when
attempting to use CMA to allocate 1GB hugepages.
With these patches in place, THP migration from CMA blocks seems to
work, both for anonymous THPs and for tmpfs/shmem THPs.
Rik van Riel (2):
mm,compaction,cma: add alloc_contig flag to compact_control
mm,thp,compaction,cma: allow THP migration for CMA allocations
mm/compaction.c | 16 +++++++++-------
mm/internal.h | 1 +
mm/page_alloc.c | 7 +++++--
3 files changed, 15 insertions(+), 9 deletions(-)
--
2.24.1
next reply other threads:[~2020-02-21 21:54 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-21 21:53 Rik van Riel [this message]
2020-02-21 21:53 ` [PATCH 1/2] mm,compaction,cma: add alloc_contig flag to compact_control Rik van Riel
2020-02-24 15:04 ` Vlastimil Babka
2020-02-21 21:53 ` [PATCH 2/2] mm,thp,compaction,cma: allow THP migration for CMA allocations Rik van Riel
2020-02-21 22:31 ` Zi Yan
2020-02-21 22:35 ` Rik van Riel
2020-02-21 22:35 ` Rik van Riel
2020-02-24 15:29 ` Vlastimil Babka
2020-02-25 18:44 ` Rik van Riel
2020-02-25 18:44 ` Rik van Riel
2020-02-26 9:48 ` Vlastimil Babka
2020-02-26 17:53 ` Rik van Riel
2020-02-26 17:53 ` Rik van Riel
2020-02-28 15:17 ` Vlastimil Babka
2020-03-01 2:24 ` Rik van Riel
2020-03-01 2:24 ` Rik van Riel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1582321645.git.riel@surriel.com \
--to=riel@surriel.com \
--cc=aarcange@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=kernel-team@fb.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mgorman@techsingularity.net \
--cc=mhocko@kernel.org \
--cc=riel@fb.com \
--cc=rientjes@google.com \
--cc=vbabka@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.