All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kefeng Wang <wangkefeng.wang@huawei.com>
To: David Hildenbrand <david@redhat.com>,
	Matthew Wilcox <willy@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>, <ziy@nvidia.com>,
	<linux-mm@kvack.org>
Subject: Re: [PATCH] mm: memory: use nth_page() in clear/copy_subpage()
Date: Tue, 2 Jan 2024 14:53:21 +0800	[thread overview]
Message-ID: <9bb17dcd-4651-41d2-9982-4632147a82f8@huawei.com> (raw)
In-Reply-To: <ff4e0024-c256-46e9-a203-ad62c21896f7@redhat.com>



On 2023/12/29 19:15, David Hildenbrand wrote:
> On 29.12.23 09:49, Matthew Wilcox wrote:
>> On Fri, Dec 29, 2023 at 04:22:07PM +0800, Kefeng Wang wrote:
>>> The clear and copy of huge gigantic page has converted to use nth_page()
>>> to handle the possible discontinuous struct page(SPARSEMEM without 
>>> VMEMMAP),
>>> but not change for the non-gigantic part, fix it too.
>>
>> Can there be discontiguities within a non-gigantic huge page?  My
>> impression was that you can't have a discontiguity at such a small
>> boundary.
> 
> No, we can't. MAX_ORDER allocations from the buddy always completely fit 
> into a memory section.

On ARM64, we have 32M(16*2M) HugeTLB, it maybe not within a mem section,
right?

But after v5.13 commit 782276b4d0ad ("arm64: Force SPARSEMEM_VMEMMAP
as the only memory management model"), it looks only old lts, eg, 5.10 
could meet this issue.


  reply	other threads:[~2024-01-02  6:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-29  8:22 [PATCH] mm: memory: use nth_page() in clear/copy_subpage() Kefeng Wang
2023-12-29  8:49 ` Matthew Wilcox
2023-12-29 11:15   ` David Hildenbrand
2024-01-02  6:53     ` Kefeng Wang [this message]
2024-01-02 16:11       ` David Hildenbrand
2024-01-03  6:23         ` Kefeng Wang

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=9bb17dcd-4651-41d2-9982-4632147a82f8@huawei.com \
    --to=wangkefeng.wang@huawei.com \
    --cc=akpm@linux-foundation.org \
    --cc=david@redhat.com \
    --cc=linux-mm@kvack.org \
    --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 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.