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

Issue 12226082: Distribute extra memory evenly among visible tabs (Closed)

Created:
7 years, 10 months ago by ccameron
Modified:
7 years, 10 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, apatrick_chromium
Visibility:
Public.

Description

Distribute extra memory evenly among visible clients After computing all clients' memory budgets, take any extra memory left over and distribute it amongst the visible clients (so that, if their memory requirments suddenly jump, they don't need to wait for a roundtrip to the GPU process to get extra memory). Disallow keeping around backgrounded tabs' contents on Android, to keep the maximum for the main tab. Explicitly limit the memory to use for prepainting by specifying NiceToHave on Mac to avoid performance problems. BUG=175125 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=181950

Patch Set 1 #

Patch Set 2 : Switch branches #

Total comments: 3

Patch Set 3 : Disable background memory on Android #

Patch Set 4 : Add missing pre-patch #

Total comments: 1

Patch Set 5 : Only limit to NTH on Mac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -4 lines) Patch
M content/common/gpu/gpu_memory_manager.h View 3 1 chunk +1 line, -0 lines 0 comments Download
M content/common/gpu/gpu_memory_manager.cc View 1 2 3 4 4 chunks +59 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_memory_manager_unittest.cc View 3 2 chunks +3 lines, -4 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
ccameron
epenner, can you see if this helps out the issue at snowbird.com?
7 years, 10 months ago (2013-02-08 23:53:55 UTC) #1
klobag.chromium
https://codereview.chromium.org/12226082/diff/3001/content/common/gpu/gpu_memory_manager.cc File content/common/gpu/gpu_memory_manager.cc (right): https://codereview.chromium.org/12226082/diff/3001/content/common/gpu/gpu_memory_manager.cc#newcode801 content/common/gpu/gpu_memory_manager.cc:801: for (ClientStateList::const_iterator it = clients_visible_mru_.begin(); Should we expect the ...
7 years, 10 months ago (2013-02-09 04:10:10 UTC) #2
ccameron
https://codereview.chromium.org/12226082/diff/3001/content/common/gpu/gpu_memory_manager.cc File content/common/gpu/gpu_memory_manager.cc (right): https://codereview.chromium.org/12226082/diff/3001/content/common/gpu/gpu_memory_manager.cc#newcode801 content/common/gpu/gpu_memory_manager.cc:801: for (ClientStateList::const_iterator it = clients_visible_mru_.begin(); On 2013/02/09 04:10:10, klobag.chromium ...
7 years, 10 months ago (2013-02-09 04:45:28 UTC) #3
ccameron
Ptal -- this should give a little bit more to the main tab as well. ...
7 years, 10 months ago (2013-02-11 20:55:56 UTC) #4
nduca
https://codereview.chromium.org/12226082/diff/10001/content/common/gpu/gpu_memory_manager.cc File content/common/gpu/gpu_memory_manager.cc (right): https://codereview.chromium.org/12226082/diff/10001/content/common/gpu/gpu_memory_manager.cc#newcode880 content/common/gpu/gpu_memory_manager.cc:880: GpuMemoryAllocationForRenderer::kPriorityCutoffAllowNiceToHave; Why should we bother having an eventually bin, ...
7 years, 10 months ago (2013-02-11 22:11:52 UTC) #5
epenner
FYI, as of sometime this weekend when I tried this patch, Snowbird.com still had 32MB ...
7 years, 10 months ago (2013-02-11 23:36:55 UTC) #6
ccameron
On 2013/02/11 23:36:55, epenner wrote: > FYI, as of sometime this weekend when I tried ...
7 years, 10 months ago (2013-02-11 23:39:38 UTC) #7
epenner
I only had one tab in chrome at that time. If I get a chance ...
7 years, 10 months ago (2013-02-11 23:56:06 UTC) #8
ccameron
Updated with changes to NTH bin. nduca and I discussed making a change to not ...
7 years, 10 months ago (2013-02-12 01:41:13 UTC) #9
nduca
LGTM
7 years, 10 months ago (2013-02-12 01:48:52 UTC) #10
ccameron
Adding piman for OWNER
7 years, 10 months ago (2013-02-12 01:52:58 UTC) #11
piman
OWNERs rubber-stamp LGTM. Note: you're potentially asking for trouble lumping in a Mac change and ...
7 years, 10 months ago (2013-02-12 01:59:22 UTC) #12
ccameron
Thanks!! Good point about Android v Mac. In this particular case, this is taking behavior ...
7 years, 10 months ago (2013-02-12 02:03:20 UTC) #13
nduca
Trouble is megapatches middle name. It should be fine, merging wise.
7 years, 10 months ago (2013-02-12 02:05:14 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/12226082/14002
7 years, 10 months ago (2013-02-12 02:09:42 UTC) #15
epenner
On 2013/02/12 02:09:42, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
7 years, 10 months ago (2013-02-12 02:20:03 UTC) #16
ccameron
On 2013/02/12 02:20:03, epenner wrote: > On 2013/02/12 02:09:42, I haz the power (commit-bot) wrote: ...
7 years, 10 months ago (2013-02-12 02:21:38 UTC) #17
epenner
On 2013/02/12 02:21:38, ccameron1 wrote: > On 2013/02/12 02:20:03, epenner wrote: > > On 2013/02/12 ...
7 years, 10 months ago (2013-02-12 02:26:12 UTC) #18
epenner
Rather, I put debug output in the bug.
7 years, 10 months ago (2013-02-12 02:26:54 UTC) #19
klobag.chromium
On 2013/02/12 02:26:54, epenner wrote: > Rather, I put debug output in the bug. As ...
7 years, 10 months ago (2013-02-12 02:51:55 UTC) #20
commit-bot: I haz the power
7 years, 10 months ago (2013-02-12 03:12:22 UTC) #21
Retried try job too often on mac_rel for step(s) browser_tests,
interactive_ui_tests
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&nu...

Powered by Google App Engine
This is Rietveld 408576698