Toward the unification of hugetlbfs
Toward the unification of hugetlbfs
Posted May 22, 2024 18:14 UTC (Wed) by adobriyan (subscriber, #30858)Parent article: Toward the unification of hugetlbfs
Do you ask for 4 KiB pages by mounting stuff and mapping files there? No! You just mmap them.
Another thing I learned about using MAP_HUGE is that 2 hugepage VMAs next to each other don't merge by default.
Posted May 22, 2024 19:07 UTC (Wed)
by willy (subscriber, #9762)
[Link]
Posted May 22, 2024 19:25 UTC (Wed)
by flussence (guest, #85566)
[Link] (2 responses)
Nowadays we have THP and madvise(MADV_HUGEPAGE) and neither needs hugetlbfs so it's a lot less important than it once was, but it's userspace API and in active use so it'll probably stick around for a good while to come.
And I mildly disagree - more things ought to be exposed as filesystems. I think networking innards should've been, for one, but I doubt that mountain will budge in 2024.
Posted May 22, 2024 21:45 UTC (Wed)
by WolfWings (subscriber, #56790)
[Link]
Posted May 31, 2024 5:29 UTC (Fri)
by chleroy (guest, #171626)
[Link]
For all other hugepage sizes there is no other way that hugetlbfs to use them.
Toward the unification of hugetlbfs
Toward the unification of hugetlbfs
Toward the unification of hugetlbfs
Toward the unification of hugetlbfs