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

Issue 67243: Reduce the false positive rate for SafeBrowsing gethash requests (Closed)

Created:
11 years, 8 months ago by Paul Godavari
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Reduce the false positive rate for SafeBrowsing gethash requests. This CL increases the memory consumption of the bloom filter used by the SafeBrowsing system in order to decrease the number of false positive gethash requests (gethash requests that result in an empty or 204 response from the servers). The filter size in bytes is calculated as: number_of_add_prefixes * bits_per_prefix / 8 From analysis of our histograms, users have between 250k - 330k add prefixes. 'bits_per_prefix' is hard coded to 25, which means that we expect the typical bloom filter to be between 760-1000 kB, compared to the current value of approximately 450 kB. We add histograms to track the filter size, as well as the number of gethash requests that return empty results and non-empty results. BUG=10584 (http://crbug.com/10584) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=13958

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 2

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -4 lines) Patch
M chrome/browser/safe_browsing/protocol_manager.cc View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_database_bloom.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_database_bloom.cc View 1 2 3 4 5 6 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_database_unittest.cc View 5 6 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Paul Godavari
11 years, 8 months ago (2009-04-17 00:30:00 UTC) #1
Erik does not do reviews
LGTM http://codereview.chromium.org/67243/diff/25/1017 File chrome/browser/safe_browsing/safe_browsing_database_unittest.cc (right): http://codereview.chromium.org/67243/diff/25/1017#newcode908 Line 908: // Cache a GetHash miss for a ...
11 years, 8 months ago (2009-04-17 17:28:15 UTC) #2
Paul Godavari
11 years, 8 months ago (2009-04-17 17:32:51 UTC) #3
http://codereview.chromium.org/67243/diff/25/1017
File chrome/browser/safe_browsing/safe_browsing_database_unittest.cc (right):

http://codereview.chromium.org/67243/diff/25/1017#newcode908
Line 908: // Cache a GetHash miss for a particular prefix, and even though the
prefix is
On 2009/04/17 17:28:15, Erik Kay wrote:
> This doesn't look related to the CL.  Was this just something you suspected
> while looking into the problem?  Or is it something else?

I decided to expand the caching unittest when I first started looking at the
false positive rate, since it initially looked like a caching problem. It wasn't
a caching problem, but this addition to the test is still worth having.

Powered by Google App Engine
This is Rietveld 408576698