Thread (30 messages) 30 messages, 6 authors, 2025-07-11

Re: [PATCH v8 11/15] khugepaged: allow madvise_collapse to check all anonymous mTHP orders

From: Andrew Morton <akpm@linux-foundation.org>
Date: 2025-07-04 21:14:24
Also in: linux-doc, linux-mm, lkml

On Fri, 4 Jul 2025 14:11:13 +0800 Baolin Wang [off-list ref] wrote:
On 2025/7/2 13:57, Nico Pache wrote:
quoted
Allow madvise_collapse to scan/collapse all mTHP orders without the
strict requirement of needing the PMD-order enabled.

Signed-off-by: Nico Pache <npache@redhat.com>
I am afraid we should drop this patch from the series, since Hugh 
explicitly opposed my modification of the madvise_collapse control logic 
in this thread[1].
Well it drops easily enough.  I don't know if it compiles yet.

Nico, can you confirm that you're OK with the droppage and that the
series is still good without this patch?
Moreover, since we have not yet clarified how to handle the conflict 
between the semantics of madvise_collapse and the THP interfaces, we 
should keep the current logic[2] (means madvise_collapse still only 
allows PMD collapse).

If madvise_collapse is to support mTHP collapse, there will be more 
semantic conflicts to discuss.

[1] 
https://lore.kernel.org/all/cover.1750815384.git.baolin.wang@linux.alibaba.com/ (local)
[2] 
https://lore.kernel.org/all/23b8ad10-cd1f-45df-a25c-78d01c8af44f@redhat.com/ (local)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help