Re: [patch v3] mm: test_vmstat: add synthetic benchmark for vm stats
From: David Rientjes
Date: Fri Sep 18 2026 - 16:21:28 EST
On Fri, 11 Sep 2026, Andrew Morton wrote:
> > Add a synthetic benchmark that can be used to measure performance of VM
> > statistics. This is used to analyze any improvements or regressions in
> > functions that are frequently used in hot code paths.
> >
> > The test is run by KUnit or doing modprobe vmstat_kunit directly.
>
> Can you please quote some typical kernel output in the changelog? That
> will help others to review the proposed change.
>
Ack, will include the output in v4.
> Sashiko made what appear to be some good points:
> https://sashiko.dev/#/patchset/014ef68b-6312-bcdc-f432-34c31476fe77@xxxxxxxxxx
>
Got it, I'll use NR_MLOCK instead of SLABS_SCANNED since it's display only
and won't have any side effects at runtime.
Instead of switching the type of the "rem" variable as suggested, we can
just remove it entirely.