12224d848SSeongJae Park# SPDX-License-Identifier: GPL-2.0-only 22224d848SSeongJae Park 32224d848SSeongJae Parkmenu "Data Access Monitoring" 42224d848SSeongJae Park 52224d848SSeongJae Parkconfig DAMON 62224d848SSeongJae Park bool "DAMON: Data Access Monitoring Framework" 72224d848SSeongJae Park help 82224d848SSeongJae Park This builds a framework that allows kernel subsystems to monitor 92224d848SSeongJae Park access frequency of each memory region. The information can be useful 102224d848SSeongJae Park for performance-centric DRAM level memory management. 112224d848SSeongJae Park 122224d848SSeongJae Park See https://damonitor.github.io/doc/html/latest-damon/index.html for 132224d848SSeongJae Park more information. 142224d848SSeongJae Park 1517ccae8bSSeongJae Parkconfig DAMON_KUNIT_TEST 1617ccae8bSSeongJae Park bool "Test for damon" if !KUNIT_ALL_TESTS 1717ccae8bSSeongJae Park depends on DAMON && KUNIT=y 1817ccae8bSSeongJae Park default KUNIT_ALL_TESTS 1917ccae8bSSeongJae Park help 2017ccae8bSSeongJae Park This builds the DAMON Kunit test suite. 2117ccae8bSSeongJae Park 2217ccae8bSSeongJae Park For more information on KUnit and unit tests in general, please refer 2317ccae8bSSeongJae Park to the KUnit documentation. 2417ccae8bSSeongJae Park 2517ccae8bSSeongJae Park If unsure, say N. 2617ccae8bSSeongJae Park 273f49584bSSeongJae Parkconfig DAMON_VADDR 28*f7d911c3SSeongJae Park bool "Data access monitoring operations for virtual address spaces" 293f49584bSSeongJae Park depends on DAMON && MMU 303f49584bSSeongJae Park select PAGE_IDLE_FLAG 313f49584bSSeongJae Park help 32*f7d911c3SSeongJae Park This builds the default data access monitoring operations for DAMON 33f24b0626SGeert Uytterhoeven that work for virtual address spaces. 343f49584bSSeongJae Park 35a28397beSSeongJae Parkconfig DAMON_PADDR 36*f7d911c3SSeongJae Park bool "Data access monitoring operations for the physical address space" 37a28397beSSeongJae Park depends on DAMON && MMU 38a28397beSSeongJae Park select PAGE_IDLE_FLAG 39a28397beSSeongJae Park help 40*f7d911c3SSeongJae Park This builds the default data access monitoring operations for DAMON 41a28397beSSeongJae Park that works for the physical address space. 42a28397beSSeongJae Park 4317ccae8bSSeongJae Parkconfig DAMON_VADDR_KUNIT_TEST 44*f7d911c3SSeongJae Park bool "Test for DAMON operations" if !KUNIT_ALL_TESTS 4517ccae8bSSeongJae Park depends on DAMON_VADDR && KUNIT=y 4617ccae8bSSeongJae Park default KUNIT_ALL_TESTS 4717ccae8bSSeongJae Park help 48*f7d911c3SSeongJae Park This builds the DAMON virtual addresses operations Kunit test suite. 4917ccae8bSSeongJae Park 5017ccae8bSSeongJae Park For more information on KUnit and unit tests in general, please refer 5117ccae8bSSeongJae Park to the KUnit documentation. 5217ccae8bSSeongJae Park 5317ccae8bSSeongJae Park If unsure, say N. 5417ccae8bSSeongJae Park 554bc05954SSeongJae Parkconfig DAMON_DBGFS 564bc05954SSeongJae Park bool "DAMON debugfs interface" 57c026291aSSeongJae Park depends on DAMON_VADDR && DAMON_PADDR && DEBUG_FS 584bc05954SSeongJae Park help 594bc05954SSeongJae Park This builds the debugfs interface for DAMON. The user space admins 604bc05954SSeongJae Park can use the interface for arbitrary data access monitoring. 614bc05954SSeongJae Park 624bc05954SSeongJae Park If unsure, say N. 634bc05954SSeongJae Park 6417ccae8bSSeongJae Parkconfig DAMON_DBGFS_KUNIT_TEST 6517ccae8bSSeongJae Park bool "Test for damon debugfs interface" if !KUNIT_ALL_TESTS 6617ccae8bSSeongJae Park depends on DAMON_DBGFS && KUNIT=y 6717ccae8bSSeongJae Park default KUNIT_ALL_TESTS 6817ccae8bSSeongJae Park help 6917ccae8bSSeongJae Park This builds the DAMON debugfs interface Kunit test suite. 7017ccae8bSSeongJae Park 7117ccae8bSSeongJae Park For more information on KUnit and unit tests in general, please refer 7217ccae8bSSeongJae Park to the KUnit documentation. 7317ccae8bSSeongJae Park 7417ccae8bSSeongJae Park If unsure, say N. 7517ccae8bSSeongJae Park 7643b0536cSSeongJae Parkconfig DAMON_RECLAIM 7743b0536cSSeongJae Park bool "Build DAMON-based reclaim (DAMON_RECLAIM)" 7843b0536cSSeongJae Park depends on DAMON_PADDR 7943b0536cSSeongJae Park help 8043b0536cSSeongJae Park This builds the DAMON-based reclamation subsystem. It finds pages 8143b0536cSSeongJae Park that not accessed for a long time (cold) using DAMON and reclaim 8243b0536cSSeongJae Park those. 8343b0536cSSeongJae Park 8443b0536cSSeongJae Park This is suggested to be used as a proactive and lightweight 8543b0536cSSeongJae Park reclamation under light memory pressure, while the traditional page 8643b0536cSSeongJae Park scanning-based reclamation is used for heavy pressure. 8743b0536cSSeongJae Park 882224d848SSeongJae Parkendmenu 89