From: Badari Pulavarty <pbadari@us.ibm.com>
To: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
melgor@ie.ibm.com, haveblue@us.ibm.com
Cc: linux-mm <linux-mm@kvack.org>
Subject: [RFC][PATCH 0/2] Export memblock migrate type to /sysfs
Date: Wed, 24 Oct 2007 09:37:40 -0700 [thread overview]
Message-ID: <1193243860.30836.22.camel@dyn9047017100.beaverton.ibm.com> (raw)
Hi,
Now that grouping of pages by mobility is in mainline, I would like
to make use of it for selection memory blocks for hotplug memory remove.
Following set of patches exports memblock's migrate type to /sysfs.
This would be useful for user-level agent for selecting memory blocks
to try to remove.
[PATCH 1/2] Fix migratetype_names[] and make it available
[PATCH 2/2] Add mem_type in /syfs to show memblock migrate type
Todo:
Currently, we decide the memblock's migrate type looking at
first page of memblock. But on some architectures (x86_64), each
memblock can contain multiple groupings of pages by mobility. Is it
important to address ?
Here is the output:
./memory/memory0/mem_type: Movable
./memory/memory1/mem_type: Movable
./memory/memory2/mem_type: Reserve
./memory/memory3/mem_type: Unmovable
./memory/memory4/mem_type: Movable
./memory/memory5/mem_type: Movable
./memory/memory6/mem_type: Movable
./memory/memory7/mem_type: Movable
./memory/memory8/mem_type: Reclaimable
./memory/memory9/mem_type: Unmovable
./memory/memory10/mem_type: Reclaimable
./memory/memory11/mem_type: Reclaimable
./memory/memory12/mem_type: Movable
./memory/memory13/mem_type: Movable
./memory/memory14/mem_type: Reclaimable
./memory/memory15/mem_type: Movable
./memory/memory16/mem_type: Reclaimable
./memory/memory17/mem_type: Reclaimable
./memory/memory18/mem_type: Reclaimable
./memory/memory19/mem_type: Reclaimable
./memory/memory20/mem_type: Reclaimable
./memory/memory21/mem_type: Reclaimable
./memory/memory22/mem_type: Reclaimable
./memory/memory23/mem_type: Reclaimable
./memory/memory24/mem_type: Reclaimable
./memory/memory25/mem_type: Reclaimable
./memory/memory26/mem_type: Reclaimable
./memory/memory27/mem_type: Reclaimable
./memory/memory28/mem_type: Reclaimable
./memory/memory29/mem_type: Reclaimable
./memory/memory30/mem_type: Reclaimable
./memory/memory31/mem_type: Reclaimable
./memory/memory32/mem_type: Reclaimable
./memory/memory33/mem_type: Reclaimable
./memory/memory34/mem_type: Reclaimable
./memory/memory35/mem_type: Reclaimable
./memory/memory36/mem_type: Reclaimable
./memory/memory37/mem_type: Reclaimable
./memory/memory38/mem_type: Reclaimable
./memory/memory39/mem_type: Reclaimable
./memory/memory40/mem_type: Reclaimable
./memory/memory41/mem_type: Movable
./memory/memory42/mem_type: Movable
./memory/memory43/mem_type: Movable
./memory/memory44/mem_type: Movable
./memory/memory45/mem_type: Movable
./memory/memory46/mem_type: Movable
./memory/memory47/mem_type: Movable
./memory/memory48/mem_type: Movable
./memory/memory49/mem_type: Movable
Thanks,
Badari
--
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>
next reply other threads:[~2007-10-24 16:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-24 16:37 Badari Pulavarty [this message]
2007-10-25 0:35 ` KAMEZAWA Hiroyuki
2007-10-25 4:51 ` Badari
2007-10-25 7:21 ` KAMEZAWA Hiroyuki
2007-10-25 10:10 ` Mel Gorman
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=1193243860.30836.22.camel@dyn9047017100.beaverton.ibm.com \
--to=pbadari@us.ibm.com \
--cc=haveblue@us.ibm.com \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-mm@kvack.org \
--cc=melgor@ie.ibm.com \
/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