cpufreq.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: bugzilla-daemon@bugzilla.kernel.org
To: cpufreq@vger.kernel.org
Subject: [Bug 64261] Intel Pstate driver truncates to pstate instead of rounding to nearest pstate
Date: Tue, 05 Nov 2013 01:28:23 +0000	[thread overview]
Message-ID: <bug-64261-12968-PlbFZa8t4T@https.bugzilla.kernel.org/> (raw)
In-Reply-To: <bug-64261-12968@https.bugzilla.kernel.org/>

https://bugzilla.kernel.org/show_bug.cgi?id=64261

--- Comment #6 from Dirk Brandewie <dirk.brandewie@gmail.com> ---
(In reply to Doug Smythies from comment #5)
> Hi Dirk,
> 
> There are cases, i.e. when investigating error in load averages where one
> wants to lock the CPU at whatever frequency. I realize it was not the goal
> of intel_pstate, but still needs to be allowed for.

It is allowed for clearly you are using the mechanism.  The percentage values
to get to a given frequency are SKU dependent.  We could change it to make
your graph look the way you want it on your system.  Then someone else comes up
and say it goes to the higher P state too soon on their system.

In the normal case where intel_pstate is being used to save enrgy being
conservative is a good thing.

If you can't get to a selected (measured) frequency with the current interface
then that is a bug.


> Regardless, I am merely
> using this as a way to easily demonstrate the issue.
> 
> ".53 * 34 = 18.03 (so we are off by 3 percent of a pstate due to truncation)"
> No, I am arguing that it is off by 103 percent of a pstate due to truncation.

int(.53 * 34 + 0.5) = 18

How is it off by a whole P state?
> 
> I am also arguing that if rounding is used there will never be more than a
> half of a pstate discrepancy between desired and actual instead of 1 pstate.
> I am also arguing that it will help at the 100% end, where right now it
> might struggle to get to 100% on some processors.
> 
> For your examples, I am saying it should be:
> 
> Turbo:
> int(.42 * 38 + 0.5) = 16
> int(.43 * 38 + 0.5) = 16
> int(.44 * 38 + 0.5) = 17
> int(.45 * 38 + 0.5) = 17
> 
> Turbo off:
> int(.50 * 34 + 0.5) = 17
> int(.51 * 34 + 0.5) = 17
> int(.52 * 34 + 0.5) = 18
> int(.53 * 34 + 0.5) = 18

-- 
You are receiving this mail because:
You are the assignee for the bug.

  parent reply	other threads:[~2013-11-05  1:28 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-02 21:52 [Bug 64261] New: Intel Pstate driver truncates to pstate instead of rounding to nearest pstate bugzilla-daemon
2013-11-04  7:17 ` [Bug 64261] " bugzilla-daemon
2013-11-04 16:14 ` bugzilla-daemon
2013-11-04 16:54 ` bugzilla-daemon
2013-11-04 18:39 ` bugzilla-daemon
2013-11-04 22:19 ` bugzilla-daemon
2013-11-05  1:28 ` bugzilla-daemon [this message]
2013-11-05  7:21 ` bugzilla-daemon
2013-11-05  7:35 ` bugzilla-daemon
2013-11-05  8:12 ` bugzilla-daemon
2013-11-05 15:06 ` bugzilla-daemon
2013-11-06  5:34 ` bugzilla-daemon
2013-11-06  5:38 ` bugzilla-daemon
2013-11-06  5:43 ` bugzilla-daemon
2013-11-06  5:48 ` bugzilla-daemon
2013-11-06  6:04 ` bugzilla-daemon
2013-11-06 18:58 ` bugzilla-daemon
2013-11-06 19:44 ` bugzilla-daemon
2014-04-18  3:02 ` bugzilla-daemon

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=bug-64261-12968-PlbFZa8t4T@https.bugzilla.kernel.org/ \
    --to=bugzilla-daemon@bugzilla.kernel.org \
    --cc=cpufreq@vger.kernel.org \
    /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).