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