Re: [RFC 2/2] page_fault: add hugepage_delay option for delayed MADV_HUGEPAGE

Nico Pache <[email protected]> Mon, 2 Feb 2026 08:24:02 -0700
Newsgroups org.kernel.vger.fio
Message-ID <CAA1CXcCUN3ZtayLiMFFE6rb8XaP+91ZWxdU+TtC=F-ghhfHQvA@mail.gmail.com>
On Fri, Jan 30, 2026 at 1:08 PM Vincent Fu <[email protected]> wrote:
>
> On Thu, Jan 29, 2026 at 1:43 PM Nico Pache <[email protected]> wrote:
> >
> > Introduce hugepage_delay to map with MADV_NOHUGEPAGE first, then
> > madvise MADV_HUGEPAGE after a configurable delay via a helper thread.
> > This makes khugepaged candidates reproducible for page_fault tests.
> >
> > Signed-off-by: Nico Pache <[email protected]>
> > ---
>
> I would add this option as an *ioengine* option instead of a general
> FIo option. There are examples in sync.c, io_uring.c, etc.
>
> This option also needs to be added to the documentation.


Hey Vincent,

Thanks for the review. I will switch over to ioengine options and add
some documentation!

Cheers,
-- Nico
>
> Vincent
>