From: David Hildenbrand <david@redhat.com>
To: Michal Hocko <mhocko@suse.com>
Cc: Li Xinhai <lixinhai.lxh@gmail.com>,
linux-mm@kvack.org, akpm@linux-foundation.org
Subject: Re: [PATCH] mm, isolation: avoid checking unmovable pages across pageblock boundary
Date: Mon, 14 Sep 2020 18:36:59 +0200 [thread overview]
Message-ID: <769103b5-2d96-f048-07e2-3a68f5160e40@redhat.com> (raw)
In-Reply-To: <20200914150048.GZ16999@dhcp22.suse.cz>
On 14.09.20 17:00, Michal Hocko wrote:
> On Tue 08-09-20 10:30:35, David Hildenbrand wrote:
> [...]
>> - gigantic pages (alloc_contig_range()) never use ranges with holes
>> - CMA (alloc_contig_range()) never uses ranges with holes.
>
> Where is that enforced?
>
You mean with CMA? I think the way CMA obtains regions from memblock
would not allow for that. (allocating something that's not actually
there does not make too much sense)
For example, we do a couple of unchecked pfn_to_page() calls directly in
alloc_contig_range(), most prominently right at the beginning
(page_zone(pfn_to_page(start)).
Also, __test_page_isolated_in_pageblock() would never succeed in case we
have memory holes that have a valid memmap (PageReserved()).
I think we should update the documentation of alloc_contig_range()
"The PFN range must belong to a single zone and must not contain any holes."
And simplify all that code. Of course, assuming there isn't a CMA use
case with holes I am too blind to see.
--
Thanks,
David / dhildenb
prev parent reply other threads:[~2020-09-14 16:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-24 6:58 Li Xinhai
2020-08-24 8:17 ` Oscar Salvador
2020-08-25 8:26 ` Michal Hocko
2020-09-08 8:30 ` David Hildenbrand
2020-09-08 8:30 ` David Hildenbrand
2020-09-14 15:00 ` Michal Hocko
2020-09-14 16:36 ` David Hildenbrand [this message]
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=769103b5-2d96-f048-07e2-3a68f5160e40@redhat.com \
--to=david@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=linux-mm@kvack.org \
--cc=lixinhai.lxh@gmail.com \
--cc=mhocko@suse.com \
/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