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

Issue 8379009: Add a field trial for using lower sqlite cache sizes. (Closed)

Created:
9 years, 2 months ago by brettw
Modified:
9 years, 1 month ago
CC:
chromium-reviews, James Su, brettw-cc_chromium.org
Visibility:
Public.

Description

Add a field trial for using lower sqlite cache sizes. There are a few relevant histograms that I annotated with the field trial name, and I added a new AddPage histogram. TEST=none BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=111386

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 12

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -11 lines) Patch
M chrome/browser/autocomplete/history_url_provider.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/history/history_backend.cc View 1 2 3 5 chunks +12 lines, -2 lines 0 comments Download
M chrome/browser/history/history_database.cc View 1 2 2 chunks +10 lines, -5 lines 0 comments Download
A chrome/browser/history/history_field_trial.h View 1 chunk +26 lines, -0 lines 1 comment Download
A chrome/browser/history/history_field_trial.cc View 1 2 1 chunk +43 lines, -0 lines 8 comments Download
M chrome/browser/history/in_memory_database.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/history/text_database.cc View 1 2 2 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 25 (0 generated)
brettw
Peter: autocomplete OWNERS Jar: Field trial mechanics (history_field_trial.cc) Scott: Database changes (the other files)
9 years, 2 months ago (2011-10-24 18:03:30 UTC) #1
jar (doing other things)
http://codereview.chromium.org/8379009/diff/5001/chrome/browser/history/history_field_trial.cc File chrome/browser/history/history_field_trial.cc (right): http://codereview.chromium.org/8379009/diff/5001/chrome/browser/history/history_field_trial.cc#newcode28 chrome/browser/history/history_field_trial.cc:28: // Try to give the user a consistent experience, ...
9 years, 2 months ago (2011-10-24 18:40:55 UTC) #2
Scott Hess - ex-Googler
http://codereview.chromium.org/8379009/diff/5001/chrome/browser/history/history_database.cc File chrome/browser/history/history_database.cc (right): http://codereview.chromium.org/8379009/diff/5001/chrome/browser/history/history_database.cc#newcode90 chrome/browser/history/history_database.cc:90: } Yeah, I'm with jar, this range is pretty ...
9 years, 2 months ago (2011-10-24 19:15:27 UTC) #3
Peter Kasting
Rubber stamp LGTM for autocomplete/
9 years, 2 months ago (2011-10-24 22:25:38 UTC) #4
brettw
Now with a new histogram for AddPage and more conservative values. I'm actually quite optimistic ...
9 years, 2 months ago (2011-10-25 01:55:01 UTC) #5
brettw
jar/shess: Ping
9 years, 1 month ago (2011-10-26 21:28:36 UTC) #6
Scott Hess - ex-Googler
LGTM, I can't help nit-picking. http://codereview.chromium.org/8379009/diff/5001/chrome/browser/history/in_memory_database.cc File chrome/browser/history/in_memory_database.cc (right): http://codereview.chromium.org/8379009/diff/5001/chrome/browser/history/in_memory_database.cc#newcode96 chrome/browser/history/in_memory_database.cc:96: "History.InMemoryDBPopulate" + HistoryFieldTrial::GetGroupSuffix(), On ...
9 years, 1 month ago (2011-10-26 21:44:58 UTC) #7
jar (doing other things)
Comments below. You should either respond with a delta, or say why not.... and either ...
9 years, 1 month ago (2011-10-27 00:23:55 UTC) #8
brettw
http://codereview.chromium.org/8379009/diff/6006/chrome/browser/history/history_field_trial.cc File chrome/browser/history/history_field_trial.cc (right): http://codereview.chromium.org/8379009/diff/6006/chrome/browser/history/history_field_trial.cc#newcode40 chrome/browser/history/history_field_trial.cc:40: return g_low_mem_trial ? std::string("_LowMem") : std::string(); I feel like ...
9 years, 1 month ago (2011-10-28 22:30:39 UTC) #9
Scott Hess - ex-Googler
lgtm, because I think it does what you want and at this point the concerns ...
9 years, 1 month ago (2011-10-28 23:18:18 UTC) #10
jar (doing other things)
hmmm... There are usually more than two groups of people, but perchance you haven't implemented ...
9 years, 1 month ago (2011-10-29 00:16:33 UTC) #11
brettw
On Fri, Oct 28, 2011 at 5:16 PM, Jim Roskind <jar@chromium.org> wrote: > hmmm... There ...
9 years, 1 month ago (2011-10-29 00:29:36 UTC) #12
jar (doing other things)
The key is that you didn't let anyone opt out (I think). The opt-out group ...
9 years, 1 month ago (2011-10-29 00:34:48 UTC) #13
brettw
On Fri, Oct 28, 2011 at 5:34 PM, Jim Roskind <jar@chromium.org> wrote: > The key ...
9 years, 1 month ago (2011-10-29 00:37:45 UTC) #14
brettw
On Fri, Oct 28, 2011 at 5:34 PM, Jim Roskind <jar@chromium.org> wrote: > The key ...
9 years, 1 month ago (2011-11-15 00:10:48 UTC) #15
Scott Hess - ex-Googler
On Mon, Nov 14, 2011 at 4:10 PM, Brett Wilson <brettw@chromium.org> wrote: > On Fri, ...
9 years, 1 month ago (2011-11-15 01:51:26 UTC) #16
jar (doing other things)
Obviously... congratulations or the arrival of the new member of your family. The fact that ...
9 years, 1 month ago (2011-11-15 02:06:27 UTC) #17
brettw
On Mon, Nov 14, 2011 at 6:06 PM, Jim Roskind <jar@chromium.org> wrote: > Obviously... congratulations ...
9 years, 1 month ago (2011-11-15 02:45:18 UTC) #18
brettw
On Mon, Nov 14, 2011 at 6:45 PM, Brett Wilson <brettw@chromium.org> wrote: > On Mon, ...
9 years, 1 month ago (2011-11-15 02:55:37 UTC) #19
jar (doing other things)
My biggest fear would be intense thrashing that left the browser unusable. Cache sizes can ...
9 years, 1 month ago (2011-11-15 02:56:43 UTC) #20
Scott Hess - ex-Googler
Thing is, I think if we look for users thrashing, we will find them, and ...
9 years, 1 month ago (2011-11-15 03:03:14 UTC) #21
brettw
On Mon, Nov 14, 2011 at 7:03 PM, Scott Hess <shess@chromium.org> wrote: > Thing is, ...
9 years, 1 month ago (2011-11-18 05:44:55 UTC) #22
brettw
On Thu, Nov 17, 2011 at 9:44 PM, Brett Wilson <brettw@chromium.org> wrote: > On Mon, ...
9 years, 1 month ago (2011-11-22 21:39:34 UTC) #23
jar (doing other things)
As per earlier comment... lets land and iterate. LGTM
9 years, 1 month ago (2011-11-22 21:51:44 UTC) #24
Scott Hess - ex-Googler
9 years, 1 month ago (2011-11-23 23:10:08 UTC) #25
http://codereview.chromium.org/8379009/diff/6006/chrome/browser/history/histo...
File chrome/browser/history/history_field_trial.cc (right):

http://codereview.chromium.org/8379009/diff/6006/chrome/browser/history/histo...
chrome/browser/history/history_field_trial.cc:23: return;  // Already
initialized.
Note that FieldTrial::kDefaultGroupNumber is 0.  I think this only fires if
you're in the 5% group, otherwise you keep Activating... maybe needs a local
global to handle this.

I think this is being reverted for breaking browser tests...

jar says it should have failed when you created a new FieldTrial, but that may
be for another day.

Powered by Google App Engine
This is Rietveld 408576698