| 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | |
| 3 | menu "DAMON Samples" |
| 4 | |
| 5 | config SAMPLE_DAMON_WSSE |
| 6 | bool "DAMON sample module for working set size estimation" |
| 7 | depends on DAMON && DAMON_VADDR |
| 8 | help |
| 9 | This builds DAMON sample module for working set size estimation. |
| 10 | |
| 11 | The module receives a pid, monitor access to the virtual address |
| 12 | space of the process, estimate working set size of the process, and |
| 13 | repeatedly prints the size on the kernel log. |
| 14 | |
| 15 | If unsure, say N. |
| 16 | |
| 17 | config SAMPLE_DAMON_PRCL |
| 18 | bool "DAMON sample module for access-aware proactive reclamation" |
| 19 | depends on DAMON && DAMON_VADDR |
| 20 | help |
| 21 | This builds DAMON sample module for access-aware proactive |
| 22 | reclamation. |
| 23 | |
| 24 | The module receives a pid, monitor access to the virtual address |
| 25 | space of the process, find memory regions that not accessed, and |
| 26 | proactively reclaim the regions. |
| 27 | |
| 28 | If unsure, say N. |
| 29 | |
| 30 | config SAMPLE_DAMON_MTIER |
| 31 | bool "DAMON sample module for memory tiering" |
| 32 | depends on DAMON && DAMON_PADDR |
| 33 | help |
| 34 | This builds DAMON sample module for memory tiering. |
| 35 | |
| 36 | The module assumes the system is constructed with two NUMA nodes, |
| 37 | which seems as local and remote nodes to all CPUs. For example, |
| 38 | node0 is for DDR5 DRAMs connected via DIMM, while node1 is for DDR4 |
| 39 | DRAMs connected via CXL. |
| 40 | |
| 41 | If unsure, say N. |
| 42 | |
| 43 | endmenu |