1 # SPDX-License-Identifier: GPL-2.0-only
3 menu "Data Access Monitoring"
6 bool "DAMON: Data Access Monitoring Framework"
8 This builds a framework that allows kernel subsystems to monitor
9 access frequency of each memory region. The information can be useful
10 for performance-centric DRAM level memory management.
12 See https://www.kernel.org/doc/html/latest/mm/damon/index.html for
15 config DAMON_KUNIT_TEST
16 bool "Test for damon" if !KUNIT_ALL_TESTS
17 depends on DAMON && KUNIT=y
18 default KUNIT_ALL_TESTS
20 This builds the DAMON Kunit test suite.
22 For more information on KUnit and unit tests in general, please refer
23 to the KUnit documentation.
28 bool "Data access monitoring operations for virtual address spaces"
29 depends on DAMON && MMU
32 This builds the default data access monitoring operations for DAMON
33 that work for virtual address spaces.
36 bool "Data access monitoring operations for the physical address space"
37 depends on DAMON && MMU
40 This builds the default data access monitoring operations for DAMON
41 that works for the physical address space.
43 config DAMON_VADDR_KUNIT_TEST
44 bool "Test for DAMON operations" if !KUNIT_ALL_TESTS
45 depends on DAMON_VADDR && KUNIT=y
46 default KUNIT_ALL_TESTS
48 This builds the DAMON virtual addresses operations Kunit test suite.
50 For more information on KUnit and unit tests in general, please refer
51 to the KUnit documentation.
56 bool "DAMON sysfs interface"
57 depends on DAMON && SYSFS
59 This builds the sysfs interface for DAMON. The user space can use
60 the interface for arbitrary data access monitoring.
62 config DAMON_SYSFS_KUNIT_TEST
63 bool "Test for damon sysfs interface" if !KUNIT_ALL_TESTS
64 depends on DAMON_SYSFS && KUNIT=y
65 default KUNIT_ALL_TESTS
67 This builds the DAMON sysfs interface Kunit test suite.
69 For more information on KUnit and unit tests in general, please refer
70 to the KUnit documentation.
74 config DAMON_DBGFS_DEPRECATED
75 bool "DAMON debugfs interface (DEPRECATED!)"
76 depends on DAMON_VADDR && DAMON_PADDR && DEBUG_FS
78 This builds the debugfs interface for DAMON. The user space admins
79 can use the interface for arbitrary data access monitoring.
83 This is deprecated, so users should move to the sysfs interface
84 (DAMON_SYSFS). If you depend on this and cannot move, please report
85 your usecase to damon@lists.linux.dev and linux-mm@kvack.org.
90 depends on DAMON_DBGFS_DEPRECATED
92 config DAMON_DBGFS_KUNIT_TEST
93 bool "Test for damon debugfs interface" if !KUNIT_ALL_TESTS
94 depends on DAMON_DBGFS && KUNIT=y
95 default KUNIT_ALL_TESTS
97 This builds the DAMON debugfs interface Kunit test suite.
99 For more information on KUnit and unit tests in general, please refer
100 to the KUnit documentation.
105 bool "Build DAMON-based reclaim (DAMON_RECLAIM)"
106 depends on DAMON_PADDR
108 This builds the DAMON-based reclamation subsystem. It finds pages
109 that not accessed for a long time (cold) using DAMON and reclaim
112 This is suggested to be used as a proactive and lightweight
113 reclamation under light memory pressure, while the traditional page
114 scanning-based reclamation is used for heavy pressure.
116 config DAMON_LRU_SORT
117 bool "Build DAMON-based LRU-lists sorting (DAMON_LRU_SORT)"
118 depends on DAMON_PADDR
120 This builds the DAMON-based LRU-lists sorting subsystem. It tries to
121 protect frequently accessed (hot) pages while rarely accessed (cold)
122 pages reclaimed first under memory pressure.