From: Kristen Accardi <kaccardi@gmail.com>
To: "Rafael J. Wysocki" <rjw@rjwysocki.net>, NeilBrown <neilb@suse.com>
Cc: Grant Likely <grant.likely@linaro.org>,
Len Brown <len.brown@intel.com>,
Alan Stern <stern@rowland.harvard.edu>,
ksummit-discuss@lists.linuxfoundation.org,
Kristen Carlson Accardi <kristen@linux.intel.com>
Subject: Re: [Ksummit-discuss] [TECH TOPIC] System-wide interface to specify the level of PM tuning
Date: Mon, 06 Jul 2015 16:33:55 +0000 [thread overview]
Message-ID: <CAH3eK3QA3vQ==uaB-re9ys6zH16oeE7jHOnjSDLEDUG-92jMzg@mail.gmail.com> (raw)
In-Reply-To: <53223375.qzkvIEse3r@vostro.rjw.lan>
[-- Attachment #1: Type: text/plain, Size: 3990 bytes --]
On Mon, Jul 6, 2015 at 6:45 AM Rafael J. Wysocki <rjw@rjwysocki.net> wrote:
> On Monday, July 06, 2015 11:40:17 AM NeilBrown wrote:
> > On Mon, 06 Jul 2015 02:22:02 +0200 "Rafael J. Wysocki"
> > <rjw@rjwysocki.net> wrote:
> >
> > > Hi All,
> > >
> > > This is a re-occuring theme, but we discussed it last month during
> LinuxCon
> > > Japan with Kristen, Grant and other people and pretty much the only
> conclusion
> > > we could reach was to propose it as the KS topic, so here it goes.
> > >
> > > As systems get more and more complex and more and more internally
> integrated
> > > over time, every new generation of them requires an increased amount
> of tuning
> > > to achieve satisfactory balance between energy usage and performance.
> You need
> > > to know what to tune and how to do that, it needs to be done from user
> space or
> > > requires special Kconfig options to be set (or even out-of-the-tree
> patches to
> > > be applied in extreme cases) and so on. All that becomes more and
> more esoteric
> > > and quite frankly I'm not sure how many users are able to do that on
> their new
> > > systems.
> > >
> > > That leads to a question whether or not a global interface
> (sysfs-based,
> > > command line etc.) could be added to the kernel that might be used to
> make a
> > > certain amount of the tuning happen already at the kernel level. For
> example,
> > > it might change the default runtime PM control setting for all devices
> from
> > > "on" to "auto", automatically enable other runtime power management
> features
> > > available from various bus types (SATA link power management, USB LPM,
> others)
> > > and generally enable power management techiques disabled by default
> because
> > > enabling them may lead to performance regressions.
> > >
> > > So do we need such an interface? If not, why not? If so, how should
> it be
> > > designed, what should it cover etc.?
> > >
> >
> > This sounds like an important topic, but I don't think I quite
> > understand the question.
> > We already have ".../power/runtime_enabled" and various other tunables.
> > What more could you need in a kernel interface?
>
> The problem is that the defaults for all of those tunables are
> performance-oriented,
> so you need to flip many of them (if not all) to become power-oriented.
>
> That usually mean flipping a number of knobs every time you boot the
> system.
>
> > I can see that much more than an interface is needed - we need a tool
> > that makes use of that interface.
>
> That is one possible approach, but that tool would need to be developed in
> a lockstep with the kernel anyway, so it knows about all of the new
> features
> added to the kernel over time that have non-trivial power vs performance
> characteristics.
>
Deployment of a user space tool is the big issue - like Rafael said it is
hard to keep up with all the new settings that might be present and the
kernel will have this knowledge.
>
> > Maybe a database of different systems together with tuning settings for
> > different goals.
> > Then some tools detects the particular hardware it is running on, and
> > applies the tuning rules.
> >
> > (a tiny bit like a devicetree database which contains configuration
> > rules).
> >
> > Or have I missed the point completely?
>
> No, I don't think you have missed it, but then most of subsystems and
> drivers
> in the kernel know what it means to be "power-friendly", so they should be
> able
> to choose their defaults on the basis of one single setting somewhere.
>
> Thanks,
> Rafael
>
>
Also some components can be present on performance sensitive platforms as
well as power sensitive platforms, so it would be better if they chose
their default setting based on a system wide policy default that can be set
by a platform driver.
> _______________________________________________
> Ksummit-discuss mailing list
> Ksummit-discuss@lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss
>
[-- Attachment #2: Type: text/html, Size: 5240 bytes --]
prev parent reply other threads:[~2015-07-06 16:34 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-06 0:22 Rafael J. Wysocki
2015-07-06 1:21 ` Josh Triplett
2015-07-06 14:04 ` Rafael J. Wysocki
2015-07-06 1:40 ` NeilBrown
2015-07-06 14:12 ` Rafael J. Wysocki
2015-07-06 13:49 ` Iyer, Sundar
2015-07-06 14:21 ` Rafael J. Wysocki
2015-07-07 7:53 ` Jiri Kosina
2015-07-07 12:33 ` Rafael J. Wysocki
2015-07-10 17:25 ` Kevin Hilman
2015-07-12 10:01 ` Daniel Vetter
2015-07-13 23:07 ` Rafael J. Wysocki
2015-07-14 16:51 ` Daniel Vetter
2015-07-15 22:44 ` Rafael J. Wysocki
2015-07-16 1:10 ` Josh Triplett
2015-07-16 9:19 ` David Woodhouse
2015-07-16 15:44 ` Kristen Accardi
2015-07-16 15:53 ` Josh Triplett
2015-07-16 15:58 ` Greg KH
2015-07-17 10:34 ` Takashi Iwai
2015-07-17 11:41 ` Daniel Vetter
2015-07-20 22:21 ` Rafael J. Wysocki
2015-07-20 23:09 ` Daniel Vetter
2015-07-22 1:12 ` Rafael J. Wysocki
2015-07-22 7:18 ` Daniel Vetter
2015-07-22 17:25 ` Rafael J. Wysocki
2015-07-22 18:25 ` josh
2015-07-24 22:36 ` Rafael J. Wysocki
2015-07-25 19:50 ` Josh Triplett
2015-07-26 0:03 ` Rafael J. Wysocki
2015-07-26 0:16 ` Josh Triplett
2015-07-27 13:30 ` Rafael J. Wysocki
2015-07-27 11:50 ` Jani Nikula
2015-07-06 16:33 ` Kristen Accardi [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='CAH3eK3QA3vQ==uaB-re9ys6zH16oeE7jHOnjSDLEDUG-92jMzg@mail.gmail.com' \
--to=kaccardi@gmail.com \
--cc=grant.likely@linaro.org \
--cc=kristen@linux.intel.com \
--cc=ksummit-discuss@lists.linuxfoundation.org \
--cc=len.brown@intel.com \
--cc=neilb@suse.com \
--cc=rjw@rjwysocki.net \
--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