linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [RFC][PATCH 0/2] Export memblock migrate type to /sysfs
@ 2007-10-24 16:37 Badari Pulavarty
  2007-10-25  0:35 ` KAMEZAWA Hiroyuki
  0 siblings, 1 reply; 5+ messages in thread
From: Badari Pulavarty @ 2007-10-24 16:37 UTC (permalink / raw)
  To: KAMEZAWA Hiroyuki, melgor, haveblue; +Cc: linux-mm

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>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-10-25 10:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-24 16:37 [RFC][PATCH 0/2] Export memblock migrate type to /sysfs Badari Pulavarty
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).