summaryrefslogtreecommitdiff
path: root/drivers/siox
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2020-09-30 15:54:57 +0300
committerDavid S. Miller <davem@davemloft.net>2020-10-01 00:21:30 +0300
commita37c2134bed6f28c6d6aefa2699331e6e4e9c4f1 (patch)
treef1ce9d23e66fd51f5efcd7ea38663db68f27d5ca /drivers/siox
parentb6b6d6533a14b5ddcf9f9c5239fc3721fc6beda0 (diff)
downloadlinux-a37c2134bed6f28c6d6aefa2699331e6e4e9c4f1.tar.xz
tcp: add exponential backoff in __tcp_send_ack()
Whenever host is under very high memory pressure, __tcp_send_ack() skb allocation fails, and we setup a 200 ms (TCP_DELACK_MAX) timer before retrying. On hosts with high number of TCP sockets, we can spend considerable amount of cpu cycles in these attempts, add high pressure on various spinlocks in mm-layer, ultimately blocking threads attempting to free space from making any progress. This patch adds standard exponential backoff to avoid adding fuel to the fire. Signed-off-by: Eric Dumazet <edumazet@google.com> Acked-by: Soheil Hassas Yeganeh <soheil@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/siox')
0 files changed, 0 insertions, 0 deletions