All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 net-next 0/4] tcp: take a bit more care of backlog stress
@ 2018-11-27 22:41 Eric Dumazet
  2018-11-27 22:42 ` [PATCH v3 net-next 1/4] tcp: hint compiler about sack flows Eric Dumazet
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Eric Dumazet @ 2018-11-27 22:41 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.

v3: Neal/Yuchung feedback addressed :
     Do not aggregate if any skb has URG bit set.
     Do not aggregate if the skbs have different ECE/CWR bits

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       | 92 ++++++++++++++++++++++++++++++++++++---
 5 files changed, 123 insertions(+), 33 deletions(-)

-- 
2.20.0.rc0.387.gc7a69e6b6c-goog

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

end of thread, other threads:[~2018-12-01  8:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-27 22:41 [PATCH v3 net-next 0/4] tcp: take a bit more care of backlog stress Eric Dumazet
2018-11-27 22:42 ` [PATCH v3 net-next 1/4] tcp: hint compiler about sack flows Eric Dumazet
2018-11-27 22:42 ` [PATCH v3 net-next 2/4] tcp: take care of compressed acks in tcp_add_reno_sack() Eric Dumazet
2018-11-28 16:41   ` Neal Cardwell
2018-11-27 22:42 ` [PATCH v3 net-next 3/4] tcp: make tcp_space() aware of socket backlog Eric Dumazet
2018-11-28 14:54   ` Jean-Louis Dupond
2018-11-27 22:42 ` [PATCH v3 net-next 4/4] tcp: implement coalescing on backlog queue Eric Dumazet
2018-11-28 16:46   ` Neal Cardwell
2018-11-30 21:27 ` [PATCH v3 net-next 0/4] tcp: take a bit more care of backlog stress David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.