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

Issue 1293873005: Expire resources in ResourcePool after non-use (Closed)

Created:
5 years, 4 months ago by ericrk
Modified:
5 years, 3 months ago
Reviewers:
reveman, piman
CC:
cc-bugs_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@re-use
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Evict resources from resource pool after timeout This change adds a one second expiration to all resources in a ResourcePool. Resource that have not been used within the expiration period are deleted. This eviction compliments (but doesn't replace) the hard-limit based eviction that already occurs. We rely on freeing resources to our hard-limits in TileManager, so we don't want to replace that logic with something less deterministic. BUG=520734, 224475 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/289d1f6ba870b30cbf4a19d114b2ee4fc23f893f Cr-Commit-Position: refs/heads/master@{#345396}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 16

Patch Set 5 : review feedback + unit tests #

Patch Set 6 : Remove kMaxUnusedResourceMemoryUsagePercentage #

Patch Set 7 : Remove no longer needed "acquired_memory_usage" fns #

Total comments: 1

Patch Set 8 : Rebase #

Patch Set 9 : Fix unit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+296 lines, -155 lines) Patch
M cc/base/switches.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M cc/base/switches.cc View 1 2 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download
M cc/resources/resource_pool.h View 1 2 3 4 5 6 4 chunks +50 lines, -21 lines 0 comments Download
M cc/resources/resource_pool.cc View 1 2 3 4 5 6 7 10 chunks +105 lines, -44 lines 0 comments Download
M cc/resources/resource_pool_unittest.cc View 1 2 3 4 5 6 7 8 7 chunks +110 lines, -24 lines 0 comments Download
M cc/test/fake_picture_layer_tiling_client.cc View 1 2 3 4 2 chunks +6 lines, -3 lines 0 comments Download
M cc/test/layer_tree_pixel_resource_test.cc View 1 2 3 4 5 chunks +10 lines, -12 lines 0 comments Download
M cc/tiles/tile_manager.cc View 1 2 3 4 5 6 3 chunks +4 lines, -9 lines 0 comments Download
M cc/tiles/tile_manager_perftest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M cc/tiles/tile_manager_unittest.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 chunks +10 lines, -19 lines 0 comments Download
M cc/trees/layer_tree_settings.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M cc/trees/layer_tree_settings.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/chrome_restart_request.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 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/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -12 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
ericrk
5 years, 4 months ago (2015-08-20 16:30:54 UTC) #2
reveman
https://codereview.chromium.org/1293873005/diff/60001/cc/resources/resource_pool.cc File cc/resources/resource_pool.cc (right): https://codereview.chromium.org/1293873005/diff/60001/cc/resources/resource_pool.cc#newcode19 cc/resources/resource_pool.cc:19: namespace { nit: move this blank line below l.19 ...
5 years, 4 months ago (2015-08-20 21:43:37 UTC) #3
ericrk
+piman for the (pretty straightforward) stuff under content. https://codereview.chromium.org/1293873005/diff/60001/cc/resources/resource_pool.cc File cc/resources/resource_pool.cc (right): https://codereview.chromium.org/1293873005/diff/60001/cc/resources/resource_pool.cc#newcode19 cc/resources/resource_pool.cc:19: namespace ...
5 years, 4 months ago (2015-08-21 12:48:23 UTC) #5
piman
lgtm
5 years, 4 months ago (2015-08-21 16:43:04 UTC) #6
piman
https://codereview.chromium.org/1293873005/diff/120001/cc/resources/resource_pool.cc File cc/resources/resource_pool.cc (right): https://codereview.chromium.org/1293873005/diff/120001/cc/resources/resource_pool.cc#newcode21 cc/resources/resource_pool.cc:21: const int kResourceExpirationDelayMs = 1000; Mmh, time-based processes are ...
5 years, 4 months ago (2015-08-21 16:46:52 UTC) #7
ericrk
On 2015/08/21 at 16:46:52, piman wrote: > https://codereview.chromium.org/1293873005/diff/120001/cc/resources/resource_pool.cc > File cc/resources/resource_pool.cc (right): > > https://codereview.chromium.org/1293873005/diff/120001/cc/resources/resource_pool.cc#newcode21 ...
5 years, 4 months ago (2015-08-24 17:06:35 UTC) #8
reveman
On 2015/08/24 at 17:06:35, ericrk wrote: > On 2015/08/21 at 16:46:52, piman wrote: > > ...
5 years, 4 months ago (2015-08-24 17:28:01 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1293873005/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1293873005/120001
5 years, 4 months ago (2015-08-24 17:33:46 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1293873005/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1293873005/160001
5 years, 3 months ago (2015-08-25 17:25:17 UTC) #15
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 3 months ago (2015-08-25 18:52:39 UTC) #16
commit-bot: I haz the power
5 years, 3 months ago (2015-08-25 18:53:16 UTC) #17
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/289d1f6ba870b30cbf4a19d114b2ee4fc23f893f
Cr-Commit-Position: refs/heads/master@{#345396}

Powered by Google App Engine
This is Rietveld 408576698