Re: [patch 0/3] lib: add synthetic MM benchmarks

From: David Rientjes

Date: Fri Sep 11 2026 - 21:05:33 EST


On Thu, 10 Sep 2026, Usama Anjum wrote:

> >> I thought about the same and just followed what appears to be the standard
> >> convention (like test_vmalloc above) for lib/ for now. If they should all
> >> be moved under tools/ somewhere, perhaps we handle that in a separate
> >> series?
> >
> > Yes. lib/ is just absolutely the wrong place for that.
> >
> > Maybe lib/tests/mm
> >
> > But then, I wonder if they could just be somewhere in tests/ directly ...
> >
> > Anyhow, it was also raised whether some of these could be written as kunit
> > tests. It's been a long time since I worked on these, so just mentioning it.
>
> I also think it would be best to try to add them as kunit. I'm not exactly sure if
> kunit would accept such benchmark kind of code. Some research is required there.
>

Sounds good, I'll transition these to kunit tests, move to mm/tests/
alongside the other MM kunit test, and send a v3 for just the vmstat test
as a separate thread. If all looks good, I can do this for slab and
pgalloc as well as a follow-up step.