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

Issue 1489233003: TaskGraphRunner Group support (Closed)

Created:
5 years ago by ericrk
Modified:
5 years ago
CC:
cc-bugs_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@refactor
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

TaskGraphRunner Group support Adds a group to TaskGraphRunner, this can be used by an implementation along with priority in order to decide how to execute tasks. This is a prerequisite patch for thread affinity changes which are coming in a follow-up. This patch causes a moderate (~15%) regression in cc_perftests for TaskGraphRunner. The main regressions I'm seeing are: In ScheduleTasks, we're seeing an additional 3% time spent in operator[] for the two new maps vs ToT. We're also seeing an additional 5.5% of time spent in test code which builds the task graph. Other regressions are less clear, but probably have to do with the additional cost of ScheduleTasks in the function body itself (inlined looping). BUG= CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_chromium_gn_x64_rel Committed: https://crrev.com/05ca4bc9df381e6345f9cf7ee29cdfa075be30c4 Cr-Commit-Position: refs/heads/master@{#365140} Committed: https://crrev.com/3b4338fc32cf20703baa8066bdad7ce07c5ae696 Cr-Commit-Position: refs/heads/master@{#365646} Committed: https://crrev.com/5a1188c6c3b464ed96694881dfec6c70c7d58a29 Cr-Commit-Position: refs/heads/master@{#366180}

Patch Set 1 #

Patch Set 2 : rebase and comment update #

Patch Set 3 : rebase #

Patch Set 4 : #

Patch Set 5 : cleanup #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : rebase #

Total comments: 31

Patch Set 9 : array > map + feedback #

Total comments: 14

Patch Set 10 : feedback #

Total comments: 3

Patch Set 11 : feedback #

Patch Set 12 : fix dcheck #

Patch Set 13 : Fix conversions for x64 #

Patch Set 14 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+345 lines, -130 lines) Patch
M cc/cc.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M cc/raster/single_thread_task_graph_runner.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M cc/raster/single_thread_task_graph_runner.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +18 lines, -5 lines 0 comments Download
M cc/raster/synchronous_task_graph_runner.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M cc/raster/synchronous_task_graph_runner.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +25 lines, -7 lines 0 comments Download
M cc/raster/task_graph_runner.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +17 lines, -7 lines 0 comments Download
M cc/raster/task_graph_runner_perftest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +7 lines, -7 lines 0 comments Download
M cc/raster/task_graph_work_queue.h View 1 2 3 4 5 6 7 8 9 10 8 chunks +53 lines, -28 lines 0 comments Download
M cc/raster/task_graph_work_queue.cc View 1 2 3 4 5 6 7 8 9 7 chunks +108 lines, -44 lines 0 comments Download
M cc/raster/tile_task_worker_pool_perftest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -3 lines 0 comments Download
M cc/raster/tile_task_worker_pool_unittest.cc View 1 10 1 chunk +2 lines, -1 line 0 comments Download
M cc/test/task_graph_runner_test_template.h View 1 2 3 4 5 6 7 8 10 8 chunks +67 lines, -11 lines 0 comments Download
M cc/test/task_graph_runner_test_template.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -3 lines 0 comments Download
M cc/tiles/tile_manager.cc View 1 2 3 4 5 6 7 8 10 1 chunk +4 lines, -1 line 0 comments Download
M content/renderer/raster_worker_pool.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -3 lines 0 comments Download
M content/renderer/raster_worker_pool.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +28 lines, -7 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 51 (27 generated)
ericrk
This is the first part of a few CLs which add thread affinity for SW ...
5 years ago (2015-12-03 02:48:45 UTC) #4
reveman
https://codereview.chromium.org/1489233003/diff/140001/cc/raster/task_graph_runner.h File cc/raster/task_graph_runner.h (right): https://codereview.chromium.org/1489233003/diff/140001/cc/raster/task_graph_runner.h#newcode49 cc/raster/task_graph_runner.h:49: // a group, a priority and a run count ...
5 years ago (2015-12-04 02:30:54 UTC) #5
ericrk
Thanks for the feedback - I was going back and forth between map/array myself, and ...
5 years ago (2015-12-04 19:14:31 UTC) #7
reveman
https://codereview.chromium.org/1489233003/diff/140001/cc/raster/task_graph_work_queue.cc File cc/raster/task_graph_work_queue.cc (right): https://codereview.chromium.org/1489233003/diff/140001/cc/raster/task_graph_work_queue.cc#newcode38 cc/raster/task_graph_work_queue.cc:38: class CompareTaskNamespacePriority { On 2015/12/04 at 19:14:30, ericrk wrote: ...
5 years ago (2015-12-04 20:55:51 UTC) #8
ericrk
Made the suggested changes. Not sure about the addition of task_category.h - wanted to keep ...
5 years ago (2015-12-09 22:56:44 UTC) #15
reveman
looks great, just one thing really, see my comment. and regarding the performance regression, I ...
5 years ago (2015-12-10 16:49:57 UTC) #16
ericrk
Added perf notes to the description and fixed things up re. your comment. https://codereview.chromium.org/1489233003/diff/320001/cc/raster/synchronous_task_graph_runner.cc File ...
5 years ago (2015-12-14 19:40:58 UTC) #19
reveman
lgtm
5 years ago (2015-12-14 20:04:03 UTC) #20
ericrk
+sievers for content. Thanks!
5 years ago (2015-12-14 21:22:24 UTC) #22
no sievers
On 2015/12/14 21:22:24, ericrk wrote: > +sievers for content. Thanks! lgtm
5 years ago (2015-12-14 21:28:23 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1489233003/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1489233003/340001
5 years ago (2015-12-14 21:39:56 UTC) #25
commit-bot: I haz the power
Committed patchset #11 (id:340001)
5 years ago (2015-12-15 02:58:06 UTC) #27
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/05ca4bc9df381e6345f9cf7ee29cdfa075be30c4 Cr-Commit-Position: refs/heads/master@{#365140}
5 years ago (2015-12-15 02:58:51 UTC) #29
yoichio
A revert of this CL (patchset #11 id:340001) has been created in https://codereview.chromium.org/1521423003/ by yoichio@chromium.org. ...
5 years ago (2015-12-15 04:26:44 UTC) #30
haraken
cc_unittests started failing on Oilpan bots after this CL. http://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20Oilpan/builds/32024
5 years ago (2015-12-15 04:36:51 UTC) #32
ericrk
Had a bug where code that needed to run was wrapped in DCHECK - got ...
5 years ago (2015-12-16 21:31:00 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1489233003/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1489233003/360001
5 years ago (2015-12-16 21:33:18 UTC) #36
commit-bot: I haz the power
Committed patchset #12 (id:360001)
5 years ago (2015-12-16 22:39:50 UTC) #37
commit-bot: I haz the power
Patchset 12 (id:??) landed as https://crrev.com/3b4338fc32cf20703baa8066bdad7ce07c5ae696 Cr-Commit-Position: refs/heads/master@{#365646}
5 years ago (2015-12-16 22:40:52 UTC) #39
Yuta Kitamura
A revert of this CL (patchset #12 id:360001) has been created in https://codereview.chromium.org/1538433002/ by yutak@chromium.org. ...
5 years ago (2015-12-17 05:10:50 UTC) #40
dtu
On 2015/12/17 at 05:10:50, yutak wrote: > A revert of this CL (patchset #12 id:360001) ...
5 years ago (2015-12-17 05:25:25 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1489233003/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1489233003/380001
5 years ago (2015-12-18 21:03:09 UTC) #47
commit-bot: I haz the power
Committed patchset #13 (id:380001)
5 years ago (2015-12-18 22:04:12 UTC) #49
commit-bot: I haz the power
5 years ago (2015-12-18 22:05:10 UTC) #51
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/5a1188c6c3b464ed96694881dfec6c70c7d58a29
Cr-Commit-Position: refs/heads/master@{#366180}

Powered by Google App Engine
This is Rietveld 408576698