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

Issue 522023002: cc: Decrease transfer buffer memory limit to a single frame of uploads. (Closed)

Created:
6 years, 3 months ago by danakj
Modified:
6 years, 3 months ago
Reviewers:
reveman
CC:
chromium-reviews, cc-bugs_chromium.org, enne (OOO), piman, vmpstr
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

cc: Decrease transfer buffer memory limit to a single frame of uploads. This memory limit is a lowest-common-denominator type value that should work for more-or-less all platforms. Currently this value causes impl-side painting to increase the size of the renderer process resident memory, which is causing memory regressions on the perf bots. But, having enough memory for 2 frames seems excessive as the baseline since in the common case we need to upload resources for the next compositor deadline that will be presented at the next vsync. So, remove the 2x multiplier from this constant value. R=reveman BUG=407193 Committed: https://crrev.com/e6a236bc7aa96ba49a121f9c057d93bfc28cd235 Cr-Commit-Position: refs/heads/master@{#293001}

Patch Set 1 #

Total comments: 8

Patch Set 2 : memlimit: fixes #

Patch Set 3 : memlimit: commentassumption #

Total comments: 1

Patch Set 4 : memlimit: commentfix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -10 lines) Patch
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 chunks +15 lines, -10 lines 0 comments Download

Messages

Total messages: 12 (1 generated)
danakj
6 years, 3 months ago (2014-08-30 00:27:37 UTC) #1
danakj
https://codereview.chromium.org/522023002/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (left): https://codereview.chromium.org/522023002/diff/1/cc/trees/layer_tree_host_impl.cc#oldcode2069 cc/trees/layer_tree_host_impl.cc:2069: transfer_buffer_memory_limit_ = this is also set in CreateAndSetTileManager() which ...
6 years, 3 months ago (2014-08-30 00:29:00 UTC) #2
reveman
lgtm with a few nits https://codereview.chromium.org/522023002/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/522023002/diff/1/cc/trees/layer_tree_host_impl.cc#newcode106 cc/trees/layer_tree_host_impl.cc:106: // the next frame ...
6 years, 3 months ago (2014-08-30 00:38:39 UTC) #3
danakj
https://codereview.chromium.org/522023002/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/522023002/diff/1/cc/trees/layer_tree_host_impl.cc#newcode109 cc/trees/layer_tree_host_impl.cc:109: ms_per_frame * kMaxBytesUploadedPerMs; On 2014/08/30 00:38:39, reveman wrote: > ...
6 years, 3 months ago (2014-08-30 00:42:32 UTC) #4
danakj
https://codereview.chromium.org/522023002/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/522023002/diff/1/cc/trees/layer_tree_host_impl.cc#newcode111 cc/trees/layer_tree_host_impl.cc:111: // The context may request a higher limit based ...
6 years, 3 months ago (2014-08-30 00:44:28 UTC) #5
danakj
https://codereview.chromium.org/522023002/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/522023002/diff/1/cc/trees/layer_tree_host_impl.cc#newcode106 cc/trees/layer_tree_host_impl.cc:106: // the next frame deadline. On 2014/08/30 00:38:39, reveman ...
6 years, 3 months ago (2014-08-30 00:51:38 UTC) #6
reveman
https://codereview.chromium.org/522023002/diff/40001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/522023002/diff/40001/cc/trees/layer_tree_host_impl.cc#newcode110 cc/trees/layer_tree_host_impl.cc:110: // browser, so there's no benefit to starting it ...
6 years, 3 months ago (2014-08-30 02:00:56 UTC) #7
danakj
Ok I fixed up the comment to talk about latency til the GPU process picks ...
6 years, 3 months ago (2014-09-02 20:08:21 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/522023002/60001
6 years, 3 months ago (2014-09-02 20:08:49 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:60001) as 8050665546f1f97d494e3dde6b4d13f054f36d00
6 years, 3 months ago (2014-09-02 21:43:23 UTC) #11
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:20:58 UTC) #12
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e6a236bc7aa96ba49a121f9c057d93bfc28cd235
Cr-Commit-Position: refs/heads/master@{#293001}

Powered by Google App Engine
This is Rietveld 408576698