From: Florian Mickler <florian@mickler.org>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: list <linux-pm@lists.linux-foundation.org>,
Linux-pm@smtp1.linux-foundation.org
Subject: Re: Wakeup-events implementation
Date: Wed, 18 Aug 2010 09:04:04 +0200 [thread overview]
Message-ID: <20100818090404.12bc7d1d@schatten.dmk.lab> (raw)
In-Reply-To: <Pine.LNX.4.44L0.1008171109030.1656-100000@iolanthe.rowland.org>
On Tue, 17 Aug 2010 11:53:53 -0400 (EDT)
Alan Stern <stern@rowland.harvard.edu> wrote:
> Also, I frankly have to wonder why you demand such a large amount of
> detailed debugging about the kernel's wakeup/wakelock subsystem (as
> opposed to userspace wakelocks). Yes, it's clear that if something
> goes wrong then you will drain your phone's battery in a few hours
> rather than a few days. But what if something goes wrong with the VM
> subsystem, or the RF subsystem, or the keypad driver? The device would
> crash immediately or at best become almost totally unusable. These are
> much worse scenarios than losing some battery life -- have you added
> comparable quantities of debugging to those other parts of the kernel?
>
> In addition, you retain all these debugging facilities in your
> production builds, not just in the debug kernels. Doesn't this seem
> excessive?
>
There is a theory about risk analysis and follow-up costs... i don't have
anything concrete at hand but the main idea is that if you develop for
example some monitoring for a production line of a pharmaceutical
product, you have to take into consideration all possible
failure-modes, the associated risk (likelihood * impact)
and the likelihood of detecting these failures before shipping.
A failure mode that is fatal (->high risk), and is not detectable
before shipping is bad and a sign that you probably shouldn't produce
at all.
A failure mode that is fatal (->high risk) but is detectable in all
cases before shipping is not such a big problem.
With battery powered devices, you have failure-modes (run-time not
optimal) that is not easily detectable before shipping. This is the
worst kind of failure-mode because you don't know if it will happen or
not.
The risk of this failure mode (non-optimal runtime) is bad also, because
for mobile devices the runtime is critical and the fact that we talk
about millions of devices will turn this up with a non-negligible
probability.
So I totally understand that the android people want all the debugging
they can get to make non-optimal runtime as visible as a broken vm or a
not functioning keypad. After all, runtime is critical for mobile
devices.
Cheers,
Flo
prev parent reply other threads:[~2010-08-18 7:04 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <AANLkTimgJUAW9TU37XE4BqYWf3yCWvg-vgk3E0YLqcm9@mail.gmail.com>
2010-08-13 15:59 ` Wakeup-events implementation Alan Stern
2010-08-14 4:59 ` Arve Hjønnevåg
2010-08-16 19:22 ` Alan Stern
2010-08-17 0:30 ` Arve Hjønnevåg
2010-08-17 15:53 ` Alan Stern
2010-08-17 18:37 ` David Brownell
2010-08-17 19:19 ` Alan Stern
2010-08-17 19:21 ` Rafael J. Wysocki
2010-08-18 0:40 ` Arve Hjønnevåg
2010-08-18 10:32 ` Mark Brown
2010-08-18 15:20 ` Alan Stern
2010-08-18 19:17 ` Rafael J. Wysocki
2010-08-19 0:18 ` Arve Hjønnevåg
2010-08-19 21:09 ` Alan Stern
2010-08-19 23:12 ` Arve Hjønnevåg
2010-08-20 15:04 ` Alan Stern
2010-09-07 23:51 ` [RFC][PATCH] PM / Wakeup: Introduce wakeup source objects and event statistics (was: Re: Wakeup-events implementation) Rafael J. Wysocki
2010-08-18 7:04 ` Florian Mickler [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100818090404.12bc7d1d@schatten.dmk.lab \
--to=florian@mickler.org \
--cc=Linux-pm@smtp1.linux-foundation.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=stern@rowland.harvard.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox