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

Issue 1359873002: Revert of Architecture for cross-process memory notification suppressing (Closed)

Created:
5 years, 3 months ago by huangs
Modified:
5 years, 3 months ago
CC:
chromium-reviews, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, yurys, darin-cc_chromium.org, devtools-reviews_chromium.org, pfeldman, rmcilroy
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of Architecture for cross-process memory notification suppressing (patchset #11 id:240001 of https://codereview.chromium.org/1332583002/ ) Reason for revert: This seems to cause failure in Cast Linux: content_browsertests: MemoryPressureControllerBrowserTest.SetPressureNotificationsSuppressedInAllProcesses Original issue's description: > Architecture for cross-process memory notification suppressing > > This patch adds IPC architecture for suppressing memory pressure > notifications in all processes: > > BROWSER PROCESS CHILD PROCESSES > > MemoryPressureListener:: MemoryPressureListener:: > SetNotificationsSuppressed SetNotificationsSuppressed > (existing static method*) (existing static method*) > ^ ^ > | | > +--------------------------+ | > | MemoryPressureController | | > +..> | (singleton) | | > : +--------------------------+ | > : | | > : V | > : +--------------------------+ +--------------------------+ > : | MemoryMessageFilter | <===> | ChildMemoryMessageFilter | > : | (per child process) | IPC | (singleton) | > : +--------------------------+ +--------------------------+ > : > : > +.. Memory.setPressureNotificationsSuppressed > (proposed DevTools API**) > > *) The required functionality for individual processes was added in: > https://codereview.chromium.org/1312163003. > **) The new DevTools API will be added in the following 3-sided patch: > https://codereview.chromium.org/1336363002, > https://codereview.chromium.org/1311343007, and > https://codereview.chromium.org/1342833004. > > This patch adds new message filters on both sides (MemoryMessageFilter > in the browser process and ChildMemoryMessageFilter in the child > process) because we anticipate more functionality to be added to > MemoryPressureController in the near future (methods for simulating > memory pressure signals and, more importantly, propagating memory > pressure signals to all processes on desktop Chrome). Encapsulating the > relevant IPC communication in dedicated message filters is arguably > better than keeping augmenting (and having duplicate code in) > BrowserChildProcessHostImpl, RenderProcessHostImpl, and > ChildThreadImpl. > > This patch represents the second step towards implementing a DevTools > API for suppressing and simulating memory pressure signals in Chrome. > The main use case for this feature is to enforce consistent conditions > across memory measurements. See https://goo.gl/cZFdH3 for more details. > > BUG=516776 > > Committed: https://crrev.com/0b119f3392d6c6169bbb792347a04f34ce649156 > Cr-Commit-Position: refs/heads/master@{#350169} TBR=skyostil@chromium.org,primiano@chromium.org,nasko@chromium.org,chrisha@chromium.org,petrcermak@chromium.org NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=516776 Committed: https://crrev.com/baa42d336b9a858a1180be0db455a6874761e418 Cr-Commit-Position: refs/heads/master@{#350175}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -423 lines) Patch
M content/browser/browser_child_process_host_impl.cc View 2 chunks +0 lines, -2 lines 0 comments Download
D content/browser/memory/memory_message_filter.h View 1 chunk +0 lines, -35 lines 0 comments Download
D content/browser/memory/memory_message_filter.cc View 1 chunk +0 lines, -34 lines 0 comments Download
D content/browser/memory/memory_pressure_controller.h View 1 chunk +0 lines, -48 lines 0 comments Download
D content/browser/memory/memory_pressure_controller.cc View 1 chunk +0 lines, -71 lines 0 comments Download
D content/browser/memory/memory_pressure_controller_browsertest.cc View 1 chunk +0 lines, -131 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M content/child/child_thread_impl.cc View 2 chunks +2 lines, -4 lines 0 comments Download
D content/child/memory/child_memory_message_filter.h View 1 chunk +0 lines, -32 lines 0 comments Download
D content/child/memory/child_memory_message_filter.cc View 1 chunk +0 lines, -32 lines 0 comments Download
M content/common/content_message_generator.h View 1 chunk +0 lines, -1 line 0 comments Download
D content/common/memory_messages.h View 1 chunk +0 lines, -22 lines 0 comments Download
M content/content_browser.gypi View 1 chunk +0 lines, -4 lines 0 comments Download
M content/content_child.gypi View 1 chunk +0 lines, -2 lines 0 comments Download
M content/content_common.gypi View 1 chunk +0 lines, -1 line 0 comments Download
M content/content_tests.gypi View 1 chunk +0 lines, -1 line 0 comments Download
M ipc/ipc_message_start.h View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 8 (1 generated)
huangs
Created Revert of Architecture for cross-process memory notification suppressing
5 years, 3 months ago (2015-09-22 16:54:00 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1359873002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1359873002/1
5 years, 3 months ago (2015-09-22 16:59:07 UTC) #3
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 3 months ago (2015-09-22 17:00:01 UTC) #4
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/baa42d336b9a858a1180be0db455a6874761e418 Cr-Commit-Position: refs/heads/master@{#350175}
5 years, 3 months ago (2015-09-22 17:00:39 UTC) #5
Primiano Tucci (use gerrit)
On 2015/09/22 17:00:39, commit-bot: I haz the power wrote: > Patchset 1 (id:??) landed as ...
5 years, 3 months ago (2015-09-22 17:01:55 UTC) #6
rnephew (Reviews Here)
On 2015/09/22 17:01:55, Primiano Tucci wrote: > On 2015/09/22 17:00:39, commit-bot: I haz the power ...
5 years, 3 months ago (2015-09-22 17:09:17 UTC) #7
rnephew (Reviews Here)
5 years, 3 months ago (2015-09-22 18:09:11 UTC) #8
Message was sent while issue was closed.
On 2015/09/22 17:09:17, rnephew1 wrote:
> On 2015/09/22 17:01:55, Primiano Tucci wrote:
> > On 2015/09/22 17:00:39, commit-bot: I haz the power wrote:
> > > Patchset 1 (id:??) landed as
> > > https://crrev.com/baa42d336b9a858a1180be0db455a6874761e418
> > > Cr-Commit-Position: refs/heads/master@{#350175}
> > 
> > As per
> http://www.chromium.org/developers/tree-sheriffs/sheriff-details-chromium
> > would have been nice to get a link to the bot where the failure was
> experienced.
> > Cast Linux: content_browsertests doesn't give me any clue whether that's a
> > trybot, a main waterfall bot, a FYI bot and which one in particular.
> 
> http://build.chromium.org/p/chromium.linux/builders/Cast%20Linux?numbuilds=100

More failures showing up:
http://build.chromium.org/p/chromium.memory/builders/Linux%20Chromium%20OS%20...
http://build.chromium.org/p/chromium.memory/builders/Mac%20ASan%2064%20Tests%...
http://build.chromium.org/p/chromium.win/builders/Win%207%20Tests%20x64%20%28...
http://build.chromium.org/p/chromium.win/builders/Win7%20Tests%20%281%29/buil...

Powered by Google App Engine
This is Rietveld 408576698