public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andy Whitcroft <apw@shadowen.org>
To: Andi Kleen <ak@suse.de>
Cc: Mel Gorman <mel@skynet.ie>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] x86 Boot NUMA kernels on non-NUMA hardware with DISCONTIG memory model
Date: Fri, 24 Aug 2007 17:52:31 +0100	[thread overview]
Message-ID: <46CF0CCF.7010702@shadowen.org> (raw)
In-Reply-To: <20070824163521.GA16227@bingen.suse.de>

Andi Kleen wrote:
>> This reserved portion of the KVA must be PMD aligned. 
> 
> Why do they need to be PMD aligned?  

That comes from the fact that the KVA in x86 has traditionally been
mapped with huge pages where at all possible, for performance reasons.
The purpose of the remap itself always has been performance based, we
are remapping node-local memory into KVA to hold the memmap in part to
exploit locality of process to its memory, and to in part to distribute
the load on the NUMA memory infrastructure by "striping" the storage.
As a result it makes sense to map these remapped areas with huge pages
also.  As is evidenced by the fact this bug is only coming to light now,
it is somewhat rare for the end of a NODE to be miss-aligned below the
huge page level (2/4MB).

-apw

  reply	other threads:[~2007-08-24 16:53 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-24 16:28 [PATCH] x86 Boot NUMA kernels on non-NUMA hardware with DISCONTIG memory model Mel Gorman
2007-08-24 16:35 ` Andi Kleen
2007-08-24 16:52   ` Andy Whitcroft [this message]
2007-08-24 17:07     ` Andi Kleen
2007-08-24 17:26       ` Mel Gorman
2007-08-24 17:38         ` Andi Kleen
2007-08-24 17:44           ` Mel Gorman
2007-08-24 17:53             ` Andi Kleen
2007-08-24 18:02               ` Mel Gorman
2007-08-25 11:09               ` 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=46CF0CCF.7010702@shadowen.org \
    --to=apw@shadowen.org \
    --cc=ak@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mel@skynet.ie \
    /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