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

Issue 17355004: Apply artificial memory pressure when backgrounded. (Closed)

Created:
7 years, 6 months ago by Ian Vollick
Modified:
7 years, 6 months ago
Reviewers:
Avi (use Gerrit), nduca
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, shatch
Visibility:
Public.

Description

Apply artificial memory pressure when backgrounded. In https://codereview.chromium.org/17106004/, I am adding discardable memory emulation for platforms that do not support it natively. The emulation works by listening for memory pressure notifications and purging memory in response. But we don't yet provide memory pressure notifications on any platform other than android. In future, we'll periodically poll system memory usage, and send memory pressure notifications as appropriate, but as a first step, we will artificially apply memory pressure when tabs are backgrounded. BUG=237681 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207947

Patch Set 1 #

Total comments: 1

Patch Set 2 : . #

Total comments: 5

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -0 lines) Patch
M content/content_renderer.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
A content/renderer/render_process_visibility_manager.h View 1 2 1 chunk +32 lines, -0 lines 0 comments Download
A content/renderer/render_process_visibility_manager.cc View 1 2 3 4 1 chunk +37 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 4 chunks +11 lines, -0 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Ian Vollick
This is the non-base bit. PTAL.
7 years, 6 months ago (2013-06-20 14:38:38 UTC) #1
nduca
https://codereview.chromium.org/17355004/diff/1/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/17355004/diff/1/content/renderer/render_thread_impl.cc#newcode602 content/renderer/render_thread_impl.cc:602: #if !defined(DISCARDABLE_MEMORY_SUPPORTED_NATIVELY) i think we should always call the ...
7 years, 6 months ago (2013-06-20 19:56:45 UTC) #2
nduca
lgtm otherwise
7 years, 6 months ago (2013-06-20 19:56:50 UTC) #3
Ian Vollick
+avi for OWNERS +shatch for FYI On 2013/06/20 19:56:45, nduca wrote: > https://codereview.chromium.org/17355004/diff/1/content/renderer/render_thread_impl.cc > File ...
7 years, 6 months ago (2013-06-20 20:18:38 UTC) #4
Avi (use Gerrit)
https://codereview.chromium.org/17355004/diff/6001/content/renderer/render_process_visibility_manager.cc File content/renderer/render_process_visibility_manager.cc (right): https://codereview.chromium.org/17355004/diff/6001/content/renderer/render_process_visibility_manager.cc#newcode1 content/renderer/render_process_visibility_manager.cc:1: // Copyright (c) 2012 The Chromium Authors. All rights ...
7 years, 6 months ago (2013-06-20 20:34:27 UTC) #5
Ian Vollick
On 2013/06/20 20:34:27, Avi wrote: > https://codereview.chromium.org/17355004/diff/6001/content/renderer/render_process_visibility_manager.cc > File content/renderer/render_process_visibility_manager.cc (right): > > https://codereview.chromium.org/17355004/diff/6001/content/renderer/render_process_visibility_manager.cc#newcode1 > ...
7 years, 6 months ago (2013-06-20 20:49:57 UTC) #6
Ian Vollick
> We're doing this work even when we don't need to emulate? :( Also, as ...
7 years, 6 months ago (2013-06-20 20:51:17 UTC) #7
Avi (use Gerrit)
On 2013/06/20 20:51:17, vollick wrote: > > We're doing this work even when we don't ...
7 years, 6 months ago (2013-06-20 20:54:59 UTC) #8
Ian Vollick
On 2013/06/20 20:54:59, Avi wrote: > On 2013/06/20 20:51:17, vollick wrote: > > > We're ...
7 years, 6 months ago (2013-06-21 13:36:20 UTC) #9
Avi (use Gerrit)
In any case, you have an owners LG from me when you get your expert's ...
7 years, 6 months ago (2013-06-21 14:38:08 UTC) #10
nduca
lgtm
7 years, 6 months ago (2013-06-21 17:34:16 UTC) #11
nduca
oh wait, no Avi you're being sillly. Make the call. This is not a critical ...
7 years, 6 months ago (2013-06-21 17:35:17 UTC) #12
nduca
And in case you want some context: when a RendeerWidget is restored, the first thing ...
7 years, 6 months ago (2013-06-21 17:37:28 UTC) #13
Avi (use Gerrit)
On 2013/06/21 17:37:28, nduca wrote: > And in case you want some context: when a ...
7 years, 6 months ago (2013-06-21 17:46:54 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vollick@chromium.org/17355004/32001
7 years, 6 months ago (2013-06-21 17:53:21 UTC) #15
commit-bot: I haz the power
7 years, 6 months ago (2013-06-21 22:57:06 UTC) #16
Message was sent while issue was closed.
Change committed as 207947

Powered by Google App Engine
This is Rietveld 408576698