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

Issue 2624063002: Stop suspending renderer and changing purge interval to 20min (Closed)

Created:
3 years, 11 months ago by tasak
Modified:
3 years, 11 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, jam, darin-cc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Stop suspending renderer and changing purge interval to 20min - Since SuspendRenderer sometimes causes very long style recalc and layout (c.f. youtube.com/), disable tab suspension and use default background task throttle. - also changed time-to-resuspension to 20min. This means, purge background tab's memory every 20min(to be precise 20min+10sec). - the original document about purge+suspend is https://docs.google.com/document/d/1EgLimgxWK5DGhptnNVbEGSvVn6Q609ZJaBkLjEPRJvI/edit?usp=sharing - the difference between the original purge+suspend and purge+suspend with this patch is https://docs.google.com/document/d/1qIrXsi9BuoAgNu6lVGTcGhbAm2TLPRb_JZ0OhynLjR0/edit?usp=sharing BUG=675735, 607077 Review-Url: https://codereview.chromium.org/2624063002 Cr-Commit-Position: refs/heads/master@{#444209} Committed: https://chromium.googlesource.com/chromium/src/+/d224a9dddebc82b819515e4d9c35737c7a92e9d0

Patch Set 1 #

Patch Set 2 : Purge memory every 20min. #

Patch Set 3 : Fixed unit_tests failure. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -30 lines) Patch
M chrome/browser/memory/tab_manager.cc View 1 1 chunk +1 line, -1 line 3 comments Download
M chrome/browser/memory/tab_manager_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_thread_impl.h View 1 chunk +0 lines, -6 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 3 chunks +3 lines, -22 lines 0 comments Download

Messages

Total messages: 45 (30 generated)
tasak
Would you review this CL?
3 years, 11 months ago (2017-01-11 05:05:38 UTC) #8
bashi
Thanks for doing this! The subject sounds a bit strange to me because we already ...
3 years, 11 months ago (2017-01-13 02:11:43 UTC) #20
haraken
LGTM with bashi-san's comments addressed in a follow-up.
3 years, 11 months ago (2017-01-13 02:23:25 UTC) #21
tasak
Thank you for review. https://codereview.chromium.org/2624063002/diff/40001/chrome/browser/memory/tab_manager.cc File chrome/browser/memory/tab_manager.cc (right): https://codereview.chromium.org/2624063002/diff/40001/chrome/browser/memory/tab_manager.cc#newcode89 chrome/browser/memory/tab_manager.cc:89: base::TimeDelta::FromSeconds(1200); On 2017/01/13 02:11:42, bashi ...
3 years, 11 months ago (2017-01-13 03:27:04 UTC) #25
bashi
non-owner lgtm https://codereview.chromium.org/2624063002/diff/40001/chrome/browser/memory/tab_manager.cc File chrome/browser/memory/tab_manager.cc (right): https://codereview.chromium.org/2624063002/diff/40001/chrome/browser/memory/tab_manager.cc#newcode89 chrome/browser/memory/tab_manager.cc:89: base::TimeDelta::FromSeconds(1200); On 2017/01/13 03:27:04, tasak wrote: > ...
3 years, 11 months ago (2017-01-13 04:36:23 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2624063002/40001
3 years, 11 months ago (2017-01-13 09:40:59 UTC) #28
tasak
avi, would you review this CL? I need content/ owner's lgtm.
3 years, 11 months ago (2017-01-13 09:44:19 UTC) #31
Avi (use Gerrit)
lgtm stamp
3 years, 11 months ago (2017-01-13 16:48:55 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2624063002/40001
3 years, 11 months ago (2017-01-14 01:04:45 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/342216)
3 years, 11 months ago (2017-01-14 01:12:58 UTC) #36
haraken
chrisha@: PTAL at chrome/browser/memory ?
3 years, 11 months ago (2017-01-14 02:29:33 UTC) #38
chrisha
So we've completely given up on suspend? No anticipated ways to work around the drawbacks? ...
3 years, 11 months ago (2017-01-17 18:19:22 UTC) #39
haraken
On 2017/01/17 18:19:22, chrisha (slow) wrote: > So we've completely given up on suspend? No ...
3 years, 11 months ago (2017-01-17 23:41:01 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2624063002/40001
3 years, 11 months ago (2017-01-17 23:41:59 UTC) #42
commit-bot: I haz the power
3 years, 11 months ago (2017-01-18 00:45:23 UTC) #45
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/d224a9dddebc82b819515e4d9c35...

Powered by Google App Engine
This is Rietveld 408576698