Thread (68 messages) 68 messages, 13 authors, 2011-07-12

Re: [PATCH 00/10] mm: Linux VM Infrastructure to support Memory Power Management

From: Ankita Garg <hidden>
Date: 2011-06-14 08:52:07
Also in: linux-arm-kernel, lkml

Hi,

On Fri, Jun 10, 2011 at 08:02:33PM -0700, Arjan van de Ven wrote:
On Fri, 10 Jun 2011 12:37:13 -0700
"Paul E. McKenney" [off-list ref] wrote:
quoted
On Fri, Jun 10, 2011 at 08:23:29PM +0100, Matthew Garrett wrote:
quoted
On Fri, Jun 10, 2011 at 11:47:38AM -0700, Paul E. McKenney wrote:
quoted
And if I understand you correctly, then the patches that Ankita
posted should help your self-refresh case, along with the
originally intended the power-down case and special-purpose use
of memory case.
Yeah, I'd hope so once we actually have capable hardware.
Cool!!!

So Ankita's patchset might be useful to you at some point, then.

Does it look like a reasonable implementation?
as someone who is working on hardware that is PASR capable right now,
I have to admit that our plan was to just hook into the buddy allocator,
and use PASR on the top level of buddy (eg PASR off blocks that are
free there, and PASR them back on once an allocation required the block
to be broken up)..... that looked the very most simple to me.
We were looking at a generic approach to exploit the different types of
memory power management features present in the hardware, like PASR,
power off and automatic transition into lower power states. To actively
create opportunities to exploit these features, appropriately guiding
memory allocations/deallocations, reclaim and statistics gathering is
essential. A few usecases are -

- allocating all memory from one region before moving over to the next
  region would theoretically ensure that the second region could be kept
  into lower power state for a longer period or turned off
- regions could be created consisting of only movable memory, thus
  making it possible to evacuate an entire region
- when memory utilization is low, selected memory regions could be
  removed as target for allocation itself. These regions need not be
  only turned off to save power, if the hardware supports, these regions
  could be put into content preserving lower power state if they are not
  being referenced
- depending upon the memory utilization of the different regions,
  targeted reclaim and memory migration could be triggered in a few
  regions with the aim of freeing memory

Grouping memory at the level of the buddy allocator for this purpose
might be tougher. 
Maybe something much more elaborate is needed, but I didn't see why so
far.
-- 
Regards,
Ankita Garg (ankita@in.ibm.com)
Linux Technology Center
IBM India Systems & Technology Labs,
Bangalore, India

--
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/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help