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

Issue 2391593002: [scheduler] Change ThreadLoadTracker to use only recent data. (Closed)

Created:
4 years, 2 months ago by altimin
Modified:
4 years, 2 months ago
CC:
chromium-reviews, blink-reviews, scheduler-bugs_chromium.org, dproy
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[scheduler] Change ThreadLoadTracker to use only recent data. Currently ThreadLoadTracker accumulates data from the start and reports average load of an interval from the start to current moment. This patch replaces cumulative approach with sliding window and makes ThreadLoadTracker report last minute average load. BUG=639852 Committed: https://crrev.com/4ec676871d9e7963b3575cd76fda00d8077b7fe1 Cr-Commit-Position: refs/heads/master@{#423509}

Patch Set 1 #

Patch Set 2 : Simplified #

Total comments: 26

Patch Set 3 : Addressed comments from alexclarke@ and skyostil@ #

Patch Set 4 : Fix #

Patch Set 5 : Changed reporting interval to 1 minute #

Patch Set 6 : Fixed android compilation #

Patch Set 7 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -59 lines) Patch
M third_party/WebKit/Source/platform/scheduler/base/thread_load_tracker.h View 1 2 3 4 2 chunks +13 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/thread_load_tracker.cc View 1 2 3 4 3 chunks +46 lines, -30 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/thread_load_tracker_unittest.cc View 1 2 3 4 5 3 chunks +45 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc View 1 2 3 4 5 6 2 chunks +10 lines, -2 lines 0 comments Download

Messages

Total messages: 44 (20 generated)
altimin
PTAL
4 years, 2 months ago (2016-10-03 15:08:20 UTC) #3
tdresser
We're going to want data on the tasks in the last n seconds for Expected ...
4 years, 2 months ago (2016-10-03 15:33:35 UTC) #5
altimin
PTAL. Following Tim's question I realized that we do not need to store all tasks, ...
4 years, 2 months ago (2016-10-05 14:46:02 UTC) #6
alex clarke (OOO till 29th)
https://codereview.chromium.org/2391593002/diff/20001/third_party/WebKit/Source/platform/scheduler/base/thread_load_tracker.cc File third_party/WebKit/Source/platform/scheduler/base/thread_load_tracker.cc (right): https://codereview.chromium.org/2391593002/diff/20001/third_party/WebKit/Source/platform/scheduler/base/thread_load_tracker.cc#newcode94 third_party/WebKit/Source/platform/scheduler/base/thread_load_tracker.cc:94: // Forward time_ to the earliest of following: nit ...
4 years, 2 months ago (2016-10-05 15:25:23 UTC) #7
Sami
I think something like this makes sense to get a less biased view of the ...
4 years, 2 months ago (2016-10-05 15:28:13 UTC) #8
Sami
And re: timestamps, we do keep O(1000) of them in a couple of places already, ...
4 years, 2 months ago (2016-10-05 15:29:19 UTC) #9
altimin
PTAL https://codereview.chromium.org/2391593002/diff/20001/third_party/WebKit/Source/platform/scheduler/base/thread_load_tracker.cc File third_party/WebKit/Source/platform/scheduler/base/thread_load_tracker.cc (right): https://codereview.chromium.org/2391593002/diff/20001/third_party/WebKit/Source/platform/scheduler/base/thread_load_tracker.cc#newcode15 third_party/WebKit/Source/platform/scheduler/base/thread_load_tracker.cc:15: const int kWaitingPeriodBeforeReportingInSeconds = 10; On 2016/10/05 15:28:12, ...
4 years, 2 months ago (2016-10-05 16:26:56 UTC) #11
altimin
PTAL https://codereview.chromium.org/2391593002/diff/20001/third_party/WebKit/Source/platform/scheduler/base/thread_load_tracker.cc File third_party/WebKit/Source/platform/scheduler/base/thread_load_tracker.cc (right): https://codereview.chromium.org/2391593002/diff/20001/third_party/WebKit/Source/platform/scheduler/base/thread_load_tracker.cc#newcode15 third_party/WebKit/Source/platform/scheduler/base/thread_load_tracker.cc:15: const int kWaitingPeriodBeforeReportingInSeconds = 10; On 2016/10/05 15:28:12, ...
4 years, 2 months ago (2016-10-05 16:26:57 UTC) #12
Sami
A one second window feels pretty short and noisy. For example Linux uses 1m, 5m ...
4 years, 2 months ago (2016-10-05 16:51:08 UTC) #13
altimin
Changed interval to 1 minute. PTAL
4 years, 2 months ago (2016-10-05 17:57:52 UTC) #14
Sami
lgtm. Please update the patch description too.
4 years, 2 months ago (2016-10-05 18:04:10 UTC) #15
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/2391593002/80001
4 years, 2 months ago (2016-10-05 18:10:05 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/140355)
4 years, 2 months ago (2016-10-05 19:04:31 UTC) #20
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/2391593002/100001
4 years, 2 months ago (2016-10-05 20:25:56 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/306266)
4 years, 2 months ago (2016-10-06 00:07:56 UTC) #25
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/2391593002/100001
4 years, 2 months ago (2016-10-06 00:11:37 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/306584)
4 years, 2 months ago (2016-10-06 02:39:31 UTC) #29
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/2391593002/100001
4 years, 2 months ago (2016-10-06 08:01:37 UTC) #31
commit-bot: I haz the power
Exceeded global retry quota
4 years, 2 months ago (2016-10-06 08:10:06 UTC) #33
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/2391593002/100001
4 years, 2 months ago (2016-10-06 08:11:34 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/275132)
4 years, 2 months ago (2016-10-06 08:17:39 UTC) #37
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/2391593002/120001
4 years, 2 months ago (2016-10-06 12:20:43 UTC) #40
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 2 months ago (2016-10-06 13:39:53 UTC) #42
commit-bot: I haz the power
4 years, 2 months ago (2016-10-06 13:41:17 UTC) #44
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/4ec676871d9e7963b3575cd76fda00d8077b7fe1
Cr-Commit-Position: refs/heads/master@{#423509}

Powered by Google App Engine
This is Rietveld 408576698