public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC] Power Management Policies
@ 2005-04-17 21:15 Adam Belay
  2005-04-18 15:39 ` Jordan Crouse
  0 siblings, 1 reply; 15+ messages in thread
From: Adam Belay @ 2005-04-17 21:15 UTC (permalink / raw)
  To: linux-pm

[-- Attachment #1: Type: text/plain, Size: 1918 bytes --]


Hi All,

I was wondering if you had any thoughts on how power management policies
should be configured by userspace.  It seems like the central question
here is how much of the decision should occur in kernel-space.

For example, on one extreme we could have each policy manager define a
list of policies and allow the user to select one.  So, in my model, the
user might tell a "power device" to use the policy "max performance" or
"emergency power-save".  One could argue that these decisions are too
complex and device specific for userspace to be reliable.  It would give
the driver author, who likely has extensive knowledge of the pm
capabilities of the device, a chance to include power management
policies with the driver.

On the other extreme, we could allow userspace to configure every
timeout value, and other policy attributes.  The user would be in
complete control, but may not be aware of how long the transitions will
take, how much power will be consumed by the transition, or what the
manufacturer intended.  If the user wanted a disk drive to turn off
after 1 ms of inactivity, there would be nothing stopping that.  Of
course, one could argue that the kernel shouldn't be making policy
decisions, and we should throw these toward the layer above us.

One other option is to allow userspace to actually tell the devices
which state to switch to.  I'd argue against this, because I think that
userspace cannot disable a device that it needs to function.

I personally have some concerns over too much userspace interaction.  I
think these decisions are too device specific, and if we don't take
responsibility for them, then the layers above the kernel may not be
able to properly handle it.  Also I think that some decisions may need
to be made very quickly.  In the end, we will probably make a compromise
between these extremes.  I would appreciate any opinions or suggestions.

Thanks,
Adam



[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2005-04-28 20:28 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-17 21:15 [RFC] Power Management Policies Adam Belay
2005-04-18 15:39 ` Jordan Crouse
2005-04-22 20:05   ` Pavel Machek
2005-04-27 14:08     ` David Brownell
2005-04-27 14:48       ` Pavel Machek
2005-04-28  0:05         ` David Brownell
2005-04-28  8:23           ` Pavel Machek
2005-04-28 17:16             ` David Brownell
2005-04-28 18:59               ` Pavel Machek
2005-04-28 20:28                 ` David Brownell
2005-04-23  7:18   ` Adam Belay
2005-04-27 14:01     ` David Brownell
2005-04-27 14:22   ` David Brownell
2005-04-27 14:57     ` Jordan Crouse
2005-04-27 16:03       ` David Brownell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox