linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
To: linux-mm <linux-mm@kvack.org>
Subject: [RFC] pearing off zone from physical memory layout [0/10]
Date: Fri, 03 Feb 2006 16:35:55 +0900	[thread overview]
Message-ID: <43E307DB.3000903@jp.fujitsu.com> (raw)

Hi,

This series of patches remove members from zone, which depends on physical
memory layout, zone_start_pfn, spanned_pages, zone_mem_map against 2.6.16-rc1.

By this, zone's meaning will be changed from "a range of memory to be used
in a same manner" to "a group of memory to be used in a same manner".

Now, the kernel and memmap became sparse if SPARSEMEM=y,  but zone is considered
as a range of memory.

memory-hot-add adds memory to HIGHMEM, but a zone is considered as a range.
This means memory layout (after hot add) like this is ok,
NORMAL | NORMAL  | HIGHMEM | HIGHMEM.
but this is insane
NORMAL | HIGHMEM | NORMAL  | HIGHMEM. (we can do, but insane)

IMHO, a zone is  an unit of allocation/reclaim of same type of pages.
I think that a zone should be defined by its usage/purpose not by physical
memory layout.

Some codes which wants to walk through all pages in a zone is supported by
for_each_page_in_zone() macro.

I tested this on my desktop machine a little, but  I know this patch needs
more work on some arch (ia64 etc...).

comments ?


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

             reply	other threads:[~2006-02-03  7:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-03  7:35 KAMEZAWA Hiroyuki [this message]
2006-02-03 16:47 ` Christoph Lameter
2006-02-03 17:02   ` Kamezawa Hiroyuki
2006-02-06 19:27 ` Dave Hansen
2006-02-06 23:59   ` KAMEZAWA Hiroyuki

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=43E307DB.3000903@jp.fujitsu.com \
    --to=kamezawa.hiroyu@jp.fujitsu.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