Re: [RFC 2/2] page_fault: add hugepage_delay option for delayed MADV_HUGEPAGE
Vincent Fu <[email protected]> Fri, 30 Jan 2026 15:08:35 -0500
| Newsgroups | org.kernel.vger.fio |
|---|---|
| Message-ID | <CAOp=CXkRbfsuzHYrB0qVnZPNx3OQgVUE48iZTzjDFtBB0x-Uyg@mail.gmail.com> |
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. Vincent