summaryrefslogtreecommitdiff
path: root/samples/Kconfig
diff options
context:
space:
mode:
authorSeongJae Park <sj@kernel.org>2024-12-10 13:50:26 -0800
committerAndrew Morton <akpm@linux-foundation.org>2025-01-13 22:40:57 -0800
commit19d7c3adfdd4adbd286429849ac22ce9cce32477 (patch)
tree2e420fd674d858950259f590f9344f408ca1d242 /samples/Kconfig
parent08cc4c398ed2e4ba6119990eccd952ec3de1e241 (diff)
downloadlinux-19d7c3adfdd4adbd286429849ac22ce9cce32477.tar.gz
linux-19d7c3adfdd4adbd286429849ac22ce9cce32477.tar.bz2
linux-19d7c3adfdd4adbd286429849ac22ce9cce32477.zip
samples: add a skeleton of a sample DAMON module for working set size estimation
Patch series "mm/damon: add sample modules". Implement a proactive cold memory regions reclaiming logic of prcl sample module using DAMOS. The logic treats memory regions that not accessed at all for five or more seconds as cold, and reclaim those as soon as found. This patch (of 5): Add a skeleton for a sample DAMON static module that can be used for estimating working set size of a given process. Note that it is a static module since DAMON is not exporting symbols to loadable modules for now. It exposes two module parameters, namely 'pid' and 'enable'. 'pid' will specify the process that the module will estimate the working set size of. 'enable' will receive whether to start or stop the estimation. Because this is just a skeleton, the parameters do nothing, though. The functionalities will be implemented by following commits. Link: https://lkml.kernel.org/r/20241210215030.85675-1-sj@kernel.org Link: https://lkml.kernel.org/r/20241210215030.85675-2-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'samples/Kconfig')
-rw-r--r--samples/Kconfig2
1 files changed, 2 insertions, 0 deletions
diff --git a/samples/Kconfig b/samples/Kconfig
index b288d9991d27..8d5a36f0e5d6 100644
--- a/samples/Kconfig
+++ b/samples/Kconfig
@@ -293,6 +293,8 @@ config SAMPLE_CGROUP
source "samples/rust/Kconfig"
+source "samples/damon/Kconfig"
+
endif # SAMPLES
config HAVE_SAMPLE_FTRACE_DIRECT