brintos

brintos / linux-shallow public Read only

0
0
Text · 3.7 KiB · 35b72f8 Raw
125 lines · plain
1# SPDX-License-Identifier: GPL-2.0-only2 3menu "Data Access Monitoring"4 5config DAMON6	bool "DAMON: Data Access Monitoring Framework"7	help8	  This builds a framework that allows kernel subsystems to monitor9	  access frequency of each memory region. The information can be useful10	  for performance-centric DRAM level memory management.11 12	  See https://www.kernel.org/doc/html/latest/mm/damon/index.html for13	  more information.14 15config DAMON_KUNIT_TEST16	bool "Test for damon" if !KUNIT_ALL_TESTS17	depends on DAMON && KUNIT=y18	default KUNIT_ALL_TESTS19	help20	  This builds the DAMON Kunit test suite.21 22	  For more information on KUnit and unit tests in general, please refer23	  to the KUnit documentation.24 25	  If unsure, say N.26 27config DAMON_VADDR28	bool "Data access monitoring operations for virtual address spaces"29	depends on DAMON && MMU30	select PAGE_IDLE_FLAG31	help32	  This builds the default data access monitoring operations for DAMON33	  that work for virtual address spaces.34 35config DAMON_PADDR36	bool "Data access monitoring operations for the physical address space"37	depends on DAMON && MMU38	select PAGE_IDLE_FLAG39	help40	  This builds the default data access monitoring operations for DAMON41	  that works for the physical address space.42 43config DAMON_VADDR_KUNIT_TEST44	bool "Test for DAMON operations" if !KUNIT_ALL_TESTS45	depends on DAMON_VADDR && KUNIT=y46	default KUNIT_ALL_TESTS47	help48	  This builds the DAMON virtual addresses operations Kunit test suite.49 50	  For more information on KUnit and unit tests in general, please refer51	  to the KUnit documentation.52 53	  If unsure, say N.54 55config DAMON_SYSFS56	bool "DAMON sysfs interface"57	depends on DAMON && SYSFS58	help59	  This builds the sysfs interface for DAMON.  The user space can use60	  the interface for arbitrary data access monitoring.61 62config DAMON_SYSFS_KUNIT_TEST63	bool "Test for damon debugfs interface" if !KUNIT_ALL_TESTS64	depends on DAMON_SYSFS && KUNIT=y65	default KUNIT_ALL_TESTS66	help67	  This builds the DAMON sysfs interface Kunit test suite.68 69	  For more information on KUnit and unit tests in general, please refer70	  to the KUnit documentation.71 72	  If unsure, say N.73 74config DAMON_DBGFS_DEPRECATED75	bool "DAMON debugfs interface (DEPRECATED!)"76	depends on DAMON_VADDR && DAMON_PADDR && DEBUG_FS77	help78	  This builds the debugfs interface for DAMON.  The user space admins79	  can use the interface for arbitrary data access monitoring.80 81	  If unsure, say N.82 83	  This is deprecated, so users should move to the sysfs interface84	  (DAMON_SYSFS).  If you depend on this and cannot move, please report85	  your usecase to damon@lists.linux.dev and linux-mm@kvack.org.86 87config DAMON_DBGFS88	bool89	default y90	depends on DAMON_DBGFS_DEPRECATED91 92config DAMON_DBGFS_KUNIT_TEST93	bool "Test for damon debugfs interface" if !KUNIT_ALL_TESTS94	depends on DAMON_DBGFS && KUNIT=y95	default KUNIT_ALL_TESTS96	help97	  This builds the DAMON debugfs interface Kunit test suite.98 99	  For more information on KUnit and unit tests in general, please refer100	  to the KUnit documentation.101 102	  If unsure, say N.103 104config DAMON_RECLAIM105	bool "Build DAMON-based reclaim (DAMON_RECLAIM)"106	depends on DAMON_PADDR107	help108	  This builds the DAMON-based reclamation subsystem.  It finds pages109	  that not accessed for a long time (cold) using DAMON and reclaim110	  those.111 112	  This is suggested to be used as a proactive and lightweight113	  reclamation under light memory pressure, while the traditional page114	  scanning-based reclamation is used for heavy pressure.115 116config DAMON_LRU_SORT117	bool "Build DAMON-based LRU-lists sorting (DAMON_LRU_SORT)"118	depends on DAMON_PADDR119	help120	  This builds the DAMON-based LRU-lists sorting subsystem.  It tries to121	  protect frequently accessed (hot) pages while rarely accessed (cold)122	  pages reclaimed first under memory pressure.123 124endmenu125