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

Issue 2340763004: Add AlrDetector (Closed)

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

Description

Add AlrDetector This is a simple application limited region detector that is quite conservative at the moment. We detect as being application-limited if we see sending rate as less than 30% of the estimated bandwidth over 500 ms. The moment we detect a single burst above 30% over a 100 ms period, we consider ourselves network limited. This class is currently not used. A follow up CL will leverage this to enable probing. BUG=webrtc:6332 Committed: https://crrev.com/3168781d2fb06af02cfaad453e74fac7832c3cf9 Cr-Commit-Position: refs/heads/master@{#14505}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressed comments #

Total comments: 4

Patch Set 3 : Add tests #

Patch Set 4 : Fix ASAN/TSAN failures #

Total comments: 1

Patch Set 5 : Move AlrDetector into Pacer #

Total comments: 1

Patch Set 6 : Remove thread safety in alr_detector #

Patch Set 7 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+201 lines, -9 lines) Patch
M webrtc/modules/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/pacing/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A webrtc/modules/pacing/alr_detector.h View 1 2 3 4 5 1 chunk +48 lines, -0 lines 0 comments Download
A webrtc/modules/pacing/alr_detector.cc View 1 2 3 4 5 1 chunk +80 lines, -0 lines 0 comments Download
A webrtc/modules/pacing/alr_detector_unittest.cc View 1 2 3 4 1 chunk +48 lines, -0 lines 0 comments Download
M webrtc/modules/pacing/paced_sender.h View 1 2 3 4 5 3 chunks +5 lines, -1 line 0 comments Download
M webrtc/modules/pacing/paced_sender.cc View 1 2 3 4 8 chunks +15 lines, -8 lines 0 comments Download
M webrtc/modules/pacing/pacing.gypi View 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 36 (13 generated)
Irfan
PTAL
4 years, 3 months ago (2016-09-14 22:05:13 UTC) #3
philipel
I would prefer if the PacedSender did not know about the AlrDetector. I would suggest ...
4 years, 3 months ago (2016-09-15 15:00:20 UTC) #4
Irfan
https://codereview.webrtc.org/2340763004/diff/1/webrtc/modules/pacing/alr_detector.cc File webrtc/modules/pacing/alr_detector.cc (right): https://codereview.webrtc.org/2340763004/diff/1/webrtc/modules/pacing/alr_detector.cc#newcode38 webrtc/modules/pacing/alr_detector.cc:38: : total_bytes_sent_(0), On 2016/09/15 15:00:20, philipel wrote: > I ...
4 years, 3 months ago (2016-09-19 06:51:14 UTC) #6
Irfan
PTAL. Rebased on top of Issue 2347023002 to leverage the changes made there.
4 years, 3 months ago (2016-09-19 07:08:29 UTC) #8
philipel
lg https://codereview.webrtc.org/2340763004/diff/60001/webrtc/modules/pacing/paced_sender.h File webrtc/modules/pacing/paced_sender.h (right): https://codereview.webrtc.org/2340763004/diff/60001/webrtc/modules/pacing/paced_sender.h#newcode56 webrtc/modules/pacing/paced_sender.h:56: class PacingObserver { Add a unittest that use ...
4 years, 3 months ago (2016-09-19 11:25:23 UTC) #9
Irfan
https://codereview.chromium.org/2340763004/diff/60001/webrtc/modules/pacing/paced_sender.h File webrtc/modules/pacing/paced_sender.h (right): https://codereview.chromium.org/2340763004/diff/60001/webrtc/modules/pacing/paced_sender.h#newcode56 webrtc/modules/pacing/paced_sender.h:56: class PacingObserver { On 2016/09/19 11:25:22, philipel wrote: > ...
4 years, 3 months ago (2016-09-19 22:15:03 UTC) #10
Irfan
PTAL
4 years, 3 months ago (2016-09-19 23:14:23 UTC) #11
philipel
lgtm
4 years, 3 months ago (2016-09-20 08:53:07 UTC) #12
Irfan
Stefan, PTAL
4 years, 3 months ago (2016-09-22 18:07:21 UTC) #14
stefan-webrtc
Add a comment in the description that this is a noop at the moment since ...
4 years, 3 months ago (2016-09-23 13:38:31 UTC) #15
stefan-webrtc
Should we add a UMA metric so we can understand how well this detector works?
4 years, 3 months ago (2016-09-23 13:39:02 UTC) #16
stefan-webrtc
One final question: Do you think there's any potential problem that this detector will detect ...
4 years, 3 months ago (2016-09-23 13:41:15 UTC) #17
Irfan
I think the UMA makes sense for a follow up CL that leverages the AlrDetector ...
4 years, 2 months ago (2016-09-26 23:20:52 UTC) #19
Irfan
I think the UMA makes sense for a follow up CL that leverages the AlrDetector ...
4 years, 2 months ago (2016-09-26 23:20:52 UTC) #20
stefan-webrtc
On 2016/09/26 23:20:52, Irfan wrote: > I think the UMA makes sense for a follow ...
4 years, 2 months ago (2016-09-27 14:20:29 UTC) #21
stefan-webrtc
LG, just a question about where we're placing this component. https://codereview.chromium.org/2340763004/diff/120001/webrtc/modules/pacing/paced_sender.h File webrtc/modules/pacing/paced_sender.h (right): https://codereview.chromium.org/2340763004/diff/120001/webrtc/modules/pacing/paced_sender.h#newcode56 ...
4 years, 2 months ago (2016-09-27 14:26:09 UTC) #22
Irfan
PTAL
4 years, 2 months ago (2016-09-29 08:33:22 UTC) #23
stefan-webrtc
lg, but a question regarding threading. https://codereview.chromium.org/2340763004/diff/140001/webrtc/modules/pacing/alr_detector.cc File webrtc/modules/pacing/alr_detector.cc (right): https://codereview.chromium.org/2340763004/diff/140001/webrtc/modules/pacing/alr_detector.cc#newcode77 webrtc/modules/pacing/alr_detector.cc:77: bool AlrDetector::InApplicationLimitedRegion() { ...
4 years, 2 months ago (2016-09-29 09:19:08 UTC) #24
Irfan
PTAL. The locking in alr_detector is a remnant from integrating in congestion controller. Paced sender ...
4 years, 2 months ago (2016-09-29 21:46:38 UTC) #27
stefan-webrtc
lgtm
4 years, 2 months ago (2016-09-30 08:23:55 UTC) #28
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/2340763004/240001
4 years, 2 months ago (2016-10-04 15:32:54 UTC) #32
commit-bot: I haz the power
Committed patchset #7 (id:240001)
4 years, 2 months ago (2016-10-04 15:43:12 UTC) #34
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 15:43:22 UTC) #36
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/3168781d2fb06af02cfaad453e74fac7832c3cf9
Cr-Commit-Position: refs/heads/master@{#14505}

Powered by Google App Engine
This is Rietveld 408576698