Re: [patch 0/3] lib: add synthetic MM benchmarks
From: Muhammad Usama Anjum
Date: Mon Sep 14 2026 - 05:47:58 EST
On 12/09/2026 2:05 am, David Rientjes wrote:
> 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.
Yeah, sounds like a plan. Thank you for working on these. These would help
everyone.
--
Thanks,
Usama