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

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

三十三、Userfaultfd write protection support for shmem/hugetlbfs

对应配置变量为:CONFIG_PTE_MARKER_UFFD_WP。

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

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

Allows to create marker PTEs for userfaultfd write protection

purposes. It is required to enable userfaultfd write protection on

file-backed memory types like shmem and hugetlbfs.

允许创建用于userfaultfd写入保护目的的标记PTE。需要对类似于shmem和hugetlbfs等文件支持的内存类型启用userfaultfd写保护。

三十四、Multi-Gen LRU

对应配置变量为:CONFIG_LRU_GEN。

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

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

A high performance LRU implementation to overcommit memory. See

Documentation/admin-guide/mm/multigen_lru.rst for details.

用于过量使用内存的高性能LRU实现。有关详细信息,请参阅Documentation/admin guide/mm/multigen_lru.rst。

三十五、Enable by default

对应配置变量为:CONFIG_LRU_GEN_ENABLED。

此项只有选中和不选中两种状态,默认为不选中。只有当上一项“Multi-Gen LRU”被选中时,此项才会出现。

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

This option enables the multi-gen LRU by default.
 

此选项默认使能multi-gen LRU。

三十六、Full stats for debugging

对应配置变量为:CONFIG_LRU_GEN_STATS。

此项只有选中和不选中两种状态,默认为不选中。只有前项“Multi-Gen LRU”被选中时,此项才会出现。

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

Do not enable this option unless you plan to look at historical stats

from evicted generations for debugging purpose.

This option has a per-memcg and per-node memory overhead.

除非打算查看被逐出的生成物的历史统计数据以进行调试,否则不要启用此选项。

此选项具有per-memcg和per-node的内存开销。

猜你喜欢

转载自blog.csdn.net/phmatthaus/article/details/131189907