From: Dirk Brandewie <dirk.brandewie@gmail.com>
To: David C Niemi <dniemi@verisign.com>
Cc: Arjan van de Ven <arjan@linux.intel.com>,
dirk.brandewie@gmail.com, cpufreq@vger.kernel.org, rjw@sisk.pl,
deneen.t.dock@intel.com
Subject: Re: [PATCH RFC 0/1] cpufreq/x86: Add P-state driver for sandy bridge.
Date: Thu, 06 Dec 2012 10:25:15 -0800 [thread overview]
Message-ID: <50C0E30B.2040301@gmail.com> (raw)
In-Reply-To: <50C0D64E.8050005@verisign.com>
On 12/06/2012 09:30 AM, David C Niemi wrote:
> On 12/06/12 11:27, Arjan van de Ven wrote:
>> ...
>>> The exposed configuration interface might be as simple as choosing one of several discrete settings:
>>> - max single-threaded performance
>>> - max multi-threaded performance
>>
>>
>> these are identical on todays silicon btw; or rather, this is not a P state choice item, but a task scheduler policy item.
>
> Here's where there is a difference in power management: if you want to maximize single-thread performance,
> you're willing to enable power-expensive boost modes on behalf of a thread.
You don't want to do that for
> multithreaded performance because your thermal envelope may not let you boost
them all at once. Or at
> least that is what I was thinking.
>
Without being VERY intimate with scheduler it is not clear how you could get
here. How can the governor know which core should get the most performance?
When we request a frequency greater than the frequency stamped on the part
(turbo frequency) the processor opportunistically run at a higher frequency
upto the requested frequency.
> Also some people will be all about I/O throughput, and others will care more about latency than anything else,
> and percentages for those people may be wildly different than for general
computation. So we can't guarantee
> any particular percentage outside some well-defined benchmarks. But we could
try to lump them all together
> as best we can and have a couple of knobs on the side like the current
> "io_is_busy", perhaps
io_is_busy is a hint for ondemand to not move to the "idle frequency" while an
I/O is outstanding. It is not useful if you are not actively managing the
frequency at idle.
> On reporting frequency: would it be practical to report some sort of medium-term
> average frequency, or if that is not available,
Keeping an average over time is clearly possible in the driver but it is not
clear how it would be useful. In most situations other that proving that the
frequency changes over time there is little useful information provided
by knowing the current operating frequency.
> to just report the max freq that the hardware thread is currently
> eligible to use?
>
In Sandybridge you can request any turbo frequency at any time, what frequency
you actually get is up to the hardware and you can't tell what frequency you
actually got. AFAIK there is no way to tell what you are going to get
when you request a frequency higher than the frequency stamped on the part.
--Dirk
next prev parent reply other threads:[~2012-12-06 18:25 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-05 19:01 [PATCH RFC 0/1] cpufreq/x86: Add P-state driver for sandy bridge dirk.brandewie
2012-12-05 19:01 ` [PATCH RFC 1/1] " dirk.brandewie
2012-12-05 20:28 ` [PATCH RFC 0/1] " David C Niemi
2012-12-05 21:01 ` Arjan van de Ven
2012-12-05 21:40 ` David C Niemi
2012-12-05 21:54 ` Arjan van de Ven
2012-12-06 15:01 ` David C Niemi
2012-12-06 16:27 ` Arjan van de Ven
2012-12-06 17:30 ` David C Niemi
2012-12-06 17:41 ` Arjan van de Ven
2012-12-06 18:25 ` Dirk Brandewie [this message]
2012-12-06 18:41 ` David C Niemi
2012-12-06 21:35 ` Dirk Brandewie
2012-12-06 22:23 ` David C Niemi
2012-12-06 20:45 ` Rafael J. Wysocki
2012-12-06 21:15 ` Arjan van de Ven
2012-12-06 21:26 ` Rafael J. Wysocki
2012-12-06 21:34 ` Rafael J. Wysocki
2012-12-06 22:08 ` Arjan van de Ven
2012-12-06 22:53 ` Rafael J. Wysocki
2012-12-06 16:35 ` Dirk Brandewie
2012-12-06 16:49 ` Arjan van de Ven
2012-12-06 18:16 ` David C Niemi
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=50C0E30B.2040301@gmail.com \
--to=dirk.brandewie@gmail.com \
--cc=arjan@linux.intel.com \
--cc=cpufreq@vger.kernel.org \
--cc=deneen.t.dock@intel.com \
--cc=dniemi@verisign.com \
--cc=rjw@sisk.pl \
/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;
as well as URLs for NNTP newsgroup(s).