Re: [PATCH v12 mm-new 15/15] Documentation: mm: update the admin guide for mTHP collapse

David Hildenbrand
2025-10-22T20:22:15Z

On 22.10.25 21:52, Christoph Lameter (Ampere) wrote:
> On Wed, 22 Oct 2025, Nico Pache wrote:
>
>> Currently, madvise_collapse only supports collapsing to PMD-sized THPs +
>> and does not attempt mTHP collapses. +
>
> madvise collapse is frequently used as far as I can tell from the THP
> loads being tested. Could we support madvise collapse for mTHP?

The big question is still how user space can communicate the desired
order, and how we can not break existing users.

So I guess there will definitely be some support to trigger collapse to
mTHP in the future, the big question is through which interface. So it
will happen after this series.

Maybe through process_madvise() where we have an additional parameter, I
think that was what people discussed in the past.

--
Cheers

David / dhildenb