接前一篇文章:Linux内核中内存管理相关配置项的详细解析5
六、Memory hotplug
此项只有选中和不选中两种状态,默认为选中。
此项展开后如下图所示:
1. Online the newly added memory blocks by default
对应配置变量为:CONFIG_MEMORY_HOTPLUG_DEFAULT_ONLINE。
此项只有选中和不选中两种状态,默认为选中。
此项的内核源码详细解释为:
This option sets the default policy setting for memory hotplug
onlining policy (/sys/devices/system/memory/auto_online_blocks) which
determines what happens to newly added memory regions. Policy setting
can always be changed at runtime.
See Documentation/admin-guide/mm/memory-hotplug.rst for more information.
Say Y here if you want all hot-plugged memory blocks to appear in
'online' state by default.
Say N here if you want the default policy to keep all hot-plugged
memory blocks in 'offline' state.
此选项设置内存热插拔联机策略的默认策略设置(/sys/devices/system/memory/auto_online_blocks),其确定新添加的存储器区域发生什么。策略设置始终可以在运行时更改。
更多信息请参阅Documentation/admin guide/mm/memory-hotplug.rst。
如果希望所有热插拔内存块默认显示为“在线”状态,在此选择Y。
如果希望默认策略使所有热插拔内存块保持“离线”状态,在此选择N。
2. Allow for memory hot remove
此项只有选中和不选中两种状态,默认为选中。
此选项没有可用的帮助信息。