Kconfig 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. menu "Data Access Monitoring"
  3. config DAMON
  4. bool "DAMON: Data Access Monitoring Framework"
  5. help
  6. This builds a framework that allows kernel subsystems to monitor
  7. access frequency of each memory region. The information can be useful
  8. for performance-centric DRAM level memory management.
  9. See https://www.kernel.org/doc/html/latest/mm/damon/index.html for
  10. more information.
  11. config DAMON_KUNIT_TEST
  12. bool "Test for damon" if !KUNIT_ALL_TESTS
  13. depends on DAMON && KUNIT=y
  14. default KUNIT_ALL_TESTS
  15. help
  16. This builds the DAMON Kunit test suite.
  17. For more information on KUnit and unit tests in general, please refer
  18. to the KUnit documentation.
  19. If unsure, say N.
  20. config DAMON_VADDR
  21. bool "Data access monitoring operations for virtual address spaces"
  22. depends on DAMON && MMU
  23. select PAGE_IDLE_FLAG
  24. help
  25. This builds the default data access monitoring operations for DAMON
  26. that work for virtual address spaces.
  27. config DAMON_PADDR
  28. bool "Data access monitoring operations for the physical address space"
  29. depends on DAMON && MMU
  30. select PAGE_IDLE_FLAG
  31. help
  32. This builds the default data access monitoring operations for DAMON
  33. that works for the physical address space.
  34. config DAMON_VADDR_KUNIT_TEST
  35. bool "Test for DAMON operations" if !KUNIT_ALL_TESTS
  36. depends on DAMON_VADDR && KUNIT=y
  37. default KUNIT_ALL_TESTS
  38. help
  39. This builds the DAMON virtual addresses operations Kunit test suite.
  40. For more information on KUnit and unit tests in general, please refer
  41. to the KUnit documentation.
  42. If unsure, say N.
  43. config DAMON_SYSFS
  44. bool "DAMON sysfs interface"
  45. depends on DAMON && SYSFS
  46. help
  47. This builds the sysfs interface for DAMON. The user space can use
  48. the interface for arbitrary data access monitoring.
  49. config DAMON_SYSFS_KUNIT_TEST
  50. bool "Test for damon debugfs interface" if !KUNIT_ALL_TESTS
  51. depends on DAMON_SYSFS && KUNIT=y
  52. default KUNIT_ALL_TESTS
  53. help
  54. This builds the DAMON sysfs interface Kunit test suite.
  55. For more information on KUnit and unit tests in general, please refer
  56. to the KUnit documentation.
  57. If unsure, say N.
  58. config DAMON_DBGFS_DEPRECATED
  59. bool "DAMON debugfs interface (DEPRECATED!)"
  60. depends on DAMON_VADDR && DAMON_PADDR && DEBUG_FS
  61. help
  62. This builds the debugfs interface for DAMON. The user space admins
  63. can use the interface for arbitrary data access monitoring.
  64. If unsure, say N.
  65. This is deprecated, so users should move to the sysfs interface
  66. (DAMON_SYSFS). If you depend on this and cannot move, please report
  67. your usecase to damon@lists.linux.dev and linux-mm@kvack.org.
  68. config DAMON_DBGFS
  69. bool
  70. default y
  71. depends on DAMON_DBGFS_DEPRECATED
  72. config DAMON_DBGFS_KUNIT_TEST
  73. bool "Test for damon debugfs interface" if !KUNIT_ALL_TESTS
  74. depends on DAMON_DBGFS && KUNIT=y
  75. default KUNIT_ALL_TESTS
  76. help
  77. This builds the DAMON debugfs interface Kunit test suite.
  78. For more information on KUnit and unit tests in general, please refer
  79. to the KUnit documentation.
  80. If unsure, say N.
  81. config DAMON_RECLAIM
  82. bool "Build DAMON-based reclaim (DAMON_RECLAIM)"
  83. depends on DAMON_PADDR
  84. help
  85. This builds the DAMON-based reclamation subsystem. It finds pages
  86. that not accessed for a long time (cold) using DAMON and reclaim
  87. those.
  88. This is suggested to be used as a proactive and lightweight
  89. reclamation under light memory pressure, while the traditional page
  90. scanning-based reclamation is used for heavy pressure.
  91. config DAMON_LRU_SORT
  92. bool "Build DAMON-based LRU-lists sorting (DAMON_LRU_SORT)"
  93. depends on DAMON_PADDR
  94. help
  95. This builds the DAMON-based LRU-lists sorting subsystem. It tries to
  96. protect frequently accessed (hot) pages while rarely accessed (cold)
  97. pages reclaimed first under memory pressure.
  98. endmenu