[patch v2] x86: increase CONFIG_NODES_SHIFT max to 10

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Rientjes
Date: Thursday, March 25, 2010 - 3:39 pm

Some larger systems require more than 512 nodes, so increase the maximum
CONFIG_NODES_SHIFT to 10 for a new max of 1024 nodes.

This was tested with numa=fake=64M on systems with more than 64GB of RAM.
A total of 1022 nodes were initialized.

Successfully builds with no additional warnings on x86_64 allyesconfig.

Signed-off-by: David Rientjes <rientjes@google.com>
---
 The BUILD_BUG_ON() in drivers/base/node.c has been fixed in Linus' -git
 (see 12ee3c0), so CONFIG_NODES_SHIFT of 10 no longer fails to compile for
 x86_64 allyesconfig.

 arch/x86/Kconfig |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -1213,8 +1213,8 @@ config NUMA_EMU
 
 config NODES_SHIFT
 	int "Maximum NUMA Nodes (as a power of 2)" if !MAXSMP
-	range 1 9
-	default "9" if MAXSMP
+	range 1 10
+	default "10" if MAXSMP
 	default "6" if X86_64
 	default "4" if X86_NUMAQ
 	default "3"
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch] x86: increase CONFIG_NODES_SHIFT max to 10, David Rientjes, (Wed Mar 10, 4:42 pm)
Re: [patch] x86: increase CONFIG_NODES_SHIFT max to 10, Ingo Molnar, (Thu Mar 11, 6:23 am)
Re: [patch] x86: increase CONFIG_NODES_SHIFT max to 10, Ingo Molnar, (Thu Mar 11, 7:15 am)
Re: [patch] x86: increase CONFIG_NODES_SHIFT max to 10, Ingo Molnar, (Thu Mar 11, 11:18 am)
[patch v2] x86: increase CONFIG_NODES_SHIFT max to 10, David Rientjes, (Thu Mar 25, 3:39 pm)
[tip:x86/urgent] x86: Increase CONFIG_NODES_SHIFT max to 10, tip-bot for David Ri ..., (Fri Apr 2, 12:06 pm)