From: "Chen, Kenneth W" <kenneth.w.chen@intel.com>
To: 'Hugh Dickins' <hugh@veritas.com>
Cc: 'Andrew Morton' <akpm@osdl.org>,
'Dave McCracken' <dmccr@us.ibm.com>,
linux-mm@kvack.org
Subject: RE: [patch 1/2] htlb shared page table
Date: Mon, 2 Oct 2006 15:35:24 -0700 [thread overview]
Message-ID: <000101c6e673$0d3d3360$ff0da8c0@amr.corp.intel.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0609302009270.9929@blonde.wat.veritas.com>
Hugh Dickins wrote on Saturday, September 30, 2006 12:53 PM
> > + unsigned long sbase = saddr & PUD_MASK;
> > + unsigned long s_end = sbase + PUD_SIZE;
> > +
> > + /*
> > + * match the virtual addresses, permission and the alignment of the
> > + * page table page.
> > + */
> > + if (pmd_index(addr) != pmd_index(saddr) ||
> > + vma->vm_flags != svma->vm_flags ||
> > + base < vma->vm_start || vma->vm_end < end ||
> > + sbase < svma->vm_start || svma->vm_end < s_end)
> > + return 0;
> > +
> > + return saddr;
> > +}
>
> If I've got the levels right, there's no chance of sharing htlb
> table on i386 2level, and on i386 3level (PAE) there's a chance,
> but only if non-standard address space layout or statically linked
> (in the standard layout, text+data+bss occupy the first pmd, shared
> libraries the second pmd, stack the third pmd, kernel the fourth).
You are correct. It has very limited value on 32-bit arch. After all,
being able to address amount of physical memory bigger than the standard
3GB of user space virtual address has far more overhead then what hugetlb
is going to save it from.
I originally have the entire code wrapped with if CONFIG_X86_64, I'm
tempted to put it back.
- Ken
--
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>
prev parent reply other threads:[~2006-10-02 22:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-30 0:34 Chen, Kenneth W
2006-09-30 19:52 ` Hugh Dickins
2006-10-02 22:35 ` Chen, Kenneth W [this message]
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='000101c6e673$0d3d3360$ff0da8c0@amr.corp.intel.com' \
--to=kenneth.w.chen@intel.com \
--cc=akpm@osdl.org \
--cc=dmccr@us.ibm.com \
--cc=hugh@veritas.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