On Thu, 27 May 2010 22:09:37 -0400 Ben Gamari <bgamari.foss@xxxxxxxxx> wrote: > On Wed, 26 May 2010 14:24:30 +0200, Florian Mickler <florian@xxxxxxxxxxx> wrote: > > Because he is using a robust kernel that provides suspend blockers and > > is preventing the vampire from sucking power? > > > Suspend blockers are only a flawed and indirect way to keep the vampire > from sucking. > > > Most users don't even grasp the simple concept of different "programs". > > They just have a device and click here and there and are happy. > > > > Really, what are you getting at? Do you deny that there are programs, > > that prevent a device from sleeping? (Just think of the bouncing > > cows app) > > He's getting at the fact that there are much better ways to deal with > this problem. The issue here is that we seem to be expected to swallow > whatever Google throws at us, regardless of the quality of the > solution. It seems like the best argument we have for merging is "we > couldn't think of anything better and we need it yesterday." This might be > a good enough reason for shipping, but it certainly doesn't satisfy the > requirements for merging. I don't disagree on the quality. But I don't think it is because of the patches, but because of how the kernel is architectured in that area (suspend not being an idle state). Look, probably suspend needs to be integrated into the idle states and used from there. I could imagine a cost-specification for idle states: c3 cost-to-transition-to-this-state: X powersavings-per-time: Y expected time we stay in this state: relative short, there is a timer sheduled suspend-blockers: ignored suspend cost-to-transition-to-this-state: depends, how much drivers to suspend, how much processes to freeze, ... powersavings-per-time: Y expected time we stay in this state: long, independent of sheduled timers suspend-blockers: need not be activated Now, a governor could compute if it is ok, to enter suspend or only wait for idle-c3. And maybe it would never transition from idle-c3 to suspend but only from c1. because the cost to enter suspend would mean it just has to go to c1 anyway. what do ya think? > > And if you have two kernels, one with which your device is dead after 1 > > hour and one with which your device is dead after 10 hours. Which would > > you prefer? I mean really... this is ridiculous. > > It is absolutely not. If you want to keep power usage down, then > implement real resource management in the scheduler. Suspend blockers > are nothing but a clunky and ineffective means of resource allocation. > As has been pointed out in this thread, there are much better ways of > dealing with this problem. > > - Ben I think this has to be independently to the scheduler, because as soon as the user interacts with the phone, everything needs to be scheduled. even the stuff that doesn't directly interact with the user. as soon as _nothing_ interacts with the user, the phone does schedule _nothing_ anymore. Cheers, Flo -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html