File Index
Files and directories
Sign in
FILE

Kconfig

File preview with syntax highlighting.

linux-6.19.14/mm/damon/Kconfig KCONFIG
  1# SPDX-License-Identifier: GPL-2.0-only
  2
  3menu "Data Access Monitoring"
  4
  5config DAMON
  6	bool "DAMON: Data Access Monitoring Framework"
  7	help
  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.
 11
 12	  See https://www.kernel.org/doc/html/latest/mm/damon/index.html for
 13	  more information.
 14
 15config DAMON_KUNIT_TEST
 16	bool "Test for damon" if !KUNIT_ALL_TESTS
 17	depends on DAMON && KUNIT=y
 18	default KUNIT_ALL_TESTS
 19	help
 20	  This builds the DAMON Kunit test suite.
 21
 22	  For more information on KUnit and unit tests in general, please refer
 23	  to the KUnit documentation.
 24
 25	  If unsure, say N.
 26
 27config DAMON_VADDR
 28	bool "Data access monitoring operations for virtual address spaces"
 29	depends on DAMON && MMU
 30	select PAGE_IDLE_FLAG
 31	default DAMON
 32	help
 33	  This builds the default data access monitoring operations for DAMON
 34	  that work for virtual address spaces.
 35
 36config DAMON_PADDR
 37	bool "Data access monitoring operations for the physical address space"
 38	depends on DAMON && MMU
 39	select PAGE_IDLE_FLAG
 40	default DAMON
 41	help
 42	  This builds the default data access monitoring operations for DAMON
 43	  that works for the physical address space.
 44
 45config DAMON_VADDR_KUNIT_TEST
 46	bool "Test for DAMON operations" if !KUNIT_ALL_TESTS
 47	depends on DAMON_VADDR && KUNIT=y
 48	default KUNIT_ALL_TESTS
 49	help
 50	  This builds the DAMON virtual addresses operations Kunit test suite.
 51
 52	  For more information on KUnit and unit tests in general, please refer
 53	  to the KUnit documentation.
 54
 55	  If unsure, say N.
 56
 57config DAMON_SYSFS
 58	bool "DAMON sysfs interface"
 59	depends on DAMON && SYSFS
 60	default DAMON
 61	help
 62	  This builds the sysfs interface for DAMON.  The user space can use
 63	  the interface for arbitrary data access monitoring.
 64
 65config DAMON_SYSFS_KUNIT_TEST
 66	bool "Test for damon sysfs interface" if !KUNIT_ALL_TESTS
 67	depends on DAMON_SYSFS && KUNIT=y
 68	default KUNIT_ALL_TESTS
 69	help
 70	  This builds the DAMON sysfs interface Kunit test suite.
 71
 72	  For more information on KUnit and unit tests in general, please refer
 73	  to the KUnit documentation.
 74
 75	  If unsure, say N.
 76
 77config DAMON_RECLAIM
 78	bool "Build DAMON-based reclaim (DAMON_RECLAIM)"
 79	depends on DAMON_PADDR
 80	help
 81	  This builds the DAMON-based reclamation subsystem.  It finds pages
 82	  that not accessed for a long time (cold) using DAMON and reclaim
 83	  those.
 84
 85	  This is suggested to be used as a proactive and lightweight
 86	  reclamation under light memory pressure, while the traditional page
 87	  scanning-based reclamation is used for heavy pressure.
 88
 89config DAMON_LRU_SORT
 90	bool "Build DAMON-based LRU-lists sorting (DAMON_LRU_SORT)"
 91	depends on DAMON_PADDR
 92	help
 93	  This builds the DAMON-based LRU-lists sorting subsystem.  It tries to
 94	  protect frequently accessed (hot) pages while rarely accessed (cold)
 95	  pages reclaimed first under memory pressure.
 96
 97config DAMON_STAT
 98	bool "Build data access monitoring stat (DAMON_STAT)"
 99	depends on DAMON_PADDR
100	help
101	  This builds the DAMON-based access monitoring statistics subsystem.
102	  It runs DAMON and expose access monitoring results in simple stat
103	  metrics.
104
105config DAMON_STAT_ENABLED_DEFAULT
106	bool "Enable DAMON_STAT by default"
107	depends on DAMON_STAT
108	default DAMON_STAT
109	help
110	  Whether to enable DAMON_STAT by default.  Users can disable it in
111	  boot or runtime using its 'enabled' parameter.
112
113endmenu
~/ Read-only file preview.