Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753304Ab0HBOAt (ORCPT ); Mon, 2 Aug 2010 10:00:49 -0400 Received: from e5.ny.us.ibm.com ([32.97.182.145]:48974 "EHLO e5.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751631Ab0HBOAr (ORCPT ); Mon, 2 Aug 2010 10:00:47 -0400 Date: Mon, 2 Aug 2010 07:00:27 -0700 From: "Paul E. McKenney" To: Arjan van de Ven Cc: "Ted Ts'o" , linux-pm@lists.linux-foundation.org, linux-kernel@vger.kernel.org, arve@android.com, mjg59@srcf.ucam.org, pavel@ucw.cz, florian@mickler.org, rjw@sisk.pl, stern@rowland.harvard.edu, swetland@google.com, peterz@infradead.org, tglx@linutronix.de, alan@lxorguk.ukuu.org.uk Subject: Re: Attempted summary of suspend-blockers LKML thread Message-ID: <20100802140027.GA2405@linux.vnet.ibm.com> Reply-To: paulmck@linux.vnet.ibm.com References: <20100731175841.GA9367@linux.vnet.ibm.com> <20100731215214.2543c07e@infradead.org> <20100801054816.GI2470@linux.vnet.ibm.com> <20100731230101.7cc1d8c7@infradead.org> <20100801191228.GL2470@linux.vnet.ibm.com> <20100801204026.GH31324@thunk.org> <20100802030304.GU2470@linux.vnet.ibm.com> <20100801210548.23f77ff6@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100801210548.23f77ff6@infradead.org> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2996 Lines: 57 On Sun, Aug 01, 2010 at 09:05:48PM -0700, Arjan van de Ven wrote: > On Sun, 1 Aug 2010 20:03:04 -0700 > "Paul E. McKenney" wrote: > > > on application programmers to do the right thing. That's not to > > > say that we shouldn't give up on trying to influence application > > > programmers --- but relying on that as the only strategy seems to > > > depart from the path of wisdom. > > > > Unless someone can reliably automate whacking the moles, history is > > not on the side of the mole-whackers. I won't say that such > > automation is impossible, but only because of all the "impossible" > > things in my lifetime that have turned out to be possible. > > we have a few things going for us here though > > 1) It's easy to programatically detect the problems > 1a) so programmers can detect issues before they ship software, > unlike the fsync() thing Ted mentions. History is showing this is at > least relatively successful in open source, but not with Adobe's > proprietary software such as Flash > 2) Users can be made aware of what the bad guys are > 3) The business models of many of the mobile apps gives programmers a > strong incentive to ship well behaving. The moment your first and > second review of your app read "this app was identified as reducing > battery life a lot"... your revenues will not go beyond the $1.98.. > ... assuming these first two guys didn't refund their app. > > Since we can detect who the bad guys are, we can also automatically > quarantine them for the common cases..... which is good news. Unless of course the app reducing battery life a lot does something that users like better than the increment in battery life. > I'm a little worried that this whole "I need to block suspend" is > temporary. Yes today there is silicon from ARM and Intel where suspend > is a heavy operation, yet at the same time it's not all THAT heavy > anymore.... at least on the Intel side it's good enough to use pretty > much all the time (when the screen is off for now, but that's a memory > controller issue more than anything else). I'm pretty sure the ARM guys > will not be far behind. Heh! One could make the "might be temporary" argument against any new feature, including the ones that you are proposing. For but one example, I very well remember being told by many people in many communities that SMP was temporary -- Moore's-Law increases in clock frequency would soon mean that even the biggest systems would be uniprocessors. If by "memory controller" you are referring to the need to save state for cache SRAMs and perhaps also DRAM, then yes, I agree that some of the most difficult low-power-state tradeoffs involve these devices. Thanx, Paul -- 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/