From: Andrew Morton <akpm@linux-foundation.org>
To: Kefeng Wang <wangkefeng.wang@huawei.com>
Cc: David Hildenbrand <david@redhat.com>,
Oscar Salvador <osalvador@suse.de>, Zi Yan <ziy@nvidia.com>,
<linux-mm@kvack.org>, Matthew Wilcox <willy@infradead.org>
Subject: Re: [PATCH] mm: remove migration for HugePage in isolate_single_pageblock()
Date: Thu, 15 Aug 2024 21:58:08 -0700 [thread overview]
Message-ID: <20240815215808.c2086dfe013cf2e2360e8bd6@linux-foundation.org> (raw)
In-Reply-To: <20240816040625.650053-1-wangkefeng.wang@huawei.com>
On Fri, 16 Aug 2024 12:06:25 +0800 Kefeng Wang <wangkefeng.wang@huawei.com> wrote:
> The gigantic page size may larger than memory block size, so memory
> offline always fails in this case after commit b2c9e2fbba32 ("mm: make
> alloc_contig_range work at pageblock granularity"),
>
> offline_pages
> start_isolate_page_range
> start_isolate_page_range(isolate_before=true)
> isolate [isolate_start, isolate_start + pageblock_nr_pages)
> start_isolate_page_range(isolate_before=false)
> isolate [isolate_end - pageblock_nr_pages, isolate_end) pageblock
> __alloc_contig_migrate_range
> isolate_migratepages_range
> isolate_migratepages_block
> isolate_or_dissolve_huge_page
> if (hstate_is_gigantic(h))
> return -ENOMEM;
>
> In fact, we don't need to migrate page in page range isolation, for
> memory offline path, there is do_migrate_range() to move the pages.
> For contig allocation, there is another __alloc_contig_migrate_range()
> after isolation to migrate the pages. So fix issue by skipping the
> __alloc_contig_migrate_range() in isolate_single_pageblock().
>
> Fixes: b2c9e2fbba32 ("mm: make alloc_contig_range work at pageblock granularity")
Should we backport this into -stable kernels?
next prev parent reply other threads:[~2024-08-16 5:03 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-16 4:06 Kefeng Wang
2024-08-16 4:58 ` Andrew Morton [this message]
2024-08-16 6:10 ` Kefeng Wang
2024-08-16 10:11 ` David Hildenbrand
2024-08-16 11:30 ` Kefeng Wang
2024-08-16 15:06 ` Zi Yan
2024-08-16 20:12 ` David Hildenbrand
2024-08-16 21:16 ` Yu Zhao
2024-08-16 22:09 ` Zi Yan
2024-08-16 19:45 ` David Hildenbrand
2024-08-17 6:13 ` Kefeng Wang
2024-08-17 23:58 ` Zi Yan
2024-08-19 2:42 ` Kefeng Wang
2024-08-21 1:41 ` Andrew Morton
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=20240815215808.c2086dfe013cf2e2360e8bd6@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=david@redhat.com \
--cc=linux-mm@kvack.org \
--cc=osalvador@suse.de \
--cc=wangkefeng.wang@huawei.com \
--cc=willy@infradead.org \
--cc=ziy@nvidia.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