linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Mel Gorman <mel@csn.ul.ie>
To: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Andrew Morton <akpm@osdl.org>,
	apw@shadowen.org, stable@kernel.org, linux-mm@kvack.org
Subject: Re: [patch 2/2] mm: handle unaligned zones
Date: Mon, 22 May 2006 10:24:07 +0100 (IST)	[thread overview]
Message-ID: <Pine.LNX.4.64.0605221008180.14117@skynet.skynet.ie> (raw)
In-Reply-To: <4470547D.2030505@yahoo.com.au>

On Sun, 21 May 2006, Nick Piggin wrote:

> Nick Piggin wrote:
>> Andrew Morton wrote:
>> 
>>> How about just throwing the pages away?  It sounds like a pretty rare
>>> problem.
>> 
>> 
>> Well that's what many architectures will end up doing, yes. But on
>> small or embedded platforms, 4MB - 1 is a whole lot of memory to be
>> throwing away.
>> 
>> Also, I'm not sure it is something we can be doing in generic code,
>> because some architectures apparently have very strange zone setups
>> (eg. zones from several pages interleaved within a single zone's
>> ->spanned_pages). So it doesn't sound like a simple matter of trying
>> to override the zones' intervals.
>
> Oh I see, yeah I guess you could throw away the pages forming the
> present fraction of the MAX_ORDER buddy...
>

As Andy points out in another thread, the need to check unaligned zones is 
heavily relaxed (if not redundant) once the node_mem_map is aligned by 
patch "[PATCH 1/2] Align the node_mem_map endpoints to a MAX_ORDER 
boundary".

Once the node_mem_map is aligned, we know that we'll be checking a valid 
struct page. If the zones are not aligned, the unused struct pages forming 
the absent fraction of the MAX_ORDER buddy will be marked reserved since 
memmap_init_zone(). This will be caught by free_pages_check() and the 
buddies will not be merged.

I don't think there is any need to do these complex zone boundary checks 
once the node_mem_map is aligned for CONFIG_FLAT_NODE_MEM_MAP and 
SPARSEMEM already gets this right.

-- 
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>

  reply	other threads:[~2006-05-22  9:24 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-21  8:22 [patch 1/2] mm: detect bad zones Nick Piggin
2006-05-21  8:22 ` [patch 2/2] mm: handle unaligned zones Nick Piggin
2006-05-21  9:19   ` Andrew Morton
2006-05-21 10:31     ` Nick Piggin
2006-05-21 10:59       ` Andrew Morton
2006-05-21 11:44         ` Nick Piggin
2006-05-21 11:52           ` Nick Piggin
2006-05-22  9:24             ` Mel Gorman [this message]
2006-05-22  9:28               ` Mel Gorman
2006-05-22  9:06           ` Mel Gorman
2006-05-22  9:51             ` Nick Piggin
2006-05-21 11:53       ` Nick Piggin
2006-05-22  8:18   ` Andy Whitcroft
2006-05-22  9:37     ` Nick Piggin
2006-05-22  9:52     ` [PATCH 0/2] Zone boundary alignment fixes, default configuration Andy Whitcroft
2006-05-22  9:53       ` [PATCH 1/2] zone allow unaligned zone boundaries add configuration Andy Whitcroft
2006-05-22  9:53       ` [PATCH 2/2] x86 add zone alignment qualifier Andy Whitcroft
2006-05-25 11:19       ` [PATCH 0/2] Zone boundary alignment fixes, default configuration Andy Whitcroft
2006-05-31  0:13       ` [stable] " Chris Wright
2006-05-31 11:41         ` Nick Piggin
2006-05-31 12:08           ` Andy Whitcroft
2006-05-31 17:42             ` Greg KH
2006-05-31 17:16         ` 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=Pine.LNX.4.64.0605221008180.14117@skynet.skynet.ie \
    --to=mel@csn.ul.ie \
    --cc=akpm@osdl.org \
    --cc=apw@shadowen.org \
    --cc=linux-mm@kvack.org \
    --cc=nickpiggin@yahoo.com.au \
    --cc=stable@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