tcp: Revert "tcp: remove header prediction"
This reverts commit 45f119bf. Eric Dumazet says: We found at Google a significant regression caused by 45f119bf tcp: remove header prediction In typical RPC (TCP_RR), when a TCP socket receives data, we now call tcp_ack() while we used to not call it. This touches enough cache lines to cause a slowdown. so problem does not seem to be HP removal itself but the tcp_ack() call. Therefore, it might be possible to remove HP after all, provided one finds a way to elide tcp_ack for most cases. Reported-by:Eric Dumazet <edumazet@google.com> Signed-off-by:
Florian Westphal <fw@strlen.de> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/linux/tcp.h 6 additions, 0 deletionsinclude/linux/tcp.h
- include/net/tcp.h 23 additions, 0 deletionsinclude/net/tcp.h
- include/uapi/linux/snmp.h 2 additions, 0 deletionsinclude/uapi/linux/snmp.h
- net/ipv4/proc.c 2 additions, 0 deletionsnet/ipv4/proc.c
- net/ipv4/tcp.c 3 additions, 1 deletionnet/ipv4/tcp.c
- net/ipv4/tcp_input.c 183 additions, 5 deletionsnet/ipv4/tcp_input.c
- net/ipv4/tcp_minisocks.c 2 additions, 0 deletionsnet/ipv4/tcp_minisocks.c
- net/ipv4/tcp_output.c 2 additions, 0 deletionsnet/ipv4/tcp_output.c
Please register or sign in to comment