Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933585Ab0FEWpy (ORCPT ); Sat, 5 Jun 2010 18:45:54 -0400 Received: from casper.infradead.org ([85.118.1.10]:58538 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933381Ab0FEWpw (ORCPT ); Sat, 5 Jun 2010 18:45:52 -0400 Date: Sat, 5 Jun 2010 15:48:33 -0700 From: Arjan van de Ven To: Brian Swetland Cc: Arve =?UTF-8?B?SGrDuG5uZXbDpWc=?= , Peter Zijlstra , Ingo Molnar , tytso@mit.edu, Neil Brown , Thomas Gleixner , "Rafael J. Wysocki" , Alan Stern , Felipe Balbi , LKML , Florian Mickler , Linux OMAP Mailing List , Linux PM , Alan Cox , James Bottomley , Linus Torvalds , Kevin Hilman , "H. Peter Anvin" Subject: Re: suspend blockers & Android integration Message-ID: <20100605154833.7d05e404@infradead.org> In-Reply-To: References: <20100603193045.GA7188@elte.hu> <20100603231153.GA11302@elte.hu> <20100603232302.GA16184@elte.hu> <20100604071354.GA14451@elte.hu> <20100604083423.GD15181@elte.hu> <1275653210.27810.39762.camel@twins> <1275731653.27810.41078.camel@twins> <20100605092851.6ee15f13@infradead.org> <20100605152326.7ccd5160@infradead.org> Organization: Intel X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2453 Lines: 61 On Sat, 5 Jun 2010 15:26:36 -0700 Brian Swetland wrote: > > I'm continually surprised by answers like this. We run on hardware > that power gates very aggressively and draws in the neighborhood of > 1-2mA at the battery when in the lowest state (3-5mA while the radio > is connected to the network and paging). Waking up out of that lowest > state and executing code every few seconds or (worse) several times a > second) will raise your average power consumption. Being able to stay > parked at the very bottom for minutes or hours at a time when nothing > "interesting" is happening is very useful and can have a significant > impact on overall battery life. It's relatively simple math. If you wake up for a burst of work, you burn power at the higher level P1 (versus the lower power level P2), for, lets say an average time T, with a relatively small T (few milliseconds at most). If you wake up X times per second (with X being a fractional number, so can be smaller than 1) the extra power consumption factor is X * T * P1 ------------------------------- X * T * P1 + (1.0 - X * T) * P2 if you draw a graph of this, for real values of P and T, there's a real point where you hit diminishing returns. if say T is 5 milliseconds (that's a high amount), and X is 1 wakeup/second, then there's already a 200:1 ratio in time an power. If X goes to once every 10 seconds (not unreasonable, especially since any real device will pull email and stuff in the backgroudn), you have 2000:1 time and power ratios... Unless your "on" power is insane high (and hopefully it's not, since you're not turning on the whole device obviously, you do selective power and clock gating)... that "divide by 200 or 2000" makes the whole problem go away.. in the "seconds" range for really low power devices. Not in "hours" range. On laptops (which have much more poor powermanagement) this point is around 40 milliseconds or so.. but on phone silicon that I've seen, both Intel and others, this is in the 1 to 5 seconds range. -- Arjan van de Ven Intel Open Source Technology Centre For development, discussion and tips for power savings, visit http://www.lesswatts.org -- 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/