Bug 1366224 - Change RCWN thresholds to race more often r=mcmanus draft
authorValentin Gosu <valentin.gosu@gmail.com>
Mon, 22 May 2017 19:11:15 +0200
changeset 582466 0465b921722e398d3b954ad8a5b4531fcebea371
parent 582465 600c55cd74bf1e7f423d39805b259f30a1271255
child 629786 69d78ce0234957855f6c5ecf5b9b3362df940915
push id60099
push uservalentin.gosu@gmail.com
push dateMon, 22 May 2017 17:11:42 +0000
bugs1366224, 1325331
Bug 1366224 - Change RCWN thresholds to race more often r=mcmanus The previous limits were chosen a bit arbitrarily, and didn't trigger racing too often. These limits are also quite arbitrary, but should cause us to race more. These limits can be removed once we implement bug 1325331 and we can make a fair approximation regarding the cache latency. MozReview-Commit-ID: CUssxUrs1Wu
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -1663,18 +1663,18 @@ pref("network.http.enforce-framing.soft"
 // an empty value will still delete the header.(Bug 6699259)
 pref("network.http.keep_empty_response_headers_as_empty_string", true);
 // Max size, in bytes, for received HTTP response header.
 pref("network.http.max_response_header_size", 393216);
 // If we should attempt to race the cache and network
 pref("network.http.rcwn.enabled", true);
-pref("network.http.rcwn.cache_queue_normal_threshold", 50);
-pref("network.http.rcwn.cache_queue_priority_threshold", 10);
+pref("network.http.rcwn.cache_queue_normal_threshold", 8);
+pref("network.http.rcwn.cache_queue_priority_threshold", 2);
 // We might attempt to race the cache with the network only if a resource
 // is smaller than this size.
 pref("network.http.rcwn.small_resource_size_kb", 256);
 // The ratio of the transaction count for the focused window and the count of
 // all available active connections.
 pref("network.http.focused_window_transaction_ratio", "0.9");