tcp: remove prequeue and header prediction
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | tcp: remove prequeue supportinclude/ include/ net/ +5 more | +2 | 0 replies | |
| 2/6 | tcp: reindent two spots after prequeue removalnet/ | +23 | 0 replies | |
| 3/6 | tcp: remove low_latency sysctlDocumentation/ include/ net/ +1 more | +4 | 0 replies | |
| 4/6 | tcp: remove header predictioninclude/ include/ net/ +3 more | +10 | 1 reply | |
| 5/6 | tcp: remove CA_ACK_SLOWPATHinclude/ net/ net/ | +22 | 0 replies | |
| 6/6 | tcp: remove unused mib countersinclude/ net/ | +0 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [net-next 0/6] tcp: remove prequeue and header prediction
During a hallway discussion with Eric Dumazet at Netdev 1.2 in Tokyo some maybe-not-so-useful-anymore TCP stack features came up, among these header prediction and prequeueing.
In brief, TCP prequeue assumes a single-process-blocking-read design, which is not that common anymore. The most frequently used high-performance networking program that is an excellent fit for these features is netperf.
The idea behind prequeueing is to move part of tcp processing, including retransmit queue cleaning, to process context.
With (e)poll designs, prequeue is always skipped, so for such programs this is dead-code removal.
Header prediction is also less useful nowadays.
For packet trains, GRO will do packet aggregation so we do not get the per-packet benefit that this had before GRO anymore.
Because of SACK, header prediction also will be ineffective once a connection suffers even light packet losses.
code removal aside, after this change processing always occurs in BH context, this allows to experiment e.g. with doing bulk freeing of skb heads when incoming ACKs clean packets from the retransmit queue.
There are no changes since the RFC, except in last patch (i missed another no-longer-used mib counter). I also edited a few commit messages.
Documentation/networking/ip-sysctl.txt | 7 include/linux/tcp.h | 15 - include/net/tcp.h | 40 ---- include/uapi/linux/snmp.h | 9 net/ipv4/proc.c | 9 net/ipv4/sysctl_net_ipv4.c | 3 net/ipv4/tcp.c | 109 ----------- net/ipv4/tcp_input.c | 303 +++------------------------------ net/ipv4/tcp_ipv4.c | 63 ------ net/ipv4/tcp_minisocks.c | 3 net/ipv4/tcp_output.c | 2 net/ipv4/tcp_timer.c | 12 - net/ipv4/tcp_westwood.c | 31 --- net/ipv6/tcp_ipv6.c | 3 14 files changed, 43 insertions(+), 566 deletions(-)