From: Dave Hansen <haveblue@us.ibm.com>
To: Christoph Lameter <clameter@sgi.com>
Cc: Andy Whitcroft <apw@shadowen.org>, linux-mm@kvack.org
Subject: Re: [PATCH] Get rid of zone_table
Date: Wed, 13 Sep 2006 13:53:15 -0700 [thread overview]
Message-ID: <1158180795.9141.158.camel@localhost.localdomain> (raw)
In-Reply-To: <Pine.LNX.4.64.0609131340050.19059@schroedinger.engr.sgi.com>
On Wed, 2006-09-13 at 13:44 -0700, Christoph Lameter wrote:
> The zone table is mostly not needed. If we have a node in the page flags
> then we can get to the zone via NODE_DATA(). In case of SMP and UP
> NODE_DATA() is a constant pointer which allows us to access an exact
> replica of zonetable in the node_zones field. In all of the above cases
> there will be no need at all for the zone table.
>
> The only remaining case is if in a NUMA system the node numbers do not fit
> into the page flags. In that case we make sparse generate a table that
> maps sections to nodes and use that table to to figure out the node
> number.
>
> For sparsemem the zone table seems to be have been fairly large based on
> the maximum possible number of sections and the number of zones per node.
>
> The section_to_node table (if we still need it) is still the size of the
> number of sections but the individual elements are integers (which already
> saves 50% on 64 bit platforms) and we do not need to duplicate the entries
> per zone type. So even if we have to keep the table then we shrink it to
> 1/4th (32bit) or 1/8th )(64bit).
It doesn't feel like this is the best fit to go with sparsemem, but the
impact is pretty tiny, and it does seem somewhat sensible to put it
there.
A few concerns: is there a cache or readability impact from keeping this
structure separate from the mem_section, when it is logically and
functionally pretty paired with it? It doesn't work with
SPARSEMEM_EXTREME (it would just blow up horribly), and this part at
least deserves a comment. Is there any impact from making this a
non-inlined call, unlike the old zonetable lookup?
-- Dave
--
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:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2006-09-13 20:53 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-13 20:44 Christoph Lameter
2006-09-13 20:53 ` Dave Hansen [this message]
2006-09-13 21:40 ` Christoph Lameter
2006-09-13 21:47 ` Dave Hansen
2006-09-13 21:54 ` Christoph Lameter
2006-09-13 21:58 ` Dave Hansen
2006-09-13 22:02 ` Christoph Lameter
2006-09-15 13:28 ` Andy Whitcroft
2006-09-15 16:32 ` Dave Hansen
2006-09-15 17:13 ` Christoph Lameter
2006-09-15 17:51 ` Christoph Lameter
2006-09-14 10:33 ` Andy Whitcroft
2006-09-14 21:46 ` Christoph Lameter
2006-09-15 13:07 ` Andy Whitcroft
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=1158180795.9141.158.camel@localhost.localdomain \
--to=haveblue@us.ibm.com \
--cc=apw@shadowen.org \
--cc=clameter@sgi.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox