]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mm/damon/stat: calculate and expose estimated memory bandwidth
authorSeongJae Park <sj@kernel.org>
Wed, 4 Jun 2025 18:31:25 +0000 (11:31 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 10 Jul 2025 05:41:55 +0000 (22:41 -0700)
commitfabdd1e911da43cddbf17acf930171ba4b944477
treee86856b9cca46b638c1943493461135dd1f74585
parent369c415e60732b7c8ed33368891581246f580d7a
mm/damon/stat: calculate and expose estimated memory bandwidth

The raw form of DAMON's monitoring results captures many details of the
information.  However, not every bit of the information is always required
for understanding practical access patterns.  Especially on real world
production systems of high scale time and size, the raw form is difficult
to be aggregated and compared.

Convert the raw monitoring results into a single number metric, namely
estimated memory bandwidth and expose it to users as a read-only
DAMON_STAT parameter.  The metric represents access intensiveness
(hotness) of the system.  It can easily be aggregated and compared for
high level understanding of the access pattern on large systems.

Link: https://lkml.kernel.org/r/20250604183127.13968-3-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/stat.c