linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [LSF/MM/BPF TOPIC] Hugetlb Unifications
@ 2024-02-22  8:50 Peter Xu
  2024-02-22 20:36 ` Frank van der Linden
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Peter Xu @ 2024-02-22  8:50 UTC (permalink / raw)
  To: lsf-pc; +Cc: linux-mm, James Houghton, Muchun Song

I want to propose a session to discuss how we should unify hugetlb into
core mm.

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

Thanks,

-- 
Peter Xu



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2024-03-07 10:07 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-22  8:50 [LSF/MM/BPF TOPIC] Hugetlb Unifications 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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox