From: Michal Hocko <mhocko@kernel.org>
To: Oscar Salvador <osalvador@suse.de>
Cc: Mike Kravetz <mike.kravetz@oracle.com>,
akpm@linux-foundation.org, david@redhat.com,
anthony.yznaga@oracle.com, linux-mm@kvack.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mm,memory_hotplug: Explicitly pass the head to isolate_huge_page
Date: Wed, 13 Feb 2019 13:33:39 +0100 [thread overview]
Message-ID: <20190213123339.GG4525@dhcp22.suse.cz> (raw)
In-Reply-To: <20190213081310.zfxwb3svoqsxnuyc@d104.suse.de>
On Wed 13-02-19 09:13:14, Oscar Salvador wrote:
> On Tue, Feb 12, 2019 at 04:13:05PM -0800, Mike Kravetz wrote:
> > Well, commit 94310cbcaa3c ("mm/madvise: enable (soft|hard) offline of
> > HugeTLB pages at PGD level") should have allowed migration of gigantic
> > pages. I believe it was added for 16GB pages on powerpc. However, due
> > to subsequent changes I suspsect this no longer works.
>
> I will take a look, I am definitely interested in that.
> Thanks for pointing it out Mike.
>
> >
> > > This check doesn't make much sense in principle. Why should we bail out
> > > based on a section size? We are offlining a pfn range. All that we care
> > > about is whether the hugetlb is migrateable.
> >
> > Yes. Do note that the do_migrate_range is only called from __offline_pages
> > with a start_pfn that was returned by scan_movable_pages. scan_movable_pages
> > has the hugepage_migration_supported check for PageHuge pages. So, it would
> > seem to be redundant to do another check in do_migrate_range.
>
> Well, the thing is that if the gigantic page does not start at the very beginning
> of the memblock, and we do find migrateable pages before it in scan_movable_pages(),
> the range that we will pass to do_migrate_ranges() will contain the gigantic page.
> So we need the check there to cover that case too, although I agree that the current
> check is misleading.
Why isn't our check in has_unmovable_pages sufficient?
--
Michal Hocko
SUSE Labs
next prev parent reply other threads:[~2019-02-13 12:33 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-08 9:06 Oscar Salvador
2019-02-11 8:58 ` David Hildenbrand
2019-02-12 8:33 ` Michal Hocko
2019-02-12 13:45 ` Oscar Salvador
2019-02-12 14:40 ` Michal Hocko
2019-02-13 0:13 ` Mike Kravetz
2019-02-13 8:13 ` Oscar Salvador
2019-02-13 12:33 ` Michal Hocko [this message]
2019-02-13 15:15 ` Oscar Salvador
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=20190213123339.GG4525@dhcp22.suse.cz \
--to=mhocko@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=anthony.yznaga@oracle.com \
--cc=david@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mike.kravetz@oracle.com \
--cc=osalvador@suse.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox