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

Issue 14559005: Replace send packet throttling with a scheme based on number of in-flight bytes in IpcPacketSocket. (Closed)

Created:
7 years, 7 months ago by miu
Modified:
7 years, 7 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Replace send packet throttling with a scheme based on number of in-flight bytes in IpcPacketSocket. This allows short bursts of high-rate sending without dropping packets, but quickly restricts the client to a sustainable steady-state rate. Added two debug trace counters for visibility under the "p2p" category: P2PSendBytesAvailable and P2PSendPacketsInFlight. BUG=237960 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=198662

Patch Set 1 #

Total comments: 8

Patch Set 2 : s/production builds/release builds/ #

Patch Set 3 : rebase #

Total comments: 10

Patch Set 4 : Addressed sergeyu's comments. #

Total comments: 4

Patch Set 5 : Final sergeyu comments addressed. #

Patch Set 6 : kMaximumInFlightBytes set to 64KB, per discussions and testing observations. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -18 lines) Patch
M content/renderer/p2p/ipc_socket_factory.cc View 1 2 3 4 5 10 chunks +48 lines, -18 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
miu
sergeyu/hclam: PTAL. Thanks, Yuri
7 years, 7 months ago (2013-05-04 02:21:20 UTC) #1
Alpha Left Google
https://codereview.chromium.org/14559005/diff/1/content/renderer/p2p/ipc_socket_factory.cc File content/renderer/p2p/ipc_socket_factory.cc (right): https://codereview.chromium.org/14559005/diff/1/content/renderer/p2p/ipc_socket_factory.cc#newcode243 content/renderer/p2p/ipc_socket_factory.cc:243: token_bucket_level_ -= data_size; I'm not sure how this helps. ...
7 years, 7 months ago (2013-05-04 04:11:20 UTC) #2
Alpha Left Google
https://codereview.chromium.org/14559005/diff/1/content/renderer/p2p/ipc_socket_factory.cc File content/renderer/p2p/ipc_socket_factory.cc (right): https://codereview.chromium.org/14559005/diff/1/content/renderer/p2p/ipc_socket_factory.cc#newcode23 content/renderer/p2p/ipc_socket_factory.cc:23: const size_t kMaximumInFlightBytes = 256 << 10; // 256 ...
7 years, 7 months ago (2013-05-04 07:14:14 UTC) #3
miu
Alpha, Responded to code review comments. Also, please try this patch out on your end. ...
7 years, 7 months ago (2013-05-06 19:21:26 UTC) #4
Alpha Left Google
Please fix the comment then LGTM.
7 years, 7 months ago (2013-05-06 21:37:28 UTC) #5
Sergey Ulanov
Do I understand it correctly that this patch just changes buffer size to 256kB? I'm ...
7 years, 7 months ago (2013-05-06 22:18:02 UTC) #6
Alpha Left Google
In this curent form yes. But changing this to buffer size is the first step ...
7 years, 7 months ago (2013-05-06 22:30:04 UTC) #7
Sergey Ulanov
On 2013/05/06 22:30:04, Alpha wrote: > In this curent form yes. > > But changing ...
7 years, 7 months ago (2013-05-06 22:57:16 UTC) #8
miu
https://codereview.chromium.org/14559005/diff/14001/content/renderer/p2p/ipc_socket_factory.cc File content/renderer/p2p/ipc_socket_factory.cc (right): https://codereview.chromium.org/14559005/diff/14001/content/renderer/p2p/ipc_socket_factory.cc#newcode23 content/renderer/p2p/ipc_socket_factory.cc:23: const size_t kMaximumInFlightBytes = 256 << 10; // 256 ...
7 years, 7 months ago (2013-05-06 23:36:13 UTC) #9
miu
On 2013/05/06 22:57:16, Sergey Ulanov wrote: > On 2013/05/06 22:30:04, Alpha wrote: > > In ...
7 years, 7 months ago (2013-05-07 00:02:15 UTC) #10
Sergey Ulanov
lgtm when my comments are addressed. https://codereview.chromium.org/14559005/diff/21001/content/renderer/p2p/ipc_socket_factory.cc File content/renderer/p2p/ipc_socket_factory.cc (right): https://codereview.chromium.org/14559005/diff/21001/content/renderer/p2p/ipc_socket_factory.cc#newcode135 content/renderer/p2p/ipc_socket_factory.cc:135: void IpcPacketSocket::ResetSendThrottling() { ...
7 years, 7 months ago (2013-05-07 00:14:29 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miu@chromium.org/14559005/29001
7 years, 7 months ago (2013-05-07 00:48:24 UTC) #12
miu
https://codereview.chromium.org/14559005/diff/21001/content/renderer/p2p/ipc_socket_factory.cc File content/renderer/p2p/ipc_socket_factory.cc (right): https://codereview.chromium.org/14559005/diff/21001/content/renderer/p2p/ipc_socket_factory.cc#newcode135 content/renderer/p2p/ipc_socket_factory.cc:135: void IpcPacketSocket::ResetSendThrottling() { On 2013/05/07 00:14:29, Sergey Ulanov wrote: ...
7 years, 7 months ago (2013-05-07 00:49:39 UTC) #13
commit-bot: I haz the power
7 years, 7 months ago (2013-05-07 07:02:25 UTC) #14
Message was sent while issue was closed.
Change committed as 198662

Powered by Google App Engine
This is Rietveld 408576698