Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [patch 0/3] lib: add synthetic MM benchmarks
@ 2026-07-31  4:26 David Rientjes
  2026-07-31  4:26 ` [patch 1/3] lib: test_vmstat: add synthetic benchmark for vm stats David Rientjes
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: David Rientjes @ 2026-07-31  4:26 UTC (permalink / raw)
  To: Andrew Morton, David Hildenbrand, Christoph Lameter
  Cc: Vlastimil Babka, Mathieu Desnoyers, linux-mm, linux-kernel

A blast to the past :)

We've been carrying these synthetic benchmarks in our kernel tree since 
2009 because they've been helpful to identify regressions in hot paths, as 
well as quantifying any improvements that have been made for new changes.  
Hopefully they can be useful to others as well.

The synthetic benchmarks are run by loading the module at runtime.  The 
modprobe will fail intentionally so that the module gets insta-unloaded.  
The test results are emitted to the kernel log.

Proposed with permission from Christoph.
---
 lib/Kconfig.debug    |  30 ++++
 lib/Makefile         |   3 +
 lib/test_pagealloc.c | 337 ++++++++++++++++++++++++++++++++++++++
 lib/test_slab.c      | 375 +++++++++++++++++++++++++++++++++++++++++++
 lib/test_vmstat.c    |  95 +++++++++++
 5 files changed, 840 insertions(+)
 create mode 100644 lib/test_pagealloc.c
 create mode 100644 lib/test_slab.c
 create mode 100644 lib/test_vmstat.c


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-08-01 13:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-31  4:26 [patch 0/3] lib: add synthetic MM benchmarks David Rientjes
2026-07-31  4:26 ` [patch 1/3] lib: test_vmstat: add synthetic benchmark for vm stats David Rientjes
2026-08-01 13:20   ` Usama Arif
2026-07-31  4:26 ` [patch 2/3] lib: test_slab: add synthetic benchmark for slab David Rientjes
2026-07-31  4:27 ` [patch 3/3] lib: test_pagealloc: add synthetic benchmark for page allocator David Rientjes
2026-07-31  9:00 ` [patch 0/3] lib: add synthetic MM benchmarks David Hildenbrand (Arm)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox