Eric Dumazet a37c2134be 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>
2020-09-30 14:21:30 -07:00
..
2020-03-12 15:55:00 -07:00
2020-03-12 15:55:00 -07:00
2020-08-24 17:31:20 -07:00
2020-08-31 12:33:34 -07:00
2020-03-30 13:45:04 -07:00
2020-08-31 12:33:34 -07:00
2020-03-16 18:26:54 -07:00
2020-09-25 17:17:14 -07:00
2020-09-30 14:21:30 -07:00
2020-03-16 18:26:55 -07:00
2020-09-30 14:21:30 -07:00
2020-08-24 17:31:20 -07:00