Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Issue 1053153003: Remove swap ack throttling to regain performance regression on freon (Closed)

Created:
5 years, 8 months ago by alexst (slow to review)
Modified:
5 years, 8 months ago
Reviewers:
danakj, brianderson, Sami
CC:
chromium-reviews, cc-bugs_chromium.org, scheduler-bugs_chromium.org, Sami
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove swap ack throttling to regain performance regression on freon. In the past eglSwapBuffers used to return early, before the swap actually happened and descheduling in the driver. This resulted in the scheduler beginning the next frame early and hitting the page flip deadline in time more often. Freon returns swap ack when page flip actually happened, but with the side effect of scheduling shifted forward, resulting in more missed vblanks and reduced performance. This change restores original performance on freon. BUG=465599 Committed: https://crrev.com/faa924ff38e80006a27ac85fcc95f3dcbe441d55 Cr-Commit-Position: refs/heads/master@{#324465}

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Total comments: 10

Patch Set 4 : unittests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -27 lines) Patch
M cc/scheduler/scheduler_state_machine.cc View 1 1 chunk +0 lines, -8 lines 0 comments Download
M cc/scheduler/scheduler_state_machine_unittest.cc View 1 2 3 1 chunk +0 lines, -10 lines 0 comments Download
M cc/scheduler/scheduler_unittest.cc View 1 2 3 4 chunks +11 lines, -9 lines 0 comments Download

Messages

Total messages: 28 (10 generated)
danakj
https://codereview.chromium.org/1053153003/diff/1/cc/scheduler/scheduler_state_machine.cc File cc/scheduler/scheduler_state_machine.cc (right): https://codereview.chromium.org/1053153003/diff/1/cc/scheduler/scheduler_state_machine.cc#newcode428 cc/scheduler/scheduler_state_machine.cc:428: #if !defined(ARCH_CPU_ARM_FAMILY) This should be a LayerTreeSetting->SchedulerSetting set in ...
5 years, 8 months ago (2015-04-06 16:32:51 UTC) #3
brianderson
lgtm if this is turned on for all platforms https://codereview.chromium.org/1053153003/diff/1/cc/scheduler/scheduler_state_machine.cc File cc/scheduler/scheduler_state_machine.cc (right): https://codereview.chromium.org/1053153003/diff/1/cc/scheduler/scheduler_state_machine.cc#newcode428 cc/scheduler/scheduler_state_machine.cc:428: ...
5 years, 8 months ago (2015-04-07 03:15:38 UTC) #4
alexst (slow to review)
Okay, new patch is up.
5 years, 8 months ago (2015-04-07 19:35:30 UTC) #5
brianderson
lgtm +Sami for fyi, since he had some concerns regarding CPU fighting if we were ...
5 years, 8 months ago (2015-04-07 19:43:25 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1053153003/20001
5 years, 8 months ago (2015-04-07 20:41:28 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/53061)
5 years, 8 months ago (2015-04-07 22:53:29 UTC) #10
alexst (slow to review)
Hi Brian, I need your guidance. In scheduler_state_machine_unittest.cc, the failing part seems to test the ...
5 years, 8 months ago (2015-04-08 15:23:45 UTC) #11
brianderson
https://codereview.chromium.org/1053153003/diff/40001/cc/scheduler/scheduler_unittest.cc File cc/scheduler/scheduler_unittest.cc (right): https://codereview.chromium.org/1053153003/diff/40001/cc/scheduler/scheduler_unittest.cc#newcode1497 cc/scheduler/scheduler_unittest.cc:1497: // but not a BeginMainFrame or draw. Update this ...
5 years, 8 months ago (2015-04-09 02:01:37 UTC) #12
brianderson
https://codereview.chromium.org/1053153003/diff/40001/cc/scheduler/scheduler_unittest.cc File cc/scheduler/scheduler_unittest.cc (right): https://codereview.chromium.org/1053153003/diff/40001/cc/scheduler/scheduler_unittest.cc#newcode1520 cc/scheduler/scheduler_unittest.cc:1520: // EXPECT_SINGLE_ACTION("ScheduledActionSendBeginMainFrame", client_); On 2015/04/09 02:01:37, brianderson wrote: > ...
5 years, 8 months ago (2015-04-09 02:05:38 UTC) #13
Sami
I'm fine with going ahead with this. Let's just make sure doesn't make latency or ...
5 years, 8 months ago (2015-04-09 12:42:02 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1053153003/80001
5 years, 8 months ago (2015-04-09 13:04:20 UTC) #19
alexst (slow to review)
thanks, PTAL https://codereview.chromium.org/1053153003/diff/40001/cc/scheduler/scheduler_unittest.cc File cc/scheduler/scheduler_unittest.cc (right): https://codereview.chromium.org/1053153003/diff/40001/cc/scheduler/scheduler_unittest.cc#newcode1497 cc/scheduler/scheduler_unittest.cc:1497: // but not a BeginMainFrame or draw. ...
5 years, 8 months ago (2015-04-09 13:05:01 UTC) #20
commit-bot: I haz the power
This issue passed the CQ dry run.
5 years, 8 months ago (2015-04-09 16:17:38 UTC) #22
brianderson
lgtm
5 years, 8 months ago (2015-04-09 17:20:14 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1053153003/80001
5 years, 8 months ago (2015-04-09 17:21:08 UTC) #25
commit-bot: I haz the power
Committed patchset #4 (id:80001)
5 years, 8 months ago (2015-04-09 17:22:20 UTC) #26
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/faa924ff38e80006a27ac85fcc95f3dcbe441d55 Cr-Commit-Position: refs/heads/master@{#324465}
5 years, 8 months ago (2015-04-09 17:23:25 UTC) #27
brianderson
5 years, 8 months ago (2015-04-14 22:39:24 UTC) #28
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:80001) has been created in
https://codereview.chromium.org/1087983003/ by brianderson@chromium.org.

The reason for reverting is: Despite throughput wins, this increased hang rates,
broke pdfs, and regressed latency..

Powered by Google App Engine
This is Rietveld 408576698