Bug 1347174 - per comment 10, limit the readahead size to prevent cache thrashing. r=cpearce
authorJW Wang <jwwang@mozilla.com>
Thu, 27 Apr 2017 10:35:08 +0800
changeset 356598 c612b7357d7bf83de5edd7877f4e4602966b5a1b
parent 356597 879d80dec207170dc26fd578ff98dacb1e8d2ab8
child 356599 a86584f1364d236034e7860e7f6b269cc724f3c7
push id89950
push usercbook@mozilla.com
push dateFri, 05 May 2017 13:26:37 +0000
treeherdermozilla-inbound@e95e5825fd40 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscpearce
bugs1347174
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1347174 - per comment 10, limit the readahead size to prevent cache thrashing. r=cpearce MozReview-Commit-ID: Ellinh8JIYE
modules/libpref/init/all.js
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -291,21 +291,21 @@ pref("mathml.disabled",    false);
 pref("mathml.scale_stretchy_operators.enabled", true);
 
 pref("media.dormant-on-pause-timeout-ms", 5000);
 
 // Media cache size in kilobytes
 pref("media.cache_size", 512000);
 // When a network connection is suspended, don't resume it until the
 // amount of buffered data falls below this threshold (in seconds).
-pref("media.cache_resume_threshold", 999999);
+pref("media.cache_resume_threshold", 30);
 // Stop reading ahead when our buffered data is this many seconds ahead
 // of the current playback position. This limit can stop us from using arbitrary
 // amounts of network bandwidth prefetching huge videos.
-pref("media.cache_readahead_limit", 999999);
+pref("media.cache_readahead_limit", 60);
 
 // Master HTML5 media volume scale.
 pref("media.volume_scale", "1.0");
 
 // Timeout for wakelock release
 pref("media.wakelock_timeout", 2000);
 
 // Whether we should play videos opened in a "video document", i.e. videos