Linux内核中内存管理相关配置项的详细解析16

接前一篇文章:Linux内核中内存管理相关配置项的详细解析15

三十七、Data Access Monitoring

此项展开后如下图所示:

“DAMON: Data Access Monitoring Framework”项默认不选中。如果将其选中,则页面变为:

1. DAMON: Data Access Monitoring Framework

对应配置变量为:CONFIG_DAMON。

此项只有选中和不选中两种状态,默认为不选中。

此项的内核源码详细解释为:

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.

此项构建了一个框架,允许内核子系统监视每个内存区域的访问频率。这些信息对于以性能为中心的DRAM级内存管理非常有用。

2. Data access monitoring operations for virtual address spaces

对应配置变量为:CONFIG_DAMON_VADDR。

此项只有选中和不选中两种状态,默认为不选中。

此项的内核源码详细解释为:

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

此项为DAMON构建了默认的数据访问监控操作,这些操作适用于虚拟地址空间。

3. Data access monitoring operations for the physical address space

对应配置变量为:CONFIG_DAMON_PADDR。

此项只有选中和不选中两种状态,默认为不选中。

此项的内核源码详细解释为:

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

此项为DAMON构建了默认的数据访问监控操作,这些操作适用于物理地址空间。

4. DAMON sysfs interface

对应配置变量为:CONFIG_DAMON_SYSFS。

此项只有选中和不选中两种状态,默认为不选中。

此项的内核源码详细解释为:

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

此项为DAMON构建了sysfs接口。用户空间可以使用该接口进行任意数据访问监控。

5. DAMON debugfs interface

对应配置变量为:CONFIG_DAMON_DBGFS。

此项只有选中和不选中两种状态,默认为不选中。只有当“Data access monitoring operations for virtual address spaces”和“Data access monitoring operations for the physical address space”同时被选中时,此项才会出现。

此项的内核源码详细解释为:

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

If unsure, say N.

This will be removed after >5.15.y LTS kernel is released, so users
should move to the sysfs interface (DAMON_SYSFS).

此项为DAMON构建了debugfs接口。用户空间管理员可以使用该接口进行任意数据访问监控。

如果不确定(不知道该如何选择),选择N。

此项在版本大于5.15.y的LTS内核之后将被移除,因此用户应该移动到sysfs接口(DAMON_SYSFS)。

6. Build DAMON-based reclaim (DAMON_RECLAIM)

对应配置变量为:CONFIG_DAMON_RECLAIM。

此项只有选中和不选中两种状态,默认为不选中。只有当Data access monitoring operations for the physical address space”项被选中时,此项才会出现。

此项的内核源码详细解释为:

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.

此项构建了基于DAMON的回收子系统。它使用DAMON查找长时间未访问(冷)的页面并回收这些页面。

建议将其用作轻度内存压力下的主动和轻量级回收,而传统的基于页面扫描的回收用于重压力。

7. Build DAMON-based LRU-lists sorting (DAMON_LRU_SORT)

对应配置变量为:CONFIG_DAMON_LRU_SORT。

此项只有选中和不选中两种状态,默认为不选中。只有当Data access monitoring operations for the physical address space”项被选中时,此项才会出现。

此项的内核源码详细解释为:

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.

此项构建了基于DAMON的LRU列表排序子系统。在内存压力下,它试图保护频繁访问(热)的页面,而首先回收很少访问(冷)的页面。

猜你喜欢

转载自blog.csdn.net/phmatthaus/article/details/131190212
今日推荐