All of lore.kernel.org
 help / color / mirror / Atom feed
From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
To: linux-kernel@vger.kernel.org
Cc: Dave Hansen <haveblue@us.ibm.com>, hari@in.ibm.com
Subject: [RFC][PATCH] nameing reserved pages [0/3]
Date: Wed, 20 Apr 2005 21:02:34 +0900	[thread overview]
Message-ID: <426644DA.70105@jp.fujitsu.com> (raw)

Hi,

There are several types of PG_reserved pages,
(a) Memory Hole
(b) Used by Kernel
(c) Set by drivers
(d) Isorated by MCA
(e) used by perfmon
etc....

I think it's useful to distinguish many types of PG_reserved pages.

For example, Memory Hotplug can ignore (a).

2 patches [1/3][2/3] are for naming PG_reserved pages.
A type of a page is recoreded in page->private.
I'm not sure whether this is safe or not, so only reserved-at-boot pages are named, currently.

patch [3/3] is an interface to show state of memmap, /dev/memstate.

In /dev/memstate, file offset is pfn and a byte represents a state of a page.
In this patch, memory hole and Reserved pages has its value.

below is output of my box.

0xff --- Invalid page
0x00 --- Common page
0x02 --- Reserved at boot page

[root@casares char]#  od  -t x1 -j 0 -N 65535 /dev/memstate
0000000 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
*
0001540 ff ff ff ff ff ff ff ff ff ff ff ff ff ff 02 02
0001560 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02
*
0002400 02 02 02 00 00 00 00 00 00 02 02 02 02 02 02 02
0002420 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02
*
0003400 02 02 02 02 02 02 02 02 02 02 02 00 00 00 00 00
0003420 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*
0010000 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02
*
0010640 02 02 02 02 02 02 02 02 02 02 02 02 02 02 00 00
0010660 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

This would be useful for Memory-Hotplug and some other stuffs.
I think more detailed types can be supported.

Thanks.
-- Kame <kamezawa.hiroyu@jp.fujitsu.com>


             reply	other threads:[~2005-04-20 11:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-20 12:02 KAMEZAWA Hiroyuki [this message]
2005-04-20 12:34 ` [RFC][PATCH] nameing reserved pages [0/3] Arjan van de Ven
2005-04-20 14:15   ` Kamezawa Hiroyuki
2005-04-20 14:30     ` Arjan van de Ven
2005-04-20 14:58       ` Kamezawa Hiroyuki
2005-04-20 17:18       ` Dave Hansen
2005-04-20 17:00   ` Dave Hansen

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=426644DA.70105@jp.fujitsu.com \
    --to=kamezawa.hiroyu@jp.fujitsu.com \
    --cc=hari@in.ibm.com \
    --cc=haveblue@us.ibm.com \
    --cc=linux-kernel@vger.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.