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

Issue 2503643003: More reliable ALR detection (Closed)

Created:
4 years, 1 month ago by Sergey Ulanov
Modified:
4 years, 1 month ago
Reviewers:
philipel, stefan-webrtc
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, zhuangzesen_agora.io, stefan-webrtc, mflodman
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

More reliable ALR detection Previously AlrDetector was measuring amount of data sent in each 100ms interval and would enter ALR mode after 5 consecutive intervals when average bandwidth usage doesn't exceed 30% of the current estimate estimate. This meant that an application that uses only slightely more than 6% of total bandwidth may stay out of ALR mode, e.g. if it sends a frame of size BW*30ms every 0.5 seconds. 100ms is too short interval to average over, particularly when frame-rate falls below 10fps. With this change AlrDetector averages BW usage over last 500ms. It then enters ALR state when usage falls below 30% and exits it when usage exceeds 50%. BUG=webrtc:6332 R=philipel@webrtc.org, stefan@webrtc.org Committed: https://chromium.googlesource.com/external/webrtc/+/0182f85fd1f88974a3fac18679196b241a30d7c3

Patch Set 1 #

Total comments: 2

Patch Set 2 : better tests #

Total comments: 2

Patch Set 3 : const #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -69 lines) Patch
M webrtc/modules/pacing/alr_detector.h View 1 2 2 chunks +9 lines, -8 lines 0 comments Download
M webrtc/modules/pacing/alr_detector.cc View 1 2 2 chunks +23 lines, -40 lines 0 comments Download
M webrtc/modules/pacing/alr_detector_unittest.cc View 1 1 chunk +83 lines, -20 lines 0 comments Download
M webrtc/modules/pacing/paced_sender.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 25 (11 generated)
Sergey Ulanov
4 years, 1 month ago (2016-11-15 08:33:57 UTC) #2
philipel
lgtm with added unittests. https://codereview.webrtc.org/2503643003/diff/1/webrtc/modules/pacing/alr_detector.cc File webrtc/modules/pacing/alr_detector.cc (right): https://codereview.webrtc.org/2503643003/diff/1/webrtc/modules/pacing/alr_detector.cc#newcode47 webrtc/modules/pacing/alr_detector.cc:47: if (percentage < kAlrStartUsagePercent && ...
4 years, 1 month ago (2016-11-15 18:20:54 UTC) #3
philipel
https://codereview.webrtc.org/2503643003/diff/1/webrtc/modules/pacing/alr_detector.cc File webrtc/modules/pacing/alr_detector.cc (right): https://codereview.webrtc.org/2503643003/diff/1/webrtc/modules/pacing/alr_detector.cc#newcode47 webrtc/modules/pacing/alr_detector.cc:47: if (percentage < kAlrStartUsagePercent && !application_limited_) { On 2016/11/15 ...
4 years, 1 month ago (2016-11-15 18:23:00 UTC) #4
Sergey Ulanov
On 2016/11/15 18:23:00, philipel wrote: > https://codereview.webrtc.org/2503643003/diff/1/webrtc/modules/pacing/alr_detector.cc > File webrtc/modules/pacing/alr_detector.cc (right): > > https://codereview.webrtc.org/2503643003/diff/1/webrtc/modules/pacing/alr_detector.cc#newcode47 > ...
4 years, 1 month ago (2016-11-15 19:14:41 UTC) #5
stefan-webrtc
rs-lgtm https://codereview.webrtc.org/2503643003/diff/40001/webrtc/modules/pacing/alr_detector.cc File webrtc/modules/pacing/alr_detector.cc (right): https://codereview.webrtc.org/2503643003/diff/40001/webrtc/modules/pacing/alr_detector.cc#newcode59 webrtc/modules/pacing/alr_detector.cc:59: bool AlrDetector::InApplicationLimitedRegion() { const
4 years, 1 month ago (2016-11-16 15:04:31 UTC) #7
Sergey Ulanov
https://codereview.webrtc.org/2503643003/diff/40001/webrtc/modules/pacing/alr_detector.cc File webrtc/modules/pacing/alr_detector.cc (right): https://codereview.webrtc.org/2503643003/diff/40001/webrtc/modules/pacing/alr_detector.cc#newcode59 webrtc/modules/pacing/alr_detector.cc:59: bool AlrDetector::InApplicationLimitedRegion() { On 2016/11/16 15:04:31, stefan-webrtc (holmer) wrote: ...
4 years, 1 month ago (2016-11-16 18:23:18 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2503643003/60001
4 years, 1 month ago (2016-11-16 18:23:33 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: mac_baremetal on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/mac_baremetal/builds/16289)
4 years, 1 month ago (2016-11-16 18:28:23 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2503643003/60001
4 years, 1 month ago (2016-11-16 20:11:44 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_baremetal on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_baremetal/builds/15997)
4 years, 1 month ago (2016-11-16 20:22:54 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2503643003/60001
4 years, 1 month ago (2016-11-16 23:28:51 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_baremetal on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_baremetal/builds/16003)
4 years, 1 month ago (2016-11-16 23:34:32 UTC) #21
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/0182f85fd1f88974a3fac18679196b241a30d7c3 Cr-Commit-Position: refs/heads/master@{#15109}
4 years, 1 month ago (2016-11-16 23:42:26 UTC) #23
Sergey Ulanov
4 years, 1 month ago (2016-11-16 23:42:28 UTC) #25
Message was sent while issue was closed.
Committed patchset #3 (id:60001) manually as
0182f85fd1f88974a3fac18679196b241a30d7c3 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698