All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dave Hansen <haveblue@us.ibm.com>
To: Andy Whitcroft <apw@shadowen.org>
Cc: lhms-devel@lists.sourceforge.net, linux-mm@kvack.org
Subject: Re: [RFC] sparsemem patches (was nonlinear)
Date: Thu, 28 Oct 2004 09:04:49 -0700	[thread overview]
Message-ID: <418118A1.9060004@us.ibm.com> (raw)
In-Reply-To: <098973549.shadowen.org>

Andy Whitcroft wrote:
> Here are the current versions of my implmentation of
> CONFIG_SPARSEMEM; formerly CONFIG_NONLINEAR.  Mostly bug fixes to
> the alloc_remap() stuff and the conversion over to CONFIG_SPARSEMEM
> throughout.  The first few are esentially unchanged and only included
> for completeness.
> 
> As before they apply in numerical order.  This lot was diffed
> against 2.6.9 straight.
> 
> I take the view that the the breaking of V=P+c is an option
> to the memory model here.  So I'd expect to see something like
> CONFIG_SPARSEMEM_NONLINEAR or something.  So perhaps in the end this
> should be CONFIG_NONLINEAR if that happens.  But anyhow, changing
> its name now to SPARSEMEM will cirtainly help to reduce confusion :).

Thanks, Andy!

One thing that should simplify your code a bit are the no-buddy-bitmap 
patches which are sitting in -mm right now.  You might want to think 
about porting to -mm, it should reduce the total amount of code.

Also, after taking a bit more critical a look at the set, I'm not sure 
they're quite ready for merging yet.  There are still a pretty good 
number of #ifdefs

For instance, this:

+#ifdef HAVE_ARCH_ALLOC_REMAP
+		map = (unsigned long *) alloc_remap(pgdat->node_id,
+			bitmap_size);
+		if (!map)
+#endif
+			map = (unsigned long *)alloc_bootmem_node(pgdat,
+				bitmap_size);
+		zone->free_area[order].map = map;

Could all be solved by doing #ifdef in a header to declare alloc_remap() 
to return NULL if !HAVE_ARCH_ALLOC_REMAP.  In any case 
HAVE_ARCH_ALLOC_REMAP should be defined via a Kconfig file, not in a 
header.

Have you given any thought to using virt_to_page(page)->foo method to 
store section information instead of using page->flags?  It seems we're 
already sucking up page->flags left and right, and I'd hate to consume 
that many more.

Although simple arithmetically, the calculations for the flags shift 
does constitute a lot of code churn, and does add quite a bit of 
complexity.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

       reply	other threads:[~2004-10-28 16:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <098973549.shadowen.org>
2004-10-28 16:04 ` Dave Hansen [this message]
2004-10-28 16:19   ` [RFC] sparsemem patches (was nonlinear) Martin J. Bligh
2004-10-28 16:32   ` Andy Whitcroft
2004-10-28 16:52     ` [Lhms-devel] " Dave Hansen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=418118A1.9060004@us.ibm.com \
    --to=haveblue@us.ibm.com \
    --cc=apw@shadowen.org \
    --cc=lhms-devel@lists.sourceforge.net \
    --cc=linux-mm@kvack.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.