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

Issue 11267028: Http cache: Measure back navigations on the infinite cache simulation. (Closed)

Created:
8 years, 2 months ago by rvargas (doing something else)
Modified:
8 years, 1 month ago
Reviewers:
gavinp
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, gavinp+disk_chromium.org
Visibility:
Public.

Description

Http cache: Measure back navigations on the infinite cache simulation. Also count entries that are not cached. BUG=147383 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=164465

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Total comments: 5

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -2 lines) Patch
M net/http/http_cache_transaction.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M net/http/infinite_cache.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M net/http/infinite_cache.cc View 1 2 3 4 chunks +14 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
rvargas (doing something else)
8 years, 2 months ago (2012-10-25 02:21:08 UTC) #1
gavinp
Is this two CLs together? http://codereview.chromium.org/11267028/diff/1/net/http/infinite_cache.cc File net/http/infinite_cache.cc (right): http://codereview.chromium.org/11267028/diff/1/net/http/infinite_cache.cc#newcode538 net/http/infinite_cache.cc:538: UMA_HISTOGRAM_BOOLEAN("InfiniteCache.DoomMethodHit", true); Is this ...
8 years, 1 month ago (2012-10-25 18:25:47 UTC) #2
rvargas (doing something else)
http://codereview.chromium.org/11267028/diff/1/net/http/infinite_cache.cc File net/http/infinite_cache.cc (right): http://codereview.chromium.org/11267028/diff/1/net/http/infinite_cache.cc#newcode538 net/http/infinite_cache.cc:538: UMA_HISTOGRAM_BOOLEAN("InfiniteCache.DoomMethodHit", true); On 2012/10/25 18:25:47, gavinp wrote: > Is ...
8 years, 1 month ago (2012-10-25 18:32:18 UTC) #3
gavinp
The more I read the code, the more I'm struck by how similar the HttpCache ...
8 years, 1 month ago (2012-10-25 18:56:26 UTC) #4
rvargas (doing something else)
http://codereview.chromium.org/11267028/diff/1/net/http/infinite_cache.cc File net/http/infinite_cache.cc (right): http://codereview.chromium.org/11267028/diff/1/net/http/infinite_cache.cc#newcode538 net/http/infinite_cache.cc:538: UMA_HISTOGRAM_BOOLEAN("InfiniteCache.DoomMethodHit", true); On 2012/10/25 18:56:26, gavinp wrote: > On ...
8 years, 1 month ago (2012-10-25 19:04:49 UTC) #5
rvargas (doing something else)
On 2012/10/25 18:56:26, gavinp wrote: > The more I read the code, the more I'm ...
8 years, 1 month ago (2012-10-25 19:15:41 UTC) #6
gavinp
On 2012/10/25 19:04:49, rvargas wrote: > http://codereview.chromium.org/11267028/diff/1/net/http/infinite_cache.cc > File net/http/infinite_cache.cc (right): > > http://codereview.chromium.org/11267028/diff/1/net/http/infinite_cache.cc#newcode538 > ...
8 years, 1 month ago (2012-10-25 20:09:48 UTC) #7
rvargas (doing something else)
> It's not necessary to only add histograms at a single point, and the cost ...
8 years, 1 month ago (2012-10-25 20:44:45 UTC) #8
rvargas (doing something else)
OK... Now I'm using the same histogram :)
8 years, 1 month ago (2012-10-26 21:02:27 UTC) #9
gavinp
LGTM, especially since I know we want improved metrics in the next branch cut. I ...
8 years, 1 month ago (2012-10-26 22:06:14 UTC) #10
rvargas (doing something else)
8 years, 1 month ago (2012-10-26 22:36:12 UTC) #11
There's not much more context to the apples to apples thing. We know that the
real disk cache HR is about 8 points higher than what the simulation is telling
us so this CL is about exploring the hypothesis that most of that difference
comes from back navigations.

I don't really want to have the simulation perform all the logic that the HTTP
and Disk caches perform, or to by tied to a bunch of places everywhere to
attempt to follow the same logic. I want to keep the simple model of "this is a
request, this is the response" that we have today, with just the minimum http
logic embedded on the simulation to have a very simple, general http cache.

This basically implies that the values won't be directly comparable: the real
version will act based on all flag and header combinations, will do something
different depending on the response being cached or not etc. The numbers will
never match (unless the real cache is also infinite, and we add all the
reporting logic to the real one).

I said that I'm not convinced that this is the right thing to do because the
number will go up, but we'll still be unable to compare them. Now we won't have
page reloads, that may end up removing stuff from the cache (or at the very
least affecting the validation)... so should the HR be higher or lower?

And the final point is that even though the whole experiment was designed to
measure HR (tons of them), as a proxy for cache performance, I'm once again
convinced that this is a bogus measurement (the reason I have not payed
attention to HR for years). That is not to say that nothing is coming out of the
simulation.

Thanks

http://codereview.chromium.org/11267028/diff/8004/net/http/http_cache_transac...
File net/http/http_cache_transaction.cc (right):

http://codereview.chromium.org/11267028/diff/8004/net/http/http_cache_transac...
net/http/http_cache_transaction.cc:268:
infinite_cache_transaction_->OnBackForwardNavigation();
On 2012/10/26 22:06:14, gavinp wrote:
> Oops: I made this comment on an earlier version but somehow it didn't get
> uploaded. Have you considered reporting an enumeration giving which of these
> flags was set, plus an extra bonus "NONE" field?
> 
> This is just a take it or leave it suggestion.

Kind of. I considered passing effective_load_flags_ to the simulation and having
histograms for other stuff, but I decided it was better not to do that.

This is at a layer that is not exactly what concerns the simulation (and the
same thing can be said about sending back navigations, but we want to be able to
compare that number with the people on the experiment).

What I mean is that the purpose of the simulation is to measure the behavior of
a very big cache, and the percentage of request issued with a particular flag
doesn't have anything to do with having a big cache or not, so if we really care
about that we could just as well add a regular histogram somewhere else.

Powered by Google App Engine
This is Rietveld 408576698