Re: [discussion]sched: a rough proposal to enable power saving inscheduler

From: Matthew Garrett
Date: Wed Aug 15 2012 - 12:23:29 EST


On Wed, Aug 15, 2012 at 01:05:38PM +0200, Peter Zijlstra wrote:

> Yay, ideally we'd also provide a 3rd option: auto, which simply switches
> between the two based on AC/BAT, UPS status and simple things like that.

Please, really, don't do that. Pushing power policy decisions into
multiple bits of the stack makes things much more awkward, especially
when the criteria you're describing are about the least interesting
reasons for switching these states. They're most relevant on
multi-socket systems, and the overwhelming power concern there is
rack-level overcommit or cooling. You're going to need an external
policy agent to handle the majority of cases people actually care about.

--
Matthew Garrett | mjg59@xxxxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/