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

Issue 2896603002: [scheduler] Move task alignment into WakeUpBudgetPool. (Closed)

Created:
3 years, 7 months ago by altimin
Modified:
3 years, 7 months ago
CC:
blink-reviews, chromium-reviews, kinuko+watch, scheduler-bugs_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[scheduler] Move task alignment into WakeUpBudgetPool. This fixes the regression where real-world throttling regressed to two-seconds task alignment instead of one-second alignment. This patch also improves test coverage for background throttling. BUG=722410 Review-Url: https://codereview.chromium.org/2896603002 Cr-Original-Commit-Position: refs/heads/master@{#473609} Committed: https://chromium.googlesource.com/chromium/src/+/188fc72030f13187af5cff7e9802f3abebdea017 Review-Url: https://codereview.chromium.org/2896603002 Cr-Commit-Position: refs/heads/master@{#473867} Committed: https://chromium.googlesource.com/chromium/src/+/c37e844a6f87088261bf3c595ea34b64b15f1633

Patch Set 1 #

Total comments: 4

Patch Set 2 : addressed a comment from alexclarke@ #

Patch Set 3 : uploaded correct version #

Patch Set 4 : fix typo #

Total comments: 2

Patch Set 5 : Fix test #

Patch Set 6 : no iostream #

Total comments: 2

Messages

Total messages: 42 (28 generated)
altimin
PTAL
3 years, 7 months ago (2017-05-19 17:40:40 UTC) #2
alex clarke (OOO till 29th)
https://codereview.chromium.org/2896603002/diff/1/third_party/WebKit/Source/platform/scheduler/renderer/wake_up_budget_pool.cc File third_party/WebKit/Source/platform/scheduler/renderer/wake_up_budget_pool.cc (right): https://codereview.chromium.org/2896603002/diff/1/third_party/WebKit/Source/platform/scheduler/renderer/wake_up_budget_pool.cc#newcode30 third_party/WebKit/Source/platform/scheduler/renderer/wake_up_budget_pool.cc:30: wake_up_interval_ = base::TimeDelta::FromSeconds(1 / wake_ups_per_second); Shouldn't that be base::TimeDelta::FromSecondsD(1.0 ...
3 years, 7 months ago (2017-05-19 19:48:39 UTC) #5
altimin
https://codereview.chromium.org/2896603002/diff/1/third_party/WebKit/Source/platform/scheduler/renderer/wake_up_budget_pool.cc File third_party/WebKit/Source/platform/scheduler/renderer/wake_up_budget_pool.cc (right): https://codereview.chromium.org/2896603002/diff/1/third_party/WebKit/Source/platform/scheduler/renderer/wake_up_budget_pool.cc#newcode30 third_party/WebKit/Source/platform/scheduler/renderer/wake_up_budget_pool.cc:30: wake_up_interval_ = base::TimeDelta::FromSeconds(1 / wake_ups_per_second); On 2017/05/19 19:48:39, alex ...
3 years, 7 months ago (2017-05-19 22:15:16 UTC) #8
alex clarke (OOO till 29th)
https://codereview.chromium.org/2896603002/diff/1/third_party/WebKit/Source/platform/scheduler/renderer/wake_up_budget_pool.cc File third_party/WebKit/Source/platform/scheduler/renderer/wake_up_budget_pool.cc (right): https://codereview.chromium.org/2896603002/diff/1/third_party/WebKit/Source/platform/scheduler/renderer/wake_up_budget_pool.cc#newcode30 third_party/WebKit/Source/platform/scheduler/renderer/wake_up_budget_pool.cc:30: wake_up_interval_ = base::TimeDelta::FromSeconds(1 / wake_ups_per_second); On 2017/05/19 22:15:15, altimin ...
3 years, 7 months ago (2017-05-20 09:09:51 UTC) #9
altimin
PTAL https://codereview.chromium.org/2896603002/diff/1/third_party/WebKit/Source/platform/scheduler/renderer/wake_up_budget_pool.cc File third_party/WebKit/Source/platform/scheduler/renderer/wake_up_budget_pool.cc (right): https://codereview.chromium.org/2896603002/diff/1/third_party/WebKit/Source/platform/scheduler/renderer/wake_up_budget_pool.cc#newcode30 third_party/WebKit/Source/platform/scheduler/renderer/wake_up_budget_pool.cc:30: wake_up_interval_ = base::TimeDelta::FromSeconds(1 / wake_ups_per_second); On 2017/05/20 09:09:51, ...
3 years, 7 months ago (2017-05-22 10:50:10 UTC) #12
alex clarke (OOO till 29th)
LGTM % possible test https://codereview.chromium.org/2896603002/diff/60001/third_party/WebKit/Source/platform/scheduler/renderer/wake_up_budget_pool.cc File third_party/WebKit/Source/platform/scheduler/renderer/wake_up_budget_pool.cc (right): https://codereview.chromium.org/2896603002/diff/60001/third_party/WebKit/Source/platform/scheduler/renderer/wake_up_budget_pool.cc#newcode30 third_party/WebKit/Source/platform/scheduler/renderer/wake_up_budget_pool.cc:30: wake_up_interval_ = base::TimeDelta::FromSecondsD(1 / wake_ups_per_second); ...
3 years, 7 months ago (2017-05-22 13:26:36 UTC) #15
altimin
https://codereview.chromium.org/2896603002/diff/60001/third_party/WebKit/Source/platform/scheduler/renderer/wake_up_budget_pool.cc File third_party/WebKit/Source/platform/scheduler/renderer/wake_up_budget_pool.cc (right): https://codereview.chromium.org/2896603002/diff/60001/third_party/WebKit/Source/platform/scheduler/renderer/wake_up_budget_pool.cc#newcode30 third_party/WebKit/Source/platform/scheduler/renderer/wake_up_budget_pool.cc:30: wake_up_interval_ = base::TimeDelta::FromSecondsD(1 / wake_ups_per_second); On 2017/05/22 13:26:35, alex ...
3 years, 7 months ago (2017-05-22 13:31:24 UTC) #16
altimin
On 2017/05/22 13:31:24, altimin wrote: > https://codereview.chromium.org/2896603002/diff/60001/third_party/WebKit/Source/platform/scheduler/renderer/wake_up_budget_pool.cc > File > third_party/WebKit/Source/platform/scheduler/renderer/wake_up_budget_pool.cc > (right): > > ...
3 years, 7 months ago (2017-05-22 13:52:03 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2896603002/80001
3 years, 7 months ago (2017-05-22 17:12:07 UTC) #26
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/188fc72030f13187af5cff7e9802f3abebdea017
3 years, 7 months ago (2017-05-22 17:17:57 UTC) #29
Marijn Kruisselbrink
A revert of this CL (patchset #5 id:80001) has been created in https://codereview.chromium.org/2893363002/ by mek@chromium.org. ...
3 years, 7 months ago (2017-05-22 17:49:53 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2896603002/100001
3 years, 7 months ago (2017-05-23 12:26:35 UTC) #38
commit-bot: I haz the power
Committed patchset #6 (id:100001) as https://chromium.googlesource.com/chromium/src/+/c37e844a6f87088261bf3c595ea34b64b15f1633
3 years, 7 months ago (2017-05-23 12:30:53 UTC) #41
Z_DONOTUSE
3 years, 7 months ago (2017-05-23 19:31:46 UTC) #42
Message was sent while issue was closed.
Some drive by after the fact comments...

https://codereview.chromium.org/2896603002/diff/100001/third_party/WebKit/Sou...
File
third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc
(right):

https://codereview.chromium.org/2896603002/diff/100001/third_party/WebKit/Sou...
third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc:254:
// TODO(altimin): Consider removing alignment here.
Ditto.

https://codereview.chromium.org/2896603002/diff/100001/third_party/WebKit/Sou...
File
third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.h
(right):

https://codereview.chromium.org/2896603002/diff/100001/third_party/WebKit/Sou...
third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.h:135:
// TODO(altimin): Remove it.
In the future, please give more descriptive TODOs. If you don't get around to
it, someone looking at this 3 years from now won't know why this should be
removed. Similarly, if someone wants to add a new call to this, they won't know
whether it's OK or not based off this TODO.

Powered by Google App Engine
This is Rietveld 408576698