samples/damon: introduce a skeleton of a smaple DAMON module for proactive reclamation
authorSeongJae Park <sj@kernel.org>
Tue, 10 Dec 2024 21:50:29 +0000 (13:50 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 14 Jan 2025 06:40:57 +0000 (22:40 -0800)
commit2aca254620a8dcbf7c8c4105eb5d9da35f95473e
tree2c7055b1393217d24e79c856ce4122b5b71289e3
parent65cc56d02d3a59d1c96cf159c4cd12b5afe3b6a8
samples/damon: introduce a skeleton of a smaple DAMON module for proactive reclamation

DAMON is not only for monitoring of access patterns, but also for
access-aware system operations.  For the system operations, DAMON provides
a feature called DAMOS (Data Access Monitoring-based Operation Schemes).
There is no sample API usage of DAMOS, though.  Copy the working set size
estimation sample modules with changed names of the module and symbols, to
use it as a skeleton for a sample module showing the DAMOS API usage.  The
following commit will make it proactively reclaim cold memory of the given
process, using DAMOS.

Link: https://lkml.kernel.org/r/20241210215030.85675-5-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
samples/Makefile
samples/damon/Kconfig
samples/damon/Makefile
samples/damon/prcl.c [new file with mode: 0644]