Skip to contentSkip to conversation

arm64: Kconfig: Enable NODES_SPAN_OTHER_NODES config for NUMA

PATCH In review Hoan Tran OS 2 participants 3 messages Jun 24, 2019 – Jun 25, 2019 arm64

lore
Share & tools
lore
#0 lore raw

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
index 697ea05..21fc168 100644
@@ -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
maintainer
#1 lore raw
Quoted 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_NODES config for NUMA to support this type of NUMA layout.

---
 arch/arm64/Kconfig | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm64/Kconfig +0 -0
index 697ea05..21fc168 100644

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

#2 lore raw

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_NODES config for NUMA to support this type of NUMA layout.

---
  arch/arm64/Kconfig | 7 +++++++
  1 file changed, 7 insertions(+)
arch/arm64/Kconfig +0 -0
index 697ea05..21fc168 100644
@@ -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_NUMA

How 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_NODES in mm/page_alloc.c with #ifdef CONFIG_NUMA.

Agreed, let me send another patch as your suggestion.

Thanks
Hoan

Quoted 2 lines

Will