From: mel@skynet.ie (Mel Gorman)
To: Andi Kleen <ak@suse.de>
Cc: Andy Whitcroft <apw@shadowen.org>, 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 18:26:26 +0100 [thread overview]
Message-ID: <20070824172626.GE26374@skynet.ie> (raw)
In-Reply-To: <20070824170744.GB16227@bingen.suse.de>
On (24/08/07 19:07), Andi Kleen didst pronounce:
> On Fri, Aug 24, 2007 at 05:52:31PM +0100, Andy Whitcroft wrote:
> > 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
>
> Where does this KVA acronym come from? In Linux this is traditionally
> called direct or linear mapping. KVA sounds foreign.
>
The KVA acronym is being used in the x86 discontig code. The terms direct
or linear mappings are not perfectly accurate either because the direct
mappings are being altered in a way that pages that would normally be in
highmem are now directly mapped for the lifetime of the system.
> > mapped with huge pages where at all possible, for performance reasons.
>
> It was partly a rhetorical question.
>
> My point is that we don't make any effort to PMD align end_pfn,
> so there is also no reason to PMD align any of the other boundaries.
>
Other than the fact that the memmap must be PMD aligned to use hugepage
entries for the memmap. It could be mapped with small pages in corner cases
but the complexity worth it?
> The only reason in theory is to avoid virtual aliases with
> uncached areas, but there are no uncached areas in highmem
> so this shouldn't be a concern.
>
> There might be overlap into the PCI hole though which is uncached
> and needs care rgarding virtual aliases, but that could be handled
> by teaching change_page_attr() to handle the overlap too.
>
> I think that would be a better fix -- do that and then
> drop that PMD align requirement. Essentially you need a
> end_pfn_map like x86_64 has and use that in change_page_attr().
>
I can't see this type of lifting being done any time soon. As SPARSEMEM works
and there is hope with the vmemmap work that DISCONTIG will finally go away,
it may not be the best investment of time.
--
Mel Gorman
Part-time Phd Student Linux Technology Center
University of Limerick IBM Dublin Software Lab
next prev parent reply other threads:[~2007-08-24 17:26 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-24 16:28 Mel Gorman
2007-08-24 16:35 ` Andi Kleen
2007-08-24 16:52 ` Andy Whitcroft
2007-08-24 17:07 ` Andi Kleen
2007-08-24 17:26 ` Mel Gorman [this message]
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=20070824172626.GE26374@skynet.ie \
--to=mel@skynet.ie \
--cc=ak@suse.de \
--cc=apw@shadowen.org \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®