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

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

十三、Enable recovery from hardware memory errors

对应配置变量为:CONFIG_MEMORY_FAILURE。

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

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

Enables code to recover from some memory failures on systems

with MCA recovery. This allows a system to continue running

even when some of its memory has uncorrected errors. This requires

special hardware support and typically ECC memory.

使代码能够通过MCA recovery从系统上的某些内存故障中恢复。这允许系统即使在某些内存存在未更正的错误时也能继续运行。这需要特殊的硬件支持,通常需要ECC存储器。

十四、HWPoison pages injector

此项只有选中和不选中两种状态,默认为不选中。只有当上一项“nable recovery from hardware memory errors”被选中时,此项才会出现。

此选项没有可用的帮助信息。

十五、Transparent Hugepage Support

对应配置变量为:CONFIG_TRANSPARENT_HUGEPAGE。

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

Transparent Hugepages allows the kernel to use huge pages and

huge tlb transparently to the applications whenever possible.

This feature can improve computing performance to certain

applications by speeding up page faults during memory

allocation, by reducing the number of tlb misses and by speeding

up the pagetable walking.

Transparent Hugepages允许内核在任何可能的时候对应用程序透明地使用巨页和巨页表。该特征可以提高某些应用程序的计算性能,通过在内存分配期间加速页面故障,通过减少tlb未命中的次数以及加快页表遍历。

此项展开后如下图所示:

1. Transparent Hugepage Support sysfs defaults

选择透明巨页支持的sysfs默认值。

此项展开后如下图所示:

  • always

对应配置变量为:CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS。

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

Enabling Transparent Hugepage always, can increase the

memory footprint of applications without a guaranteed

benefit but it will work automatically for all applications.

始终启用透明巨页,可能会在没有保证的好处的情况下增加应用程序的内存占用,但它将自动适用于所有应用程序。

  • madvise

对应配置变量为:CONFIG_TRANSPARENT_HUGEPAGE_MADVISE。

默认选择此项。

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

Enabling Transparent Hugepage madvise, will only provide a

performance improvement benefit to the applications using

madvise(MADV_HUGEPAGE) but it won't risk to increase the

memory footprint of applications without a guaranteed

benefit.

通过madvise使能透明巨页,将只会为使用madvise(MADV_HUGEPAGE)的应用程序提供性能提升受益,但如果没有保证的好处,它就不会增加应用程序的内存占用。

2. Read-only THP for filesystems (EXPERIMENTAL)

对应配置变量为:CONFIG_READ_ONLY_THP_FOR_FS

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

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

Allow khugepaged to put read-only file-backed pages in THP.

This is marked experimental because it is a new feature. Write

support of file THPs will be developed in the next few release

cycles.

允许khugepaged将只读文件备份页放入THP中。

这被标记为实验性的,因为这是一个新功能。文件THP的写支持将在接下来的几个发布周期中开发。

猜你喜欢

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