Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757506Ab1F2SH4 (ORCPT ); Wed, 29 Jun 2011 14:07:56 -0400 Received: from e28smtp08.in.ibm.com ([122.248.162.8]:32768 "EHLO e28smtp08.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753291Ab1F2SHo (ORCPT ); Wed, 29 Jun 2011 14:07:44 -0400 Date: Wed, 29 Jun 2011 23:37:33 +0530 From: Vaidyanathan Srinivasan To: Dave Hansen Cc: Ankita Garg , linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-pm@lists.linux-foundation.org, thomas.abraham@linaro.org, "Paul E. McKenney" , KAMEZAWA Hiroyuki , Matthew Garrett , Arjan van de Ven Subject: Re: [PATCH 00/10] mm: Linux VM Infrastructure to support Memory Power Management Message-ID: <20110629180733.GF3646@dirshya.in.ibm.com> Reply-To: svaidy@linux.vnet.ibm.com References: <1306499498-14263-1-git-send-email-ankita@in.ibm.com> <20110629130038.GA7909@in.ibm.com> <1309367184.11430.594.camel@nimitz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <1309367184.11430.594.camel@nimitz> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3181 Lines: 67 * Dave Hansen [2011-06-29 10:06:24]: > I was kinda hoping for something a bit simpler than that. I'd boil down > what you were saying to this: > > 1. The kernel must be aware of how the pieces of hardware are > mapped in to the system's physical address space > 2. The kernel must have a mechanism in place to minimize access to > specific pieces of hardware (mainly by controlling allocations and reclaim) > 3. For destructive power-down operations, the kernel should have a > mechanism in place to ensure that no valuable data is contained > in the memory to be powered down. > > Is that complete? At a high level these are the main requirements, except that different operations/features can happen at different/higher granularity. The infrastructure should be able to related groups of regions and act upon for a specific optimization. Like granularity for (2) may be 512MB, while (3) could be a pair of 512MB blocks. This is relatively a minor issue to solve. > On Wed, 2011-06-29 at 18:30 +0530, Ankita Garg wrote: > > 1) Dynamic Power Transition: The memory controller can have the ability > > to automatically transition regions of memory into lower power states > > when they are devoid of references for a pre-defined threshold amount of > > time. Memory contents are preserved in the low power states and accessing > > memory that is at a low power state takes a latency hit. > > > > 2) Dynamic Power Off: If a region is free/unallocated, the software can > > indicate to the controller to completely turn off power to a certain > > region. Memory contents are lost and hence the software has to be > > absolutely sure about the usage statistics of the particular region. This > > is a runtime capability, where the required amount of memory can be > > powered 'ON' to match the workload demands. > > > > 3) Partial Array Self-Refresh (PASR): If a certain regions of memory is > > free/unallocated, the software can indicate to the controller to not > > refresh that region when the system goes to suspend-to-ram state and > > thereby save standby power consumption. > > (3) is simply a subset of (2), but with the additional restriction that > the power off can only occur during a suspend operation. > > Let's say we fully implemented support for (2). What would be missing > to support PASR? The similarity between (2) and (3) here is the need for accurate statistics to know allocation status. The difference is the actuation/trigger part... in case of (2) the trigger would happen during allocation/free while in case of (3) it happens only at suspend time. Also the granularity could be different, generally PASR is very fine grain as compared for power-off at controller level. We can combine them and look at just how to track allocations at different (or multiple) physical boundaries. --Vaidy -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/