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

Issue 738993002: Re-land chromeos: Add non-extension renderers to the freezer cgroup (Closed)

Created:
6 years, 1 month ago by Chirantan Ekbote
Modified:
6 years, 1 month ago
Reviewers:
Daniel Erat
CC:
chromium-reviews, derat+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org, Sameer Nanda
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Re-land chromeos: Add non-extension renderers to the freezer cgroup In preparation for lucid sleep, we will be putting all chrome renderers that do not host GCM extensions into a special freezer cgroup. All processes in this cgroup will be frozen when the system suspends and will not be thawed until the system has fully resumed. The code to freeze and thaw the cgroup has existed for a while. This code actually starts putting processes into the cgroup. Additionally, to deal with potential races that may occur with other suspend observers that interact with renderers, the RendererFreezer is no longer a PowerManagerClient::Observer but is instead a PowerManagerClient::RenderProcessManagerDelegate. This guarantees that the RendererFreezer's suspend related methods will be called only after all observers have reported ready and before observers are notified that the suspend has completed. Any race conditions that still exist now need to be fixed in the observer that is causing it. BUG=364339 Committed: https://crrev.com/1a085efa9263279b58d6fd06ba991709d598f796 Cr-Commit-Position: refs/heads/master@{#304956}

Patch Set 1 : Reverted CL #

Patch Set 2 : Freeze renderers after all observers have reported ready #

Total comments: 4

Patch Set 3 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+489 lines, -110 lines) Patch
M chrome/browser/chromeos/power/freezer_cgroup_process_manager.h View 2 chunks +18 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/power/freezer_cgroup_process_manager.cc View 4 chunks +34 lines, -13 lines 0 comments Download
M chrome/browser/chromeos/power/renderer_freezer.h View 1 3 chunks +49 lines, -14 lines 0 comments Download
M chrome/browser/chromeos/power/renderer_freezer.cc View 1 3 chunks +124 lines, -28 lines 0 comments Download
M chrome/browser/chromeos/power/renderer_freezer_unittest.cc View 1 8 chunks +205 lines, -49 lines 0 comments Download
M chromeos/dbus/fake_power_manager_client.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M chromeos/dbus/fake_power_manager_client.cc View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M chromeos/dbus/power_manager_client.h View 1 2 2 chunks +22 lines, -0 lines 0 comments Download
M chromeos/dbus/power_manager_client.cc View 1 2 5 chunks +22 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
Chirantan Ekbote
Please take a look.
6 years, 1 month ago (2014-11-19 23:35:10 UTC) #2
Daniel Erat
lgtm thanks for uploading the old version first! https://codereview.chromium.org/738993002/diff/20001/chromeos/dbus/power_manager_client.cc File chromeos/dbus/power_manager_client.cc (right): https://codereview.chromium.org/738993002/diff/20001/chromeos/dbus/power_manager_client.cc#newcode754 chromeos/dbus/power_manager_client.cc:754: base::WeakPtr<RenderProcessManagerDelegate> ...
6 years, 1 month ago (2014-11-19 23:41:26 UTC) #3
Chirantan Ekbote
https://codereview.chromium.org/738993002/diff/20001/chromeos/dbus/power_manager_client.cc File chromeos/dbus/power_manager_client.cc (right): https://codereview.chromium.org/738993002/diff/20001/chromeos/dbus/power_manager_client.cc#newcode754 chromeos/dbus/power_manager_client.cc:754: base::WeakPtr<RenderProcessManagerDelegate> delegate_; On 2014/11/19 23:41:26, Daniel Erat wrote: > ...
6 years, 1 month ago (2014-11-20 00:59:37 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/738993002/40001
6 years, 1 month ago (2014-11-20 01:01:18 UTC) #6
commit-bot: I haz the power
Committed patchset #3 (id:40001)
6 years, 1 month ago (2014-11-20 01:44:16 UTC) #7
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/1a085efa9263279b58d6fd06ba991709d598f796 Cr-Commit-Position: refs/heads/master@{#304956}
6 years, 1 month ago (2014-11-20 01:45:49 UTC) #8
spang
6 years ago (2014-12-01 22:19:08 UTC) #9
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/753313005/ by spang@chromium.org.

The reason for reverting is: Crashes (especially on login)

BUG=364339, 437962.

Powered by Google App Engine
This is Rietveld 408576698