diff options
| author | Eric Dumazet <[email protected]> | 2018-11-27 14:42:03 -0800 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2018-11-30 13:26:54 -0800 |
| commit | 4f693b55c3d2d2239b8a0094b518a1e533cf75d5 (patch) | |
| tree | 3b70704dbf9f7cf27ec16d9321f7c1956b81c3a5 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
| parent | 85bdf7db5b53cdcc7a901db12bcb3d0063e3866d (diff) | |
tcp: implement coalescing on backlog queue
In case GRO is not as efficient as it should be or disabled,
we might have a user thread trapped in __release_sock() while
softirq handler flood packets up to the point we have to drop.
This patch balances work done from user thread and softirq,
to give more chances to __release_sock() to complete its work
before new packets are added the the backlog.
This also helps if we receive many ACK packets, since GRO
does not aggregate them.
This patch brings ~60% throughput increase on a receiver
without GRO, but the spectacular gain is really on
1000x release_sock() latency reduction I have measured.
Signed-off-by: Eric Dumazet <[email protected]>
Cc: Neal Cardwell <[email protected]>
Cc: Yuchung Cheng <[email protected]>
Acked-by: Neal Cardwell <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions