[Bug 108700] 2x Media CPU power usage, or 15% perf drop when CPU bound GPU use-case is TDP limited

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Dec 13 14:02:51 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=108700

--- Comment #10 from Eero Tamminen <eero.t.tamminen at intel.com> ---
(In reply to David Weinehall from comment #9)
> Reverting 01bad1c6896db021db82042e71c2bf1f97cc026b seems to resolve at least
> part of the performance regression

https://cgit.freedesktop.org/drm/drm-tip/commit/?id=01bad1c6896db021db82042e71c2bf1f97cc026b

----------------------------------------------------------------
Author:Rafael J. Wysocki <rafael.j.wysocki at intel.com>
Committer: Rafael J. Wysocki <rafael.j.wysocki at intel.com>

cpuidle: poll_state: Revise loop termination condition

If need_resched() returns "false", breaking out of the loop in
poll_idle() will cause a new idle state to be selected, so in fact
it usually doesn't make sense to spin in it longer than the target
residency of the second state.  [Note that the "polling" state is
used only if there is at least one "real" state defined in addition
to it, so the second state is always there.]  On the other hand,
breaking out of it early (say in case the next state is disabled)
shouldn't hurt as it is polling anyway.

For this reason, make the loop in poll_idle() break if the CPU has
been spinning longer than the target residency of the second state
(the "polling" state can only be state[0]).
----------------------------------------------------------------


> the CPU power usage seems to have been a separate issue.

Before the issue, CPU core(s)s power usage was less than GPU power usage, and
afterwards it was >2x GPU power usage, in a (mostly) *GPU limited* Media
test-case.

STIBP fix didn't improve >2x CPU power usage increase in Media test-case 2) at
all, so I think at this point it's more interesting than the small perf drop in
it.  It's like to explain rest of the perf drop too.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20181213/16683ecd/attachment.html>


More information about the intel-gfx-bugs mailing list