Re: [RFC 0/2] Introduce a page_fault ioengine for MM workflows
Nico Pache <[email protected]> Mon, 2 Feb 2026 08:22:11 -0700
| Newsgroups | org.kernel.vger.fio |
|---|---|
| Message-ID | <CAA1CXcCH9+iPxxuAEOzBmTPyR9YyhhVGs9BDeUXwWYXvV--Zcg@mail.gmail.com> |
On Sat, Jan 31, 2026 at 6:59 AM Jens Axboe <[email protected]> wrote: > > On 1/29/26 11:42 AM, Nico Pache wrote: > > This series introduces a new page_fault ioengine and a follow?up option > > to make khugepaged behavior more deterministic for page fault testing. > > > > The first patch adds an mmap?backed ioengine that allocates anonymous > > memory and copies data on read/write to intentionally trigger faults. > > This enables using fio?s existing framework and job files for memory > > management style workloads without relying on a filesystem. An example > > job file is included to demonstrate usage. > > > > The second patch adds a hugepage_delay option to the new engine. It > > initially maps memory with MADV_NOHUGEPAGE, then (after a configurable > > delay) switches to MADV_HUGEPAGE via a helper thread. This makes > > khugepaged candidates reproducible, allows for easier khugepaged testing > > and improves repeatability for page_fault tests. > > Looks pretty clean - echo what Vincent added on the option that should > be an engine specific option, but outside of that, the formatting of > the code is all wrong. Please follow the style of the code that's in the > repo already, which means: Thanks! Yeah the engine specific option makes total sense, I will fix that. That should also allow me to add some other functionality to this engine :) > > 1) Placement of braces > 2) Tabs are... tabs, not 4 spaces. The code is a mix and match of this. > 3) Appropriate empty lines after variable declarations > 4) Style of switch case (indentation and braces) > > etc. It's a good start to just use the clang format from the kernel, > that should get you basically to where you need to be. Sounds good! yeah sorry, didn't really consider the formatting at all for the RFC, was just trying to get the idea out, and make sure there were no glaring issues! Thanks for the review! -- Nico > > -- > Jens Axboe >