mirror of
https://github.com/raspberrypi/linux.git
synced 2026-01-04 18:27:36 +00:00
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>
31 lines
877 B
Plaintext
31 lines
877 B
Plaintext
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
menu "DAMON Samples"
|
|
|
|
config SAMPLE_DAMON_WSSE
|
|
bool "DAMON sameple module for working set size estimation"
|
|
depends on DAMON && DAMON_VADDR
|
|
help
|
|
This builds DAMON sample module for working set size estimation.
|
|
|
|
The module receives a pid, monitor access to the virtual address
|
|
space of the process, estimate working set size of the process, and
|
|
repeatedly prints the size on the kernel log.
|
|
|
|
If unsure, say N.
|
|
|
|
config SAMPLE_DAMON_PRCL
|
|
bool "DAMON sameple module for access-aware proactive reclamation"
|
|
depends on DAMON && DAMON_VADDR
|
|
help
|
|
This builds DAMON sample module for access-aware proactive
|
|
reclamation.
|
|
|
|
The module receives a pid, monitor access to the virtual address
|
|
space of the process, find memory regions that not accessed, and
|
|
proactively reclaim the regions.
|
|
|
|
If unsure, say N.
|
|
|
|
endmenu
|