From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
To: Christoph Lameter <clameter@sgi.com>
Cc: linux-mm@kvack.org, linux-ia64@vger.kernel.org
Subject: Re: [RFC] virtual memmap for sparsemem [1/2] arch independent part
Date: Fri, 20 Oct 2006 11:06:18 +0900 [thread overview]
Message-ID: <20061020110618.6423d0e4.kamezawa.hiroyu@jp.fujitsu.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0610191838420.11820@schroedinger.engr.sgi.com>
On Thu, 19 Oct 2006 18:42:24 -0700 (PDT)
Christoph Lameter <clameter@sgi.com> wrote:
> On Fri, 20 Oct 2006, KAMEZAWA Hiroyuki wrote:
>
> > Yes. but it seems to need per-arch implementation (in page fault handler).
> > like this (from ia64)
>
> If we have a statically assigned virtual memory area then this is not a
> big problem. With sharing the VMALLOC address space this may be a problem.
> I think a static address space is no problem for 64 bit platforms where
> we have lots of virtual address space. 32 bit platforms may have a dense
> address space where vmemmap is not needed.
> Maybe switch to a static address range range ? You saw my ia64 patch
> that did this right?
>
I'll study it.
> > > > +#ifdef CONFIG_VMEMMAP_SPARSEMEM
> > > > +extern struct page *virt_memmap_start;
> > >
> > > extern struct page[] would be better performance wise. Use the definitions
> > > for FLATMEM?
> > Okay. will make it as array. or some constant value.
>
> See my IA64 patchset for vmemmap static. We could define the mem_map
> address statically in the linker.
>
Ok.
> > > The virtual memmap has the potential of becoming the default for x86_64
> > > and many other platforms that already map memory. There is no performance
> > > difference between FLATMEM and this virtual memmap approach if there are
> > > already mappings in play.
> > >
> > Hmm, adding CONFIG_HAVE_ARCH_LARGE_KERNEL_PAGE_MAPPING will be good ?
> > We can add per-arch patches afterwards.
>
> Great!
By the way, we have to make sizeof(struct page) as (1 << x) aligned size to use
large-sized page. (IIRC, my gcc-3.4.3 says it is 56bytes....)
-Kame
--
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-10-20 2:06 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-19 8:21 KAMEZAWA Hiroyuki
2006-10-19 15:16 ` Andy Whitcroft
2006-10-19 16:43 ` Christoph Lameter
2006-10-20 1:00 ` KAMEZAWA Hiroyuki
2006-10-19 16:39 ` Christoph Lameter
2006-10-20 1:18 ` KAMEZAWA Hiroyuki
2006-10-20 1:42 ` Christoph Lameter
2006-10-20 2:06 ` KAMEZAWA Hiroyuki [this message]
2006-10-20 2:26 ` Christoph Lameter
2006-10-20 16:20 ` Luck, Tony
2006-11-21 11:37 ` Heiko Carstens
2006-11-21 12:19 ` KAMEZAWA Hiroyuki
2006-11-21 12:19 ` Heiko Carstens
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=20061020110618.6423d0e4.kamezawa.hiroyu@jp.fujitsu.com \
--to=kamezawa.hiroyu@jp.fujitsu.com \
--cc=clameter@sgi.com \
--cc=linux-ia64@vger.kernel.org \
--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