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

Issue 11741034: Fix miss counting on http cache transactions. (Closed)

Created:
7 years, 11 months ago by gavinp
Modified:
7 years, 11 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, gavinp+disk_chromium.org
Visibility:
Public.

Description

Fix miss counting on http cache transactions. Loads bypassing the cache were counting as misses; this was bad for two reasons. Firstly, we were overcounting misses. Secondly, this was making misses look too performant. This fix was actually uploaded in https://codereview.chromium.org/11637007/ , but in all the debate about the histograms in that patch, this fix got missed. Here it is again, all by itself. R=rvargas@chromium.org BUG=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175203

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M net/http/http_cache_transaction.cc View 1 chunk +1 line, -0 lines 1 comment Download

Messages

Total messages: 8 (0 generated)
gavinp
7 years, 11 months ago (2013-01-04 16:35:25 UTC) #1
gavinp
https://codereview.chromium.org/11741034/diff/1/net/http/http_cache_transaction.cc File net/http/http_cache_transaction.cc (right): https://codereview.chromium.org/11741034/diff/1/net/http/http_cache_transaction.cc#newcode735 net/http/http_cache_transaction.cc:735: UpdateTransactionPattern(PATTERN_NOT_COVERED); Added bonus: this if statement now meets our ...
7 years, 11 months ago (2013-01-04 16:37:55 UTC) #2
rvargas (doing something else)
I'm not sure I agree about the characterization of forced misses not being misses at ...
7 years, 11 months ago (2013-01-04 19:50:53 UTC) #3
gavinp
On 2013/01/04 19:50:53, rvargas wrote: > I'm not sure I agree about the characterization of ...
7 years, 11 months ago (2013-01-04 19:55:42 UTC) #4
gavinp
Thank you for the LGTM, I'm cq+ ing this despite the red win_rel test, since ...
7 years, 11 months ago (2013-01-04 19:56:09 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/11741034/1
7 years, 11 months ago (2013-01-04 19:56:44 UTC) #6
commit-bot: I haz the power
Change committed as 175203
7 years, 11 months ago (2013-01-04 21:58:26 UTC) #7
rvargas (doing something else)
7 years, 11 months ago (2013-01-04 22:58:52 UTC) #8
Message was sent while issue was closed.
On 2013/01/04 19:55:42, gavinp wrote:
> On 2013/01/04 19:50:53, rvargas wrote:
> > I'm not sure I agree about the characterization of forced misses not being
> > misses at all, but I really don't care that much.
> 
> I'm sorry that you don't care very much. I think these pattern histograms are
> important, and if you don't, let's make sure to talk about that next week.
> 
> On the patch in question here, perhaps the problem was that I was using the
word
> "miss" in the description, when really it's PATTERN_NOT_CACHED. When the user
> bypasses the cache, is it the case that the resource was "not cached?"

Correct, bypassing the cache is not the same as not_cached. But that
interpretation (not_cached == miss) is not exclusive to this CL description...
it's been used multiple times. That's one of the issues of this set of
histograms, but it is more productive to talk about it next week in person.

> 
> Since the HttpCache.* histograms are intended to help speed up the cache when
> it's being used, would counting these help or hinder that goal?
> 
> I think those two questions guide me to say that a LOAD_BYPASSing_CACHE does
not
> refer to a PATTERN_ENTRY_NOT_CACHED. If I'm wrong, I'd love to hear more about
> why.
> 
> > 
> > lgtm.

Powered by Google App Engine
This is Rietveld 408576698