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

Issue 2483003004: Make purge-and-suspend-time finch experiment parameter (Closed)

Created:
4 years, 1 month ago by tasak
Modified:
3 years, 10 months ago
Reviewers:
haraken, chrisha, Wez
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make purge-and-suspend-time finch experiment parameter. - Replace command_line.HasSwitch with variations::GetVariationParamValue. - Since Purge+Suspend is now controlled by base::Feature::kPurgeAndSuspend (c.f. @430225), this change doesn't enable Purge+Suspend by default. - intent-to-implement-and-ship of background renderer's purge+suspend is https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/DK189tnM8l4 - one of the documents attached in the above intent is https://docs.google.com/document/d/1EgLimgxWK5DGhptnNVbEGSvVn6Q609ZJaBkLjEPRJvI/edit?usp=sharing BUG=607077 Committed: https://crrev.com/b6edd99c51d17c7a8f058f84acefcc7b935dd893 Cr-Commit-Position: refs/heads/master@{#435858}

Patch Set 1 #

Patch Set 2 : Use GetVariationParamValue #

Patch Set 3 : Rebaselined #

Total comments: 2

Patch Set 4 : Move GetVariationParamValue to initialization phase #

Total comments: 9

Patch Set 5 : Add comment about purge-and-suspend-time #

Patch Set 6 : Make purge-and-suspend-time=0 immediately purge+suspend. Instead default value is 30min. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -22 lines) Patch
M chrome/browser/memory/tab_manager.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/memory/tab_manager.cc View 1 2 3 4 5 3 chunks +13 lines, -15 lines 1 comment Download
M chrome/common/chrome_switches.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 65 (38 generated)
tasak
Would you review this CL?
4 years, 1 month ago (2016-11-08 07:34:31 UTC) #4
haraken
LGTM
4 years, 1 month ago (2016-11-08 08:37:54 UTC) #7
chrisha
Do we want to make the purge and suspend time a Finch parameter? That way ...
4 years, 1 month ago (2016-11-09 21:41:34 UTC) #8
tasak
On 2016/11/09 21:41:34, chrisha (slow) wrote: > Do we want to make the purge and ...
4 years, 1 month ago (2016-11-10 05:35:13 UTC) #9
chrisha
Configuring it via Finch parameter means we can change the value of the parameter remotely ...
4 years, 1 month ago (2016-11-10 12:53:12 UTC) #10
tasak
On 2016/11/10 12:53:12, chrisha (slow) wrote: > Configuring it via Finch parameter means we can ...
4 years, 1 month ago (2016-11-16 19:07:19 UTC) #11
tasak
On 2016/11/10 12:53:12, chrisha (slow) wrote: > Configuring it via Finch parameter means we can ...
4 years, 1 month ago (2016-11-16 19:07:22 UTC) #12
tasak
On 2016/11/16 19:07:22, tasak wrote: > On 2016/11/10 12:53:12, chrisha (slow) wrote: > > Configuring ...
4 years, 1 month ago (2016-11-16 19:34:16 UTC) #13
chrisha
You can write the code to grab the parameter even if no experiment is active ...
4 years, 1 month ago (2016-11-17 23:17:21 UTC) #14
tasak
Thank you. I replaced command_line.hasSwitch with GetVariationParamValue. On 2016/11/17 23:17:21, chrisha (slow) wrote: > You ...
4 years, 1 month ago (2016-11-18 17:04:57 UTC) #26
tasak
chrisha, would you review the newest patch?
4 years, 1 month ago (2016-11-22 05:11:17 UTC) #31
chrisha
https://codereview.chromium.org/2483003004/diff/80001/chrome/browser/memory/tab_manager.cc File chrome/browser/memory/tab_manager.cc (right): https://codereview.chromium.org/2483003004/diff/80001/chrome/browser/memory/tab_manager.cc#newcode734 chrome/browser/memory/tab_manager.cc:734: std::string purge_and_suspend_time = variations::GetVariationParamValue( Maybe do this once in ...
4 years ago (2016-11-23 19:38:10 UTC) #32
tasak
Thank you for review. I updated the fixed CL. https://codereview.chromium.org/2483003004/diff/80001/chrome/browser/memory/tab_manager.cc File chrome/browser/memory/tab_manager.cc (right): https://codereview.chromium.org/2483003004/diff/80001/chrome/browser/memory/tab_manager.cc#newcode734 chrome/browser/memory/tab_manager.cc:734: ...
4 years ago (2016-11-24 02:16:20 UTC) #37
chrisha
https://codereview.chromium.org/2483003004/diff/100001/chrome/browser/memory/tab_manager.cc File chrome/browser/memory/tab_manager.cc (right): https://codereview.chromium.org/2483003004/diff/100001/chrome/browser/memory/tab_manager.cc#newcode224 chrome/browser/memory/tab_manager.cc:224: std::string purge_and_suspend_time = variations::GetVariationParamValue( Should we have a default ...
4 years ago (2016-11-24 17:13:09 UTC) #40
haraken
(Let's aim at addressing all review comments in the next cycle!)
4 years ago (2016-11-25 00:54:25 UTC) #41
tasak
https://codereview.chromium.org/2483003004/diff/100001/chrome/browser/memory/tab_manager.cc File chrome/browser/memory/tab_manager.cc (right): https://codereview.chromium.org/2483003004/diff/100001/chrome/browser/memory/tab_manager.cc#newcode224 chrome/browser/memory/tab_manager.cc:224: std::string purge_and_suspend_time = variations::GetVariationParamValue( On 2016/11/24 17:13:09, chrisha (slow) ...
4 years ago (2016-11-25 01:15:24 UTC) #42
tasak
https://codereview.chromium.org/2483003004/diff/100001/chrome/browser/memory/tab_manager.cc File chrome/browser/memory/tab_manager.cc (right): https://codereview.chromium.org/2483003004/diff/100001/chrome/browser/memory/tab_manager.cc#newcode745 chrome/browser/memory/tab_manager.cc:745: if (time_to_first_suspension_.InSeconds() <= 0) On 2016/11/25 01:15:24, tasak wrote: ...
4 years ago (2016-11-25 01:19:44 UTC) #43
tasak
Friendly ping.
4 years ago (2016-11-29 02:32:55 UTC) #44
chrisha
lgtm, modulo some more comments please https://codereview.chromium.org/2483003004/diff/100001/chrome/browser/memory/tab_manager.cc File chrome/browser/memory/tab_manager.cc (right): https://codereview.chromium.org/2483003004/diff/100001/chrome/browser/memory/tab_manager.cc#newcode224 chrome/browser/memory/tab_manager.cc:224: std::string purge_and_suspend_time = ...
4 years ago (2016-11-29 14:13:58 UTC) #45
tasak
Thank you for review. On 2016/11/29 14:13:58, chrisha (slow) wrote: > lgtm, modulo some more ...
4 years ago (2016-12-02 01:54:23 UTC) #46
tasak
https://codereview.chromium.org/2483003004/diff/100001/chrome/browser/memory/tab_manager.cc File chrome/browser/memory/tab_manager.cc (right): https://codereview.chromium.org/2483003004/diff/100001/chrome/browser/memory/tab_manager.cc#newcode224 chrome/browser/memory/tab_manager.cc:224: std::string purge_and_suspend_time = variations::GetVariationParamValue( On 2016/11/29 14:13:57, chrisha (slow) ...
4 years ago (2016-12-02 02:49:24 UTC) #49
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/2483003004/140001
4 years ago (2016-12-02 04:37:43 UTC) #56
commit-bot: I haz the power
Committed patchset #6 (id:140001)
4 years ago (2016-12-02 04:42:40 UTC) #59
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/b6edd99c51d17c7a8f058f84acefcc7b935dd893 Cr-Commit-Position: refs/heads/master@{#435858}
4 years ago (2016-12-02 04:45:09 UTC) #61
Wez
https://codereview.chromium.org/2483003004/diff/140001/chrome/browser/memory/tab_manager.cc File chrome/browser/memory/tab_manager.cc (right): https://codereview.chromium.org/2483003004/diff/140001/chrome/browser/memory/tab_manager.cc#newcode233 chrome/browser/memory/tab_manager.cc:233: time_to_first_suspension_sec = 108000; There doesn't seem to be any ...
3 years, 10 months ago (2017-02-15 22:22:52 UTC) #63
tasak
On 2017/02/15 22:22:52, Wez wrote: > https://codereview.chromium.org/2483003004/diff/140001/chrome/browser/memory/tab_manager.cc > File chrome/browser/memory/tab_manager.cc (right): > > https://codereview.chromium.org/2483003004/diff/140001/chrome/browser/memory/tab_manager.cc#newcode233 > ...
3 years, 10 months ago (2017-02-16 10:50:33 UTC) #64
Wez
3 years, 10 months ago (2017-02-16 18:05:12 UTC) #65
Message was sent while issue was closed.
Takashi, this constant isn't 30 *minutes*, it is 30 *hours*, which seems
way too long to be useful to many users.

On 16 February 2017 at 02:50, <tasak@google.com> wrote:

> On 2017/02/15 22:22:52, Wez wrote:
> >
> https://codereview.chromium.org/2483003004/diff/140001/
> chrome/browser/memory/tab_manager.cc
> > File chrome/browser/memory/tab_manager.cc (right):
> >
> >
> https://codereview.chromium.org/2483003004/diff/140001/
> chrome/browser/memory/tab_manager.cc#newcode233
> > chrome/browser/memory/tab_manager.cc:233: time_to_first_suspension_sec =
> 108000;
> > There doesn't seem to be any explanation here, or in the linked
> document, of
> why
> > 30 hours is a good time-to-first-suspension?
>
> I have no idea about how long we should wait until we start purging.
> So I have no strong reason why time-to-first-suspension is 30minutes.
> (Talking about my use-case, it's ok to suspend all backgrounded renderers
> and to
> start purging 5 minutes after the renderers are backgrounded.)
>
> I heard that many people want to open each tab (from leftmost to
> rightmost?) to
> find some content.
> So I decided to make time-to-first-suspension some large number.
>
>
> https://codereview.chromium.org/2483003004/
>

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698