public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Allow flatmem to be disabled when only sparsemem is implemented
@ 2005-11-11 16:03 Anton Blanchard
  2005-11-11 17:51 ` Andy Whitcroft
  0 siblings, 1 reply; 4+ messages in thread
From: Anton Blanchard @ 2005-11-11 16:03 UTC (permalink / raw)
  To: apw, akpm; +Cc: linux-kernel


Hi Andy,

What do you think about this?

Anton

--

On architectures that implement sparsemem but not discontigmem we want
to be able to hide the flatmem option in some cases. On ppc64 for
example, when we select NUMA we must not select flatmem.

Signed-off-by: Anton Blanchard <anton@samba.org>
---
 
Index: build/mm/Kconfig
===================================================================
--- build.orig/mm/Kconfig	2005-11-11 11:31:38.000000000 +1100
+++ build/mm/Kconfig	2005-11-11 11:41:55.000000000 +1100
@@ -11,7 +11,7 @@
 
 config FLATMEM_MANUAL
 	bool "Flat Memory"
-	depends on !ARCH_DISCONTIGMEM_ENABLE || ARCH_FLATMEM_ENABLE
+	depends on !(ARCH_DISCONTIGMEM_ENABLE || ARCH_SPARSEMEM_ENABLE) || ARCH_FLATMEM_ENABLE
 	help
 	  This option allows you to change some of the ways that
 	  Linux manages its memory internally.  Most users will

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Allow flatmem to be disabled when only sparsemem is implemented
  2005-11-11 16:03 [PATCH] Allow flatmem to be disabled when only sparsemem is implemented Anton Blanchard
@ 2005-11-11 17:51 ` Andy Whitcroft
  2005-11-11 19:41   ` Andy Whitcroft
  0 siblings, 1 reply; 4+ messages in thread
From: Andy Whitcroft @ 2005-11-11 17:51 UTC (permalink / raw)
  To: Anton Blanchard; +Cc: akpm, linux-kernel

Anton Blanchard wrote:

> On architectures that implement sparsemem but not discontigmem we want
> to be able to hide the flatmem option in some cases. On ppc64 for
> example, when we select NUMA we must not select flatmem.
> 
> Signed-off-by: Anton Blanchard <anton@samba.org>

First reaction is that this is very reasonable.  I can see why you need
to do this as you don't have DISCONTIGMEM.  I will just go check the
major architectures and make sure they arn't relying on being able to
enable SPARSEMEM and getting FLATMEM too behaviour.  I don't think they
can be as they all have DISCONTIGMEM and so should be insulated.

-apw

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Allow flatmem to be disabled when only sparsemem is implemented
  2005-11-11 17:51 ` Andy Whitcroft
@ 2005-11-11 19:41   ` Andy Whitcroft
  2005-11-14  0:53     ` Magnus Damm
  0 siblings, 1 reply; 4+ messages in thread
From: Andy Whitcroft @ 2005-11-11 19:41 UTC (permalink / raw)
  To: Anton Blanchard; +Cc: Andy Whitcroft, akpm, linux-kernel, Magnus Damm

Andy Whitcroft wrote:
> Anton Blanchard wrote:
> 
>>On architectures that implement sparsemem but not discontigmem we want
>>to be able to hide the flatmem option in some cases. On ppc64 for
>>example, when we select NUMA we must not select flatmem.
> 
> First reaction is that this is very reasonable.  I can see why you need
> to do this as you don't have DISCONTIGMEM.  I will just go check the
> major architectures and make sure they arn't relying on being able to
> enable SPARSEMEM and getting FLATMEM too behaviour.  I don't think they
> can be as they all have DISCONTIGMEM and so should be insulated.

Ok.  I've reviewed the usage of the memory model selectors in the
architectures in 2.6.14-mm2.  It appears that only i386 is affected by
this change, the others that use the selector have explicit enablement
of FLATMEM.  This patch will interact badly with the current code to
enable SPARSEMEM on non-numa systems.  However, this code is under
review at this moment, and the proposed replacement (Message-ID:
<4370BC30.40100@shadowen.org>) is compatible with this change.

In short as long as they go in together this change looks good.

Magnus, any feedback on the replacement SPARSEMEM enabler on non-NUMA
i386 systems??

-apw

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Allow flatmem to be disabled when only sparsemem is implemented
  2005-11-11 19:41   ` Andy Whitcroft
@ 2005-11-14  0:53     ` Magnus Damm
  0 siblings, 0 replies; 4+ messages in thread
From: Magnus Damm @ 2005-11-14  0:53 UTC (permalink / raw)
  To: Andy Whitcroft; +Cc: Anton Blanchard, akpm, linux-kernel

On Fri, 2005-11-11 at 19:41 +0000, Andy Whitcroft wrote:
> Andy Whitcroft wrote:
> > Anton Blanchard wrote:
> > 
> >>On architectures that implement sparsemem but not discontigmem we want
> >>to be able to hide the flatmem option in some cases. On ppc64 for
> >>example, when we select NUMA we must not select flatmem.
> > 
> > First reaction is that this is very reasonable.  I can see why you need
> > to do this as you don't have DISCONTIGMEM.  I will just go check the
> > major architectures and make sure they arn't relying on being able to
> > enable SPARSEMEM and getting FLATMEM too behaviour.  I don't think they
> > can be as they all have DISCONTIGMEM and so should be insulated.
> 
> Ok.  I've reviewed the usage of the memory model selectors in the
> architectures in 2.6.14-mm2.  It appears that only i386 is affected by
> this change, the others that use the selector have explicit enablement
> of FLATMEM.  This patch will interact badly with the current code to
> enable SPARSEMEM on non-numa systems.  However, this code is under
> review at this moment, and the proposed replacement (Message-ID:
> <4370BC30.40100@shadowen.org>) is compatible with this change.
> 
> In short as long as they go in together this change looks good.
> 
> Magnus, any feedback on the replacement SPARSEMEM enabler on non-NUMA
> i386 systems??

I tested your patch in QEMU on top of 2.6.15-rc1-git1 and it seems to
work well. Many thanks!

/ magnus


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-11-14  0:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-11 16:03 [PATCH] Allow flatmem to be disabled when only sparsemem is implemented Anton Blanchard
2005-11-11 17:51 ` Andy Whitcroft
2005-11-11 19:41   ` Andy Whitcroft
2005-11-14  0:53     ` Magnus Damm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox