From: Mel Gorman <mel@csn.ul.ie>
To: Christoph Lameter <clameter@sgi.com>
Cc: Andy Whitcroft <apw@shadowen.org>, linux-mm@kvack.org
Subject: Re: virtual memmap sparsity: Dealing with fragmented MAX_ORDER blocks
Date: Tue, 26 Sep 2006 09:16:52 +0100 (IST) [thread overview]
Message-ID: <Pine.LNX.4.64.0609260901160.15574@skynet.skynet.ie> (raw)
In-Reply-To: <Pine.LNX.4.64.0609251643150.25159@schroedinger.engr.sgi.com>
On Mon, 25 Sep 2006, Christoph Lameter wrote:
> Regarding buddy checks out of memmap:
>
> 1. This problem only occurs if we allow fragments of MAX_ORDER size
> segments. The default needs to be not to allow that. Then we do not
> need any checks like right now on IA64. Why would one want smaller
> granularity than 2M/4M in hotplugging?
>
On a local IA64 machine, the MAX_ORDER block of pages is not 2M or 4M but
1GB. This is a base pagesize of 16K and a MAX_ORDER of 17. At best,
MAX_ORDER could be fixed to present 256MB but there would be wastage.
> 2. If you must have these fragments then we need to check the validity
> of the buddy pointers before derefencing them to see if pages can
> be combined.
i.e. pfn_valid()
> If fragments are permitted then a
> special function needs to be called to check if the address we are
> accessing is legit. Preferably this would be done with an instruction
> that can use the MMU to verify if the address is valid
>
> On IA64 this is done with the "probe" instruction
>
Why does IA64 not use this then? Currently, it uses __get_user() and
catches faults when they occur.
> Looking through the i386 commands I see a VERR mnemonic that
> I guess will do what you need on i386 and x86_64 in order to do
> what we need without a page table walk.
>
> --
> 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>
>
--
Mel Gorman
Part-time Phd Student Linux Technology Center
University of Limerick IBM Dublin Software Lab
--
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-09-26 8:16 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-24 16:59 virtual mmap basics Christoph Lameter
2006-09-25 12:28 ` Andy Whitcroft
2006-09-25 16:27 ` Christoph Lameter
2006-09-25 17:11 ` Christoph Lameter
2006-09-25 21:05 ` Christoph Lameter
2006-09-25 22:22 ` Andy Whitcroft
2006-09-25 23:37 ` Christoph Lameter
2006-09-26 12:06 ` Andy Whitcroft
2006-09-25 18:09 ` Andy Whitcroft
2006-09-25 21:00 ` Christoph Lameter
2006-09-25 23:54 ` virtual memmap sparsity: Dealing with fragmented MAX_ORDER blocks Christoph Lameter
2006-09-26 0:31 ` Christoph Lameter
2006-09-26 12:11 ` Andy Whitcroft
2006-09-26 15:23 ` Christoph Lameter
2006-09-26 8:16 ` Mel Gorman [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=Pine.LNX.4.64.0609260901160.15574@skynet.skynet.ie \
--to=mel@csn.ul.ie \
--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