From: Len Brown <lenb@kernel.org>
To: "Pallipadi, Venkatesh" <venkatesh.pallipadi@intel.com>
Cc: Dave Jones <davej@redhat.com>, Ingo Molnar <mingo@elte.hu>,
H Peter Anvin <hpa@zytor.com>,
Thomas Gleixner <tglx@linutronix.de>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
Venkatesh Pallipadi <venkatesh.pallipadi@gmail.com>
Subject: RE: [patch 2/2] x86: Manage ENERGY_PERF_BIAS based on cpufreq governor - v2
Date: Thu, 03 Jun 2010 23:38:20 -0400 (EDT) [thread overview]
Message-ID: <alpine.LFD.2.00.1006032329280.6669@localhost.localdomain> (raw)
In-Reply-To: <7C53B33EE871F14797C999838AA8B5A914A8317F@orsmsx505.amr.corp.intel.com>
> >-----Original Message-----
> >From: Dave Jones [mailto:davej@redhat.com]
> >On Thu, Mar 04, 2010 at 03:14:56PM -0800, Venki Pallipadi wrote:
> >
> > > + if (!strncmp(gov->name, "performance", strlen("performance")))
> > > + epb_val = ENERGY_PERF_BIAS_PERF;
> > > + else if (!strncmp(gov->name, "powersave", strlen("powersave")))
> > > + epb_val = ENERGY_PERF_BIAS_POWER;
> > > + else
> > > + epb_val = ENERGY_PERF_BIAS_ONDEMAND;
> > > +
> > > + set_epb_on_cpu(epb_val, cpu);
> > > + return 0;
> >
> >hardcoding a list of cpufreq governors is kinda icky, but I don't have
> >a better solution. We'll just have to be mindful of it if we ever
> >get around to finally making performance/powersave personalities
> >of ondemand as was discussed years ago.
>
> Yes. In that case we will have to find some other way to tie this to
> user preference.
Lets cross that bridge when we come to it.
> >What if the governor is set to 'userspace' ?
> >powernowd/cpufreqd are sort of ondemand-done-in-userspace, but there
> >may also be other userspace governors we don't know about.
> >I suppose it's not catastrophic..
>
> Userspace/ondemand/conservative can all be at middle ground here as
> they are mostly used where user expects adaptive kind of behaviour.
Frankly, if somebody cares about power or performance,
they shouldn't be running powernowd/cpufreqd, and so
they should be blissfully ignorant and satisfied with the
default, which is 'balanced'.
> I did think about exporting this as a new tunable in /sys and let
> userspace deal with it. But, that doesn't help with having sane default
> values and users (background apps) may shoot themselves in the foot
> with it.
We really do need a central place for userspace to communicate
power/performance bias policy to the kernel -- and for kernel drivers
of all types to pick up that policy. I think that ideally
the sysfs interface should be generic, and that on systems with
this MSR, the MSR gets plugged into updates to that generic
interface.
I think that this driver exposing the MSR to cpufreq is useful,
but perhaps it is just a stepping stone to the generic I/F
that we really should implement...
Len Brown,
Intel Open Source Technology Center
prev parent reply other threads:[~2010-06-04 3:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-04 23:14 [patch 0/2] Support for IA32_ENERGY_PERF_BIAS MSR - v2 venkatesh.pallipadi
2010-03-04 23:14 ` [patch 1/2] x86: Look for IA32_ENERGY_PERF_BIAS support " venkatesh.pallipadi
2010-06-04 3:22 ` [PATCH] x86: Look for IA32_ENERGY_PERF_BIAS support - v3 Len Brown
2010-03-04 23:14 ` [patch 2/2] x86: Manage ENERGY_PERF_BIAS based on cpufreq governor - v2 venkatesh.pallipadi
2010-03-04 23:27 ` Dave Jones
2010-03-04 23:34 ` Pallipadi, Venkatesh
2010-06-04 3:38 ` Len Brown [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=alpine.LFD.2.00.1006032329280.6669@localhost.localdomain \
--to=lenb@kernel.org \
--cc=davej@redhat.com \
--cc=hpa@zytor.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
--cc=venkatesh.pallipadi@gmail.com \
--cc=venkatesh.pallipadi@intel.com \
/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