Messages in this thread |  | | From | Usama Arif <> | | Subject | Re: [PATCH 7.2 v16 06/13] mm/khugepaged: skip collapsing mTHP to smaller orders | | Date | Mon, 20 Apr 2026 08:36:40 -0700 |
| |
On Sun, 19 Apr 2026 12:57:43 -0600 Nico Pache <npache@redhat.com> wrote:
> khugepaged may try to collapse a mTHP to a smaller mTHP, resulting in > some pages being unmapped. Skip these cases until we have a way to check > if its ok to collapse to a smaller mTHP size (like in the case of a > partially mapped folio). This check is also not done during the scan phase > as the current collapse order is unknown at that time. > > This patch is inspired by Dev Jain's work on khugepaged mTHP support [1]. > > [1] https://lore.kernel.org/lkml/20241216165105.56185-11-dev.jain@arm.com/ > > Reviewed-by: Lorenzo Stoakes <ljs@kernel.org> > Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com> > Co-developed-by: Dev Jain <dev.jain@arm.com> > Signed-off-by: Dev Jain <dev.jain@arm.com> > Signed-off-by: Nico Pache <npache@redhat.com> > --- > mm/khugepaged.c | 8 ++++++++ > 1 file changed, 8 insertions(+) >
Acked-by: Usama Arif <usama.arif@linux.dev>
|  |