Re: [patch v2] lib: test_vmstat: add synthetic benchmark for vm stats

SJ Park <[email protected]>
Newsgroups gmane.linux.kernel,gmane.linux.kernel.mm
Message-ID <[email protected]>
On Fri, 21 Aug 2026 16:52:17 -0700 (PDT) David Rientjes <[email protected]> wrote:

> On Fri, 7 Aug 2026, David Rientjes wrote:
> 
> > On Sun, 2 Aug 2026, David Rientjes wrote:
> > 
> > > From: Christoph Lameter <[email protected]>
> > > 
> > > 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 inserting the module: modprobe test_vmstat
> > > The module insertion will always fail so that it is automatically
> > > unloaded; the results are in the kernel log.
> > > 
> > > Signed-off-by: Christoph Lameter <[email protected]>
> > > Signed-off-by: David Rientjes <[email protected]>
> > > ---
> > >  v2:
> > >   - added bash wrapper to ksft per David
> > >   - integrated into ksft
> > >   - added MAINTAINERS entry per David
> > >   - fixed alloc_page() error code per Usama
> > > 
> > >  Adding single test for now to solicit feedback before updating the other
> > >  two.
> > > 
> > 
> > Any feedback for this one?  If this one looks good then I can also apply 
> > the same treatment for test_pagealloc and test_slab.
> > 
> 
> Andrew, David, any thoughts on whether this one is acceptable for merge?  
> If this looks structually correct and is staged for inclusion, then I'll 
> do the same treatment to the other two proposed tests as well.

FWIW, I found a similar high level topics including whether performance tests
should be in the tree, and where tests should be added, are being discussed on
another thread [1].

[1] https://lore.kernel.org/aogrd9knfBUGH885@gremlin


Thanks,
SJ

[...]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.