Re: [PATCH v4 05/19] selftests/mm: make the swap cases' swapout reliable

Kiryl Shutsemau <[email protected]>
Newsgroups org.kvack.linux-mm,org.kernel.vger.linux-kernel,org.kernel.vger.linux-kselftest
Message-ID <aotOf7s43-oD84r-@thinkstation>
On Thu, Aug 20, 2026 at 11:40:35AM +0300, Mike Rapoport wrote:
> > Ask again for up to two seconds, with the range held out of the daemon's
> > reach while asking.  The collapse each case runs next puts MADV_HUGEPAGE
> > back, so only the setup is affected.
> 
> "Retry several times for up to two seconds meanwhile holding the range
> out of the khugepaged reach. The collapse each case runs next restores
> MADV_NOHUGEPAGE, so only setup is affected"

Small correction: it restores `MADV_HUGEPAGE` -- `wait_for_scan()` sets
that before it waits. `MADV_NOHUGEPAGE` is what the setup puts down.

Ack, for other input.

-- 
  Kiryl Shutsemau / Kirill A. Shutemov
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.