* [PATCH] - Allow NODES_SHIFT to be a config option on x86_64
@ 2008-03-21 13:34 Jack Steiner
2008-03-21 14:26 ` Ingo Molnar
0 siblings, 1 reply; 5+ messages in thread
From: Jack Steiner @ 2008-03-21 13:34 UTC (permalink / raw)
To: mingo, ak, tglx; +Cc: linux-kernel
Allow the maximum number of nodes in an x86_64 system to
be configurable. This patch does NOT change the default value
but allows the value to be a config option.
Signed-off-by: Jack Steiner <steiner@sgi.com>
---
arch/x86/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux/arch/x86/Kconfig
===================================================================
--- linux.orig/arch/x86/Kconfig 2008-03-18 08:11:19.000000000 -0500
+++ linux/arch/x86/Kconfig 2008-03-18 08:23:35.000000000 -0500
@@ -905,7 +905,7 @@ config NUMA_EMU
number of nodes. This is only useful for debugging.
config NODES_SHIFT
- int
+ int "Max num nodes shift(1-15)"
range 1 15 if X86_64
default "6" if X86_64
default "4" if X86_NUMAQ
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] - Allow NODES_SHIFT to be a config option on x86_64
2008-03-21 13:34 [PATCH] - Allow NODES_SHIFT to be a config option on x86_64 Jack Steiner
@ 2008-03-21 14:26 ` Ingo Molnar
2008-03-21 14:54 ` Jack Steiner
0 siblings, 1 reply; 5+ messages in thread
From: Ingo Molnar @ 2008-03-21 14:26 UTC (permalink / raw)
To: Jack Steiner; +Cc: ak, tglx, linux-kernel
* Jack Steiner <steiner@sgi.com> wrote:
> Allow the maximum number of nodes in an x86_64 system to be
> configurable. This patch does NOT change the default value but allows
> the value to be a config option.
i've applied your patch - but i'm wondering, shouldnt we auto-scale the
default according to max number of CPUs? (with some sensible scaling
that happens to meet your expected large-system needs as well ;-) All
the current manual configuration of nodes shift is ugly.
Ingo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] - Allow NODES_SHIFT to be a config option on x86_64
2008-03-21 14:26 ` Ingo Molnar
@ 2008-03-21 14:54 ` Jack Steiner
2008-03-21 14:57 ` Ingo Molnar
0 siblings, 1 reply; 5+ messages in thread
From: Jack Steiner @ 2008-03-21 14:54 UTC (permalink / raw)
To: Ingo Molnar; +Cc: ak, tglx, linux-kernel
On Fri, Mar 21, 2008 at 03:26:49PM +0100, Ingo Molnar wrote:
>
> * Jack Steiner <steiner@sgi.com> wrote:
>
> > Allow the maximum number of nodes in an x86_64 system to be
> > configurable. This patch does NOT change the default value but allows
> > the value to be a config option.
>
> i've applied your patch - but i'm wondering, shouldnt we auto-scale the
> default according to max number of CPUs? (with some sensible scaling
> that happens to meet your expected large-system needs as well ;-) All
> the current manual configuration of nodes shift is ugly.
I would prefer to auto-scale, too, but our hardware platform allows
too many options to make it easy. The current system configs will support
from 0 to 32 cpus per node (some nodes have memory only).
However, I'm open to suggestions if you have any ideas....
--- jack
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] - Allow NODES_SHIFT to be a config option on x86_64
2008-03-21 14:54 ` Jack Steiner
@ 2008-03-21 14:57 ` Ingo Molnar
2008-03-21 15:23 ` Jack Steiner
0 siblings, 1 reply; 5+ messages in thread
From: Ingo Molnar @ 2008-03-21 14:57 UTC (permalink / raw)
To: Jack Steiner; +Cc: ak, tglx, linux-kernel
* Jack Steiner <steiner@sgi.com> wrote:
> On Fri, Mar 21, 2008 at 03:26:49PM +0100, Ingo Molnar wrote:
> >
> > * Jack Steiner <steiner@sgi.com> wrote:
> >
> > > Allow the maximum number of nodes in an x86_64 system to be
> > > configurable. This patch does NOT change the default value but allows
> > > the value to be a config option.
> >
> > i've applied your patch - but i'm wondering, shouldnt we auto-scale the
> > default according to max number of CPUs? (with some sensible scaling
> > that happens to meet your expected large-system needs as well ;-) All
> > the current manual configuration of nodes shift is ugly.
>
> I would prefer to auto-scale, too, but our hardware platform allows
> too many options to make it easy. The current system configs will
> support from 0 to 32 cpus per node (some nodes have memory only).
>
> However, I'm open to suggestions if you have any ideas....
how about scaling for the worst case, and allowing distros to tune down
if they really want? What's the cost of a too large NODE_SHIFT?
Ingo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] - Allow NODES_SHIFT to be a config option on x86_64
2008-03-21 14:57 ` Ingo Molnar
@ 2008-03-21 15:23 ` Jack Steiner
0 siblings, 0 replies; 5+ messages in thread
From: Jack Steiner @ 2008-03-21 15:23 UTC (permalink / raw)
To: Ingo Molnar; +Cc: ak, tglx, linux-kernel
On Fri, Mar 21, 2008 at 03:57:36PM +0100, Ingo Molnar wrote:
>
> * Jack Steiner <steiner@sgi.com> wrote:
>
> > On Fri, Mar 21, 2008 at 03:26:49PM +0100, Ingo Molnar wrote:
> > >
> > > * Jack Steiner <steiner@sgi.com> wrote:
> > >
> > > > Allow the maximum number of nodes in an x86_64 system to be
> > > > configurable. This patch does NOT change the default value but allows
> > > > the value to be a config option.
> > >
> > > i've applied your patch - but i'm wondering, shouldnt we auto-scale the
> > > default according to max number of CPUs? (with some sensible scaling
> > > that happens to meet your expected large-system needs as well ;-) All
> > > the current manual configuration of nodes shift is ugly.
> >
> > I would prefer to auto-scale, too, but our hardware platform allows
> > too many options to make it easy. The current system configs will
> > support from 0 to 32 cpus per node (some nodes have memory only).
> >
> > However, I'm open to suggestions if you have any ideas....
>
> how about scaling for the worst case, and allowing distros to tune down
> if they really want? What's the cost of a too large NODE_SHIFT?
>
NODE_SHIFT affects a number of nodemasks so you probably don't want it
a lot larger than needed - especially if you are going over 64 nodes. Our
target value is currently 512 although it is possible that it may
change to 256.
Let me do some experiments on auto-config. I'll get back to you....
--- jack
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-03-21 15:23 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-21 13:34 [PATCH] - Allow NODES_SHIFT to be a config option on x86_64 Jack Steiner
2008-03-21 14:26 ` Ingo Molnar
2008-03-21 14:54 ` Jack Steiner
2008-03-21 14:57 ` Ingo Molnar
2008-03-21 15:23 ` Jack Steiner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox