Kconfig

Data Access Monitoring

CONFIG_DAMON DAMON: Data Access Monitoring Framework

On

This builds a framework that allows kernel subsystems to monitor access frequency of each memory region. The information can be useful for performance-centric DRAM level memory management.

See https://www.kernel.org/doc/html/latest/mm/damon/index.html for more information.

If DAMON

CONFIG_DAMON_DEBUG_SANITY Check sanity of DAMON code

On

This enables additional DAMON debugging-purpose sanity checks in DAMON code. This can be useful for finding bugs, but impose additional overhead. This is therefore recommended to be enabled on only development and test setups.

If unsure, say N.

CONFIG_DAMON_KUNIT_TEST Test for damon

Unknown

This builds the DAMON Kunit test suite.

For more information on KUnit and unit tests in general, please refer to the KUnit documentation.

If unsure, say N.

CONFIG_DAMON_VADDR Data access monitoring operations for virtual address spaces

On

This builds the default data access monitoring operations for DAMON that work for virtual address spaces.

CONFIG_DAMON_PADDR Data access monitoring operations for the physical address space

On

This builds the default data access monitoring operations for DAMON that works for the physical address space.

CONFIG_DAMON_VADDR_KUNIT_TEST Test for DAMON operations

Unknown

This builds the DAMON virtual addresses operations Kunit test suite.

For more information on KUnit and unit tests in general, please refer to the KUnit documentation.

If unsure, say N.

CONFIG_DAMON_SYSFS DAMON sysfs interface

On

This builds the sysfs interface for DAMON. The user space can use the interface for arbitrary data access monitoring.

If DAMON_SYSFS

CONFIG_DAMON_SYSFS_KUNIT_TEST Test for damon sysfs interface

Unknown

This builds the DAMON sysfs interface Kunit test suite.

For more information on KUnit and unit tests in general, please refer to the KUnit documentation.

If unsure, say N.

CONFIG_DAMON_RECLAIM Build DAMON-based reclaim (DAMON_RECLAIM)

On

This builds the DAMON-based reclamation subsystem. It finds pages that not accessed for a long time (cold) using DAMON and reclaim those.

This is suggested to be used as a proactive and lightweight reclamation under light memory pressure, while the traditional page scanning-based reclamation is used for heavy pressure.

CONFIG_DAMON_LRU_SORT Build DAMON-based LRU-lists sorting (DAMON_LRU_SORT)

On

This builds the DAMON-based LRU-lists sorting subsystem. It tries to protect frequently accessed (hot) pages while rarely accessed (cold) pages reclaimed first under memory pressure.

CONFIG_DAMON_STAT Build data access monitoring stat (DAMON_STAT)

On

This builds the DAMON-based access monitoring statistics subsystem. It runs DAMON and expose access monitoring results in simple stat metrics.

If DAMON_STAT

CONFIG_DAMON_STAT_ENABLED_DEFAULT Enable DAMON_STAT by default

On

Whether to enable DAMON_STAT by default. Users can disable it in boot or runtime using its 'enabled' parameter.

End of Data Access Monitoring