From: Igor Stoppa <igor.stoppa@nokia.com>
To: ext Alan Stern <stern@rowland.harvard.edu>
Cc: linux-pm@lists.osdl.org
Subject: Re: Toward runtime power management in Linux
Date: Thu, 04 Aug 2005 20:24:02 +0300 [thread overview]
Message-ID: <1123176243.23489.24.camel@localhost> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0508010935440.4961-100000@iolanthe.rowland.org>
[-- Attachment #1: Type: text/plain, Size: 2634 bytes --]
On Mon, 2005-08-01 at 10:07 -0400, ext Alan Stern wrote:
[snip]
> Furthermore, there's a trade-off between doing a bunch of chores all at
> once (i.e., have a kernel thread scan a list of devices to see which have
> exceeded their idle timeouts) and distributing those chores piecemeal
> (i.e., have each driver reschedule an idle timer every time one of its
> devices carries out some activity). In the absence of actual measurements
> it's impossible to know which will affect performance more -- and in fact
> the effects are likely to be highly variable, depending on workload.
Especially in embedded systems also the technology used for the silicon
is going to affect the decision, not only the balance between cpu load
and i/o load: according to the energy spent just for having the system
active, the choice might move between "all at once" and "split timewise"
because of the possible cost in terms of ramp-up and ramp-down.
>
> As for your "if nothing is happening, nothing should be running" mantra,
> it runs counter to the very idea of runtime PM. If nothing is happening,
> the system should wait until enough idle time has gone past, and then it
> should actively turn off power to devices that don't need it. That's very
> different from running nothing!
I think that this depends on which is the desired behaviour and how
quickly some specific hw can react to requests for drastic shifts in
power states.
Idling implies trying to avoid a ramp-down & ramp-up sequence because of
an impending activity that will see the sequence as an overhead.
It depends also how much of this on/off switching can be demanded to
dedicated hw and how much must be sw controlled.
>
>
> > > Userspace support: It's easy to see how userspace could use sysfs to
> > > request a single device state change. But what if the user wants to
> > > suspend an entire subtree? [ ... ]
> >
> > If you wanted to get really fancy, you could establish via a
> > userspace API a named "device collection" which acts as a virtual device.
> > You then apply the state change to the device collection, and the kernel
> > percolates it through all the actual devices, taking locking into account.
>
> I suspect that's fancier than we need, although perhaps it would come in
> handy in special circumstances. For now, it should be good enough to
> restrict such "device collections" to be subtrees of the device tree.
>
> Alan Stern
>
> _______________________________________________
> linux-pm mailing list
> linux-pm@lists.osdl.org
> https://lists.osdl.org/mailman/listinfo/linux-pm
Igor Stoppa, Nokia M / Tampere Finland
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
next prev parent reply other threads:[~2005-08-04 17:24 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-31 2:36 Toward runtime power management in Linux Alan Stern
2005-08-01 2:10 ` Leo L. Schwab
2005-08-01 11:44 ` Amit Kucheria
2005-08-01 14:16 ` Alan Stern
[not found] ` <20050802024415.C3518DB57B@adsl-69-107-32-110.dsl.pltn13.pacbell.net>
2005-08-04 8:06 ` Tony Lindgren
2005-08-04 16:02 ` david-b
2005-08-14 19:53 ` Pavel Machek
2005-08-01 14:07 ` Alan Stern
2005-08-01 15:10 ` Jordan Crouse
2005-08-01 15:23 ` Alan Stern
2005-08-04 17:24 ` Igor Stoppa [this message]
[not found] ` <Pine.LNX.4.50.0508011712220.2764-100000@monsoon.he.net>
2005-08-02 17:45 ` Geoff Levand
2005-08-25 3:12 ` Benjamin Herrenschmidt
2005-08-25 15:27 ` Alan Stern
2005-08-25 21:42 ` Benjamin Herrenschmidt
2005-08-26 2:25 ` Alan Stern
[not found] <Pine.LNX.4.50.0508012316380.2764-100000@monsoon.he.net>
2005-08-02 14:35 ` Alan Stern
-- strict thread matches above, loose matches on Subject: below --
2005-08-25 13:59 Brown, Len
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=1123176243.23489.24.camel@localhost \
--to=igor.stoppa@nokia.com \
--cc=linux-pm@lists.osdl.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