netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 net-next 0/4] tcp: take a bit more care of backlog stress
@ 2018-11-27 15:57 Eric Dumazet
  2018-11-27 15:57 ` [PATCH v2 net-next 1/4] tcp: hint compiler about sack flows Eric Dumazet
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Eric Dumazet @ 2018-11-27 15:57 UTC (permalink / raw)
  To: David S . Miller
  Cc: netdev, Jean-Louis Dupond, Neal Cardwell, Yuchung Cheng,
	Eric Dumazet, Eric Dumazet

While working on the SACK compression issue Jean-Louis Dupond
reported, we found that his linux box was suffering very hard
from tail drops on the socket backlog queue.

First patch hints the compiler about sack flows being the norm.

Second patch changes non-sack code in preparation of the ack
compression.

Third patch fixes tcp_space() to take backlog into account.

Fourth patch is attempting coalescing when a new packet must
be added to the backlog queue. Cooking bigger skbs helps
to keep backlog list smaller and speeds its handling when
user thread finally releases the socket lock.

v2: added feedback from Neal : tcp: take care of compressed acks in tcp_add_reno_sack() 
    added : tcp: hint compiler about sack flows
	added : tcp: make tcp_space() aware of socket backlog



Eric Dumazet (4):
  tcp: hint compiler about sack flows
  tcp: take care of compressed acks in tcp_add_reno_sack()
  tcp: make tcp_space() aware of socket backlog
  tcp: implement coalescing on backlog queue

 include/net/tcp.h         |  4 +-
 include/uapi/linux/snmp.h |  1 +
 net/ipv4/proc.c           |  1 +
 net/ipv4/tcp_input.c      | 58 +++++++++++++++-----------
 net/ipv4/tcp_ipv4.c       | 88 ++++++++++++++++++++++++++++++++++++---
 5 files changed, 119 insertions(+), 33 deletions(-)

-- 
2.20.0.rc0.387.gc7a69e6b6c-goog

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2018-11-28  9:32 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-27 15:57 [PATCH v2 net-next 0/4] tcp: take a bit more care of backlog stress Eric Dumazet
2018-11-27 15:57 ` [PATCH v2 net-next 1/4] tcp: hint compiler about sack flows Eric Dumazet
2018-11-27 21:03   ` Neal Cardwell
2018-11-27 15:57 ` [PATCH v2 net-next 2/4] tcp: take care of compressed acks in tcp_add_reno_sack() Eric Dumazet
2018-11-27 21:19   ` Neal Cardwell
2018-11-27 21:54     ` Eric Dumazet
2018-11-27 15:57 ` [PATCH v2 net-next 3/4] tcp: make tcp_space() aware of socket backlog Eric Dumazet
2018-11-27 21:22   ` Neal Cardwell
2018-11-27 15:57 ` [PATCH v2 net-next 4/4] tcp: implement coalescing on backlog queue Eric Dumazet
2018-11-27 21:58   ` Neal Cardwell
2018-11-27 22:13     ` Eric Dumazet
2018-11-27 22:32       ` Eric Dumazet
2018-11-27 17:50 ` [PATCH v2 net-next 0/4] tcp: take a bit more care of backlog stress Yuchung Cheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).