diff options
| author | Eric Dumazet <[email protected]> | 2012-07-20 05:45:50 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2012-07-20 10:59:41 -0700 |
| commit | 6f458dfb409272082c9bfa412f77ff2fc21c626f (patch) | |
| tree | 7475cd12eb01023b9852cbc957080b9aa7cfdc64 /net/lapb/lapb_subr.c | |
| parent | 9dc274151a548ffd215caecec5a8872db8799447 (diff) | |
tcp: improve latencies of timer triggered events
Modern TCP stack highly depends on tcp_write_timer() having a small
latency, but current implementation doesn't exactly meet the
expectations.
When a timer fires but finds the socket is owned by the user, it rearms
itself for an additional delay hoping next run will be more
successful.
tcp_write_timer() for example uses a 50ms delay for next try, and it
defeats many attempts to get predictable TCP behavior in term of
latencies.
Use the recently introduced tcp_release_cb(), so that the user owning
the socket will call various handlers right before socket release.
This will permit us to post a followup patch to address the
tcp_tso_should_defer() syndrome (some deferred packets have to wait
RTO timer to be transmitted, while cwnd should allow us to send them
sooner)
Signed-off-by: Eric Dumazet <[email protected]>
Cc: Tom Herbert <[email protected]>
Cc: Yuchung Cheng <[email protected]>
Cc: Neal Cardwell <[email protected]>
Cc: Nandita Dukkipati <[email protected]>
Cc: H.K. Jerry Chu <[email protected]>
Cc: John Heffner <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions