From: Pasha Tatashin <pasha.tatashin@soleen.com>
To: Peter Xu <peterx@redhat.com>
Cc: lsf-pc@lists.linux-foundation.org, linux-mm@kvack.org,
James Houghton <jthoughton@google.com>,
Muchun Song <muchun.song@linux.dev>
Subject: Re: [LSF/MM/BPF TOPIC] Hugetlb Unifications
Date: Thu, 22 Feb 2024 17:16:44 -0500 [thread overview]
Message-ID: <CA+CK2bDEvUnFoyYAvVj9k0Y_wL6a4am_TTnYNADDJztrKuKmTQ@mail.gmail.com> (raw)
In-Reply-To: <ZdcKwK7CXgEsm-Co@x1n>
On Thu, Feb 22, 2024 at 3:50 AM Peter Xu <peterx@redhat.com> wrote:
>
> I want to propose a session to discuss how we should unify hugetlb into
> core mm.
Or moving the interface part into a driver?
>
> Due to legacy reasons, hugetlb has plenty of its own code paths that are
> plugged into core mm, causing itself even more special than shmem. While
> it is a pretty decent and useful file system, efficient on supporting large
> & statically allocated chunks of memory, it also added maintenance burden
> due to having its own specific code paths spread all over the place.
>
> It went into a bit of a mess, and it is messed up enough to become a reason
> to not accept new major features like what used to be proposed last year to
> map hugetlb pages in smaller sizes [1].
>
> We all seem to agree something needs to be done to hugetlb, but it seems
> still not as clear on what exactly, then people forgot about it and move
> on, until hit it again. The problem didn't yet go away itself even if
> nobody asks.
>
> Is it worthwhile to spend time do such work? Do we really need a fresh new
> hugetlb-v2 just to accept new features? What exactly need to be
> generalized for hugetlb? Is huge_pte_offset() the culprit, or what else?
> To what extent hugetlb is free to accept new features?
>
> The goal of such a session is trying to make it clearer on answering above
> questions.
>
> [1] https://lore.kernel.org/r/20230306191944.GA15773@monkey
+1 I am interested in this discussion. Unification is indeed useful,
and the core MM should ideally support only one kind of huge page.
However, we must also ensure compatibility with the interfaces and
features unique to hugetlb, such as boot-time reservation and vmemap
optimizations. Generalizing these features could potentially lead to
memory savings in THP as well.
Pasha
next prev parent reply other threads:[~2024-02-22 22:17 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-22 8:50 Peter Xu
2024-02-22 20:36 ` Frank van der Linden
2024-02-22 22:21 ` Matthew Wilcox
2024-02-22 22:16 ` Pasha Tatashin [this message]
2024-02-22 22:31 ` Matthew Wilcox
2024-02-22 22:58 ` Pasha Tatashin
2024-03-01 1:37 ` James Houghton
2024-03-01 3:11 ` Peter Xu
2024-03-06 23:24 ` James Houghton
2024-03-07 10:06 ` Peter Xu
2024-03-01 4:29 ` Matthew Wilcox
2024-03-01 6:51 ` Muchun Song
2024-03-01 16:44 ` David Hildenbrand
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=CA+CK2bDEvUnFoyYAvVj9k0Y_wL6a4am_TTnYNADDJztrKuKmTQ@mail.gmail.com \
--to=pasha.tatashin@soleen.com \
--cc=jthoughton@google.com \
--cc=linux-mm@kvack.org \
--cc=lsf-pc@lists.linux-foundation.org \
--cc=muchun.song@linux.dev \
--cc=peterx@redhat.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