arm64: Kconfig: Enable NODES_SPAN_OTHER_NODES config for NUMA
PATCH 1/1 arm64: Kconfig: Enable NODES_SPAN_OTHER_NODES config for NUMA
Some NUMA nodes have memory ranges that span other nodes. Even though a pfn is valid and between a node's start and end pfns, it may not reside on that node.
This patch enables NODES_SPAN_OTHER_NODES config for NUMA to support this type of NUMA layout.
--- arch/arm64/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+)
arch/arm64/Kconfig +7 -0
@@ -873,6 +873,13 @@ config NEED_PER_CPU_EMBED_FIRST_CHUNK config HOLES_IN_ZONE def_bool y +# Some NUMA nodes have memory ranges that span other nodes. +# Even though a pfn is valid and between a node's start and end pfns, +# it may not reside on that node. +config NODES_SPAN_OTHER_NODES + def_bool y + depends on ACPI_NUMA + source "kernel/Kconfig.hz" config ARCH_SUPPORTS_DEBUG_PAGEALLOC
Signature · 1 line
2.7.4
Will Deacon
maintainerQuoted 17 lines · Hoan Tran OS
Some NUMA nodes have memory ranges that span other nodes. Even though a pfn is valid and between a node's start and end pfns, it may not reside on that node.
This patch enables
NODES_SPAN_OTHER_NODESconfig for NUMA to support this type of NUMA layout.Signed-off-by Hoan Tran <[email protected]>--- arch/arm64/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+)arch/arm64/Kconfig +0
-0
arch/arm64/Kconfig config NEED_PER_CPU_EMBED_FIRST_CHUNK · line 881
Quoted 9 lines
arch/arm64/Kconfig +6
-0@@ -873,6 +873,13 @@ config NEED_PER_CPU_EMBED_FIRST_CHUNK config HOLES_IN_ZONE def_bool y +# Some NUMA nodes have memory ranges that span other nodes. +# Even though a pfn is valid and between a node's start and end pfns, +# it may not reside on that node. +config NODES_SPAN_OTHER_NODES + def_bool y + depends on ACPI_NUMA
How come this is specific to ACPI?
It would be nice if this was the default, given that only ia64, mips and sh appear to be the only NUMA-capable architectures which don't have it. In other words, replace the #ifdef CONFIG_NODES_SPAN_OTHER_NODES in mm/page_alloc.c with #ifdef CONFIG_NUMA.
Will
Hi Will,
Quoted 21 lines · Will Deacon
Quoted 20 lines · Hoan Tran OS
Some NUMA nodes have memory ranges that span other nodes. Even though a pfn is valid and between a node's start and end pfns, it may not reside on that node.
This patch enables
NODES_SPAN_OTHER_NODESconfig for NUMA to support this type of NUMA layout.Signed-off-by Hoan Tran <[email protected]>--- arch/arm64/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+)arch/arm64/Kconfig +0
-0@@ -873,6 +873,13 @@ config NEED_PER_CPU_EMBED_FIRST_CHUNK config HOLES_IN_ZONE def_bool y
Quoted 8 lines
arch/arm64/Kconfig config NEED_PER_CPU_EMBED_FIRST_CHUNK · line 881
Quoted 6 lines
arch/arm64/Kconfig +6
-0+# Some NUMA nodes have memory ranges that span other nodes. +# Even though a pfn is valid and between a node's start and end pfns, +# it may not reside on that node. +config NODES_SPAN_OTHER_NODES + def_bool y + depends on ACPI_NUMAHow come this is specific to ACPI?
I referred to x86 config. Beside of that, I only can test on the system with ACPI supported.
Quoted 5 lines
It would be nice if this was the default, given that only ia64, mips and sh appear to be the only NUMA-capable architectures which don't have it. In other words, replace the #ifdef
CONFIG_NODES_SPAN_OTHER_NODESinmm/page_alloc.cwith #ifdefCONFIG_NUMA.
Agreed, let me send another patch as your suggestion.
Thanks
Hoan
Quoted 2 lines
Will