Re: [v3 PATCH 0/8] Make khugepaged collapse readonly FS THP more consistent

From: Matthew Wilcox
Date: Mon Apr 04 2022 - 22:16:49 EST


On Mon, Apr 04, 2022 at 01:02:42PM -0700, Yang Shi wrote:
> The readonly FS THP relies on khugepaged to collapse THP for suitable
> vmas. But it is kind of "random luck" for khugepaged to see the
> readonly FS vmas (see report: https://lore.kernel.org/linux-mm/00f195d4-d039-3cf2-d3a1-a2c88de397a0@xxxxxxx/) since currently the vmas are registered to khugepaged when:

I still don't see the point. The effort should be put into
supporting large folios, not in making this hack work better.