On Tue, Aug 19, 2025 at 3:55 PM Andrew Morton <a...@linux-foundation.org> wrote: > > On Tue, 19 Aug 2025 07:41:52 -0600 Nico Pache <npa...@redhat.com> wrote: > > > The following series provides khugepaged with the capability to collapse > > anonymous memory regions to mTHPs. > > > > ... > > > > - I created a test script that I used to push khugepaged to its limits > > while monitoring a number of stats and tracepoints. The code is > > available here[1] (Run in legacy mode for these changes and set mthp > > sizes to inherit) > > Could this be turned into something in tools/testing/selftests/mm/? Yep! I was actually working on some selftests for this before I hit a weird bug during some of my testing, which took precedence over that.
I was planning on sending a separate series for the testing. One of the pain points was that selftests helpers were set up for PMDs, but I think Baolin just cleaned that up in his khugepaged mTHP shmem series (still need to review). So it should be a lot easier to implement now. > > > V10 Changes: > > I'll add this to mm-new, thanks. I'll suppress the usual emails. Thank you :) -- Nico >