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

Issue 1616953003: content: Improve thread priority for raster threads. (Closed)

Created:
4 years, 11 months ago by reveman
Modified:
4 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

content: Improve thread priority for raster threads. This reduces the amount of resources that background work can use by making the background thread that runs pre-paint tasks use a priority that makes it run on a single small core on big.LITTLE devices. Threads used for foreground work are now given normal priority on all platforms. BUG=504515 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/56d6a40f9f84140e8a806325beec52bea3f3bd2a Cr-Commit-Position: refs/heads/master@{#377490}

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : rebase #

Total comments: 6

Patch Set 4 : no ThreadPriority::BACKGROUND on mac #

Total comments: 5

Patch Set 5 : remove UpdateSmoothnessTakesPriority #

Patch Set 6 : remove num_raster_threads change #

Patch Set 7 : rebase #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -90 lines) Patch
M base/threading/platform_thread_android.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -6 lines 0 comments Download
M cc/output/output_surface.h View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M cc/trees/proxy_impl.cc View 1 2 3 4 5 6 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/login/chrome_restart_request.cc View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M chromecast/browser/cast_browser_main_parts.cc View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -5 lines 0 comments Download
M content/renderer/gpu/compositor_output_surface.h View 1 2 3 4 2 chunks +0 lines, -8 lines 0 comments Download
M content/renderer/gpu/compositor_output_surface.cc View 1 2 3 4 3 chunks +0 lines, -33 lines 0 comments Download
M content/renderer/raster_worker_pool.h View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/raster_worker_pool.cc View 1 2 3 7 3 chunks +9 lines, -4 lines 0 comments Download
M content/renderer/raster_worker_pool_unittest.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -9 lines 0 comments Download

Messages

Total messages: 61 (21 generated)
reveman
I'd like to give this a try now that Eric's task category change has landed ...
4 years, 11 months ago (2016-01-25 00:39:01 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1616953003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1616953003/1
4 years, 11 months ago (2016-01-25 00:39:16 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-25 01:49:19 UTC) #6
ericrk
On 2016/01/25 01:49:19, commit-bot: I haz the power wrote: > Dry run: This issue passed ...
4 years, 11 months ago (2016-01-25 20:53:42 UTC) #7
reveman
On 2016/01/25 at 20:53:42, ericrk wrote: > On 2016/01/25 01:49:19, commit-bot: I haz the power ...
4 years, 11 months ago (2016-01-25 21:10:24 UTC) #8
ericrk
lgtm
4 years, 11 months ago (2016-01-26 00:07:28 UTC) #9
vmiura
lgtm, let's try.
4 years, 11 months ago (2016-01-26 00:11:19 UTC) #10
reveman
+sievers for content/
4 years, 11 months ago (2016-01-26 00:12:31 UTC) #12
no sievers
+aelias who has some concerns that just using more threads will mainly increase our power ...
4 years, 11 months ago (2016-01-26 01:54:46 UTC) #15
aelias_OOO_until_Jul13
Yeah, in my mind "prepaint tasks can't block tasks for visible contents" wasn't the only ...
4 years, 11 months ago (2016-01-26 02:31:06 UTC) #16
reveman
On 2016/01/26 at 01:54:46, sievers wrote: > +aelias who has some concerns that just using ...
4 years, 11 months ago (2016-01-26 02:38:33 UTC) #17
aelias_OOO_until_Jul13
On 2016/01/26 at 02:38:33, reveman wrote: > On 2016/01/26 at 01:54:46, sievers wrote: > > ...
4 years, 11 months ago (2016-01-26 03:12:03 UTC) #18
reveman
On 2016/01/26 at 03:12:03, aelias wrote: > On 2016/01/26 at 02:38:33, reveman wrote: > > ...
4 years, 10 months ago (2016-01-26 16:50:42 UTC) #19
vmiura
Ideally, we restrict to 1 raster thread running at a time, except in a case ...
4 years, 10 months ago (2016-01-26 17:23:37 UTC) #20
aelias_OOO_until_Jul13
On 2016/01/26 at 16:50:42, reveman wrote: > On 2016/01/26 at 03:12:03, aelias wrote: > > ...
4 years, 10 months ago (2016-01-26 19:37:16 UTC) #21
reveman
On 2016/01/26 at 19:37:16, aelias wrote: > On 2016/01/26 at 16:50:42, reveman wrote: > > ...
4 years, 10 months ago (2016-01-26 20:00:38 UTC) #22
aelias_OOO_until_Jul13
On 2016/01/26 at 20:00:38, reveman wrote: > Oh wow, that's confusing. Do we need visible ...
4 years, 10 months ago (2016-01-26 20:16:02 UTC) #23
ericrk
https://codereview.chromium.org/1616953003/diff/20001/content/renderer/raster_worker_pool.cc File content/renderer/raster_worker_pool.cc (right): https://codereview.chromium.org/1616953003/diff/20001/content/renderer/raster_worker_pool.cc#newcode147 content/renderer/raster_worker_pool.cc:147: // Background thread can only run background tasks. I ...
4 years, 10 months ago (2016-01-26 22:39:56 UTC) #24
aelias_OOO_until_Jul13
On 2016/01/26 at 22:39:56, ericrk wrote: > https://codereview.chromium.org/1616953003/diff/20001/content/renderer/raster_worker_pool.cc > File content/renderer/raster_worker_pool.cc (right): > > https://codereview.chromium.org/1616953003/diff/20001/content/renderer/raster_worker_pool.cc#newcode147 ...
4 years, 10 months ago (2016-01-26 22:59:02 UTC) #25
reveman
On 2016/01/26 at 22:59:02, aelias wrote: > On 2016/01/26 at 22:39:56, ericrk wrote: > > ...
4 years, 10 months ago (2016-01-29 22:07:43 UTC) #26
reveman
Rebased this on Eric's WorkerPool changes. This should now do what we discussed, never run ...
4 years, 10 months ago (2016-02-12 05:56:44 UTC) #28
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1616953003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1616953003/40001
4 years, 10 months ago (2016-02-12 05:57:02 UTC) #30
commit-bot: I haz the power
Dry run: 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/179392)
4 years, 10 months ago (2016-02-12 09:09:31 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1616953003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1616953003/60001
4 years, 10 months ago (2016-02-12 16:50:43 UTC) #34
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-12 18:25:07 UTC) #36
reveman
aelias, ping for review
4 years, 10 months ago (2016-02-23 16:28:25 UTC) #37
aelias_OOO_until_Jul13
Thanks for following up on my concerns, I appreciate it! https://codereview.chromium.org/1616953003/diff/40001/base/threading/platform_thread_android.cc File base/threading/platform_thread_android.cc (right): https://codereview.chromium.org/1616953003/diff/40001/base/threading/platform_thread_android.cc#newcode30 ...
4 years, 10 months ago (2016-02-23 23:01:41 UTC) #38
reveman
ptal https://codereview.chromium.org/1616953003/diff/40001/base/threading/platform_thread_android.cc File base/threading/platform_thread_android.cc (right): https://codereview.chromium.org/1616953003/diff/40001/base/threading/platform_thread_android.cc#newcode30 base/threading/platform_thread_android.cc:30: // URGENT_DISPLAY (-8). On 2016/02/23 at 23:01:40, aelias ...
4 years, 10 months ago (2016-02-24 17:08:54 UTC) #41
aelias_OOO_until_Jul13
lgtm https://codereview.chromium.org/1616953003/diff/60001/content/browser/gpu/compositor_util.cc File content/browser/gpu/compositor_util.cc (left): https://codereview.chromium.org/1616953003/diff/60001/content/browser/gpu/compositor_util.cc#oldcode195 content/browser/gpu/compositor_util.cc:195: num_raster_threads = 1; On 2016/02/24 at 17:08:54, reveman ...
4 years, 10 months ago (2016-02-24 17:21:41 UTC) #42
reveman
+thakis for base/ and chrome/ +halliwell for chromecast/ ping sievers for content/
4 years, 10 months ago (2016-02-24 17:49:09 UTC) #44
Nico
base, chrome rs-lgtm based on lgtms from android experts upthread :-)
4 years, 10 months ago (2016-02-24 17:50:25 UTC) #45
halliwell
On 2016/02/24 17:50:25, Nico wrote: > base, chrome rs-lgtm based on lgtms from android experts ...
4 years, 10 months ago (2016-02-24 19:40:17 UTC) #46
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1616953003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1616953003/120001
4 years, 10 months ago (2016-02-25 00:11:04 UTC) #48
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/26761) android_chromium_gn_compile_dbg on ...
4 years, 10 months ago (2016-02-25 00:22:19 UTC) #50
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1616953003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1616953003/140001
4 years, 10 months ago (2016-02-25 00:38:56 UTC) #52
no sievers
lgtm
4 years, 10 months ago (2016-02-25 01:16:18 UTC) #53
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/186528)
4 years, 10 months ago (2016-02-25 02:00:51 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1616953003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1616953003/140001
4 years, 10 months ago (2016-02-25 02:50:58 UTC) #58
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 10 months ago (2016-02-25 03:42:53 UTC) #59
commit-bot: I haz the power
4 years, 10 months ago (2016-02-25 03:44:01 UTC) #61
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/56d6a40f9f84140e8a806325beec52bea3f3bd2a
Cr-Commit-Position: refs/heads/master@{#377490}

Powered by Google App Engine
This is Rietveld 408576698