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

Issue 1143473002: Re-land: content: Use NumberOfProcessors() / 2 raster threads. (Closed)

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

Description

Re-land: content: Use NumberOfProcessors() / 2 raster threads. 4 raster threads improve performance on 8 core machines. 8 core machines might not be a priority but it seems like an unnecessary limitation to have. BUG= Committed: https://crrev.com/fb8bb92ed3f577986d513789ced910417dc04326 Cr-Commit-Position: refs/heads/master@{#330555}

Patch Set 1 #

Total comments: 4

Patch Set 2 : cleanup and reduce kMaxRasterThreads to 16 #

Total comments: 2

Patch Set 3 : fix async_uploads_is_used #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -37 lines) Patch
M content/browser/gpu/compositor_util.h View 1 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/gpu/compositor_util.cc View 1 2 5 chunks +26 lines, -33 lines 1 comment Download

Messages

Total messages: 34 (9 generated)
reveman
5 years, 7 months ago (2015-05-13 19:15:48 UTC) #2
danakj
https://codereview.chromium.org/1143473002/diff/1/content/browser/gpu/compositor_util.cc File content/browser/gpu/compositor_util.cc (right): https://codereview.chromium.org/1143473002/diff/1/content/browser/gpu/compositor_util.cc#newcode36 content/browser/gpu/compositor_util.cc:36: const int kMaxRasterThreads = 64; does 64 threads really ...
5 years, 7 months ago (2015-05-13 20:01:23 UTC) #3
enne (OOO)
Would it make sense to clamp this at like 4? At what point should the ...
5 years, 7 months ago (2015-05-13 20:01:36 UTC) #4
reveman
https://codereview.chromium.org/1143473002/diff/1/content/browser/gpu/compositor_util.cc File content/browser/gpu/compositor_util.cc (right): https://codereview.chromium.org/1143473002/diff/1/content/browser/gpu/compositor_util.cc#newcode36 content/browser/gpu/compositor_util.cc:36: const int kMaxRasterThreads = 64; On 2015/05/13 20:01:23, danakj ...
5 years, 7 months ago (2015-05-13 20:24:35 UTC) #5
reveman
reduced max worker threads to 16 but I'm happy to reduce it more if you ...
5 years, 7 months ago (2015-05-14 15:51:39 UTC) #6
enne (OOO)
Ok, lgtm. If 16 is too many in the future, we can reduce it then.
5 years, 7 months ago (2015-05-14 17:19:13 UTC) #7
danakj
LGTM
5 years, 7 months ago (2015-05-14 17:20:24 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1143473002/20001
5 years, 7 months ago (2015-05-14 18:23:25 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/63674)
5 years, 7 months ago (2015-05-14 18:33:08 UTC) #12
reveman
+piman for owner review
5 years, 7 months ago (2015-05-14 18:36:03 UTC) #14
reveman
ping for owner review
5 years, 7 months ago (2015-05-18 19:31:54 UTC) #15
piman
lgtm
5 years, 7 months ago (2015-05-18 19:39:52 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1143473002/20001
5 years, 7 months ago (2015-05-18 19:53:44 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 7 months ago (2015-05-18 21:23:17 UTC) #19
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/4a0177a1dba8197f61021ff3b4f9426e45faaa62 Cr-Commit-Position: refs/heads/master@{#330427}
5 years, 7 months ago (2015-05-18 22:43:50 UTC) #20
vmpstr
https://codereview.chromium.org/1143473002/diff/20001/content/browser/gpu/compositor_util.cc File content/browser/gpu/compositor_util.cc (right): https://codereview.chromium.org/1143473002/diff/20001/content/browser/gpu/compositor_util.cc#newcode220 content/browser/gpu/compositor_util.cc:220: IsZeroCopyUploadEnabled() || IsOneCopyUploadEnabled(); Is this condition supposed to be ...
5 years, 7 months ago (2015-05-19 16:37:04 UTC) #22
reveman
https://codereview.chromium.org/1143473002/diff/20001/content/browser/gpu/compositor_util.cc File content/browser/gpu/compositor_util.cc (right): https://codereview.chromium.org/1143473002/diff/20001/content/browser/gpu/compositor_util.cc#newcode220 content/browser/gpu/compositor_util.cc:220: IsZeroCopyUploadEnabled() || IsOneCopyUploadEnabled(); On 2015/05/19 16:37:04, vmpstr wrote: > ...
5 years, 7 months ago (2015-05-19 16:40:31 UTC) #23
reveman
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/1136633006/ by reveman@chromium.org. ...
5 years, 7 months ago (2015-05-19 16:41:54 UTC) #24
vmpstr
lgtm, thanks!
5 years, 7 months ago (2015-05-19 16:52:44 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1143473002/40001
5 years, 7 months ago (2015-05-19 16:55:00 UTC) #28
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 7 months ago (2015-05-19 17:58:26 UTC) #29
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/fb8bb92ed3f577986d513789ced910417dc04326 Cr-Commit-Position: refs/heads/master@{#330555}
5 years, 7 months ago (2015-05-19 18:00:40 UTC) #30
jdduke (slow)
https://codereview.chromium.org/1143473002/diff/40001/content/browser/gpu/compositor_util.cc File content/browser/gpu/compositor_util.cc (right): https://codereview.chromium.org/1143473002/diff/40001/content/browser/gpu/compositor_util.cc#newcode214 content/browser/gpu/compositor_util.cc:214: int num_raster_threads = base::SysInfo::NumberOfProcessors() / 2; What does this ...
5 years, 6 months ago (2015-05-28 23:23:31 UTC) #32
reveman
On 2015/05/28 at 23:23:31, jdduke wrote: > https://codereview.chromium.org/1143473002/diff/40001/content/browser/gpu/compositor_util.cc > File content/browser/gpu/compositor_util.cc (right): > > https://codereview.chromium.org/1143473002/diff/40001/content/browser/gpu/compositor_util.cc#newcode214 ...
5 years, 6 months ago (2015-05-29 00:23:08 UTC) #33
vmiura
5 years, 6 months ago (2015-05-29 01:49:45 UTC) #34
Message was sent while issue was closed.
On 2015/05/29 00:23:08, reveman wrote:
> On 2015/05/28 at 23:23:31, jdduke wrote:
> >
>
https://codereview.chromium.org/1143473002/diff/40001/content/browser/gpu/com...
> > File content/browser/gpu/compositor_util.cc (right):
> > 
> >
>
https://codereview.chromium.org/1143473002/diff/40001/content/browser/gpu/com...
> > content/browser/gpu/compositor_util.cc:214: int num_raster_threads =
> base::SysInfo::NumberOfProcessors() / 2;
> > What does this return on octacore big/little ARM devices? We really want it
to
> be "4", but I fear this returns "8".
> > 
> > Android has a special API to get the CPU count, and I believe it returns 4
for
> such devices, but it looks like we're using the posix
> "sysconf(_SC_NPROCESSORS_CONF)"... wonder if we should switch the Android
> implementation for NumberOfProcessors() to use android_getCpuCount() from the
> NDK.
> 
> Using android_getCpuCount() to implement NumberOfProcessors() on Android sgtm
if
> that's the preferred way to get the cpu count.

android_getCpuCount() also returns 8 on the S6 unfortunately.

We may need to special case the formula for Android.

Powered by Google App Engine
This is Rietveld 408576698