From f6435cae74736dcbd8f4896dd7b5695a848943d9 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Mon, 27 Jun 2022 23:28:45 -0400 Subject: [PATCH] reduce tcp retransmission attempts --- local.conf => sysctl.d/local.conf | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) rename local.conf => sysctl.d/local.conf (76%) diff --git a/local.conf b/sysctl.d/local.conf similarity index 76% rename from local.conf rename to sysctl.d/local.conf index 555f690..000eadd 100644 --- a/local.conf +++ b/sysctl.d/local.conf @@ -4,9 +4,20 @@ net.ipv4.tcp_notsent_lowat = 131072 net.ipv4.tcp_fin_timeout = 30 net.ipv4.tcp_rfc1337 = 1 net.ipv4.tcp_tw_reuse = 1 - net.ipv4.tcp_max_syn_backlog = 4096 +# 31s with initial 1s RTO +net.ipv4.tcp_syn_retries = 4 + +# 15s with initial 1s RTO +net.ipv4.tcp_synack_retries = 3 + +# 102.2s with minimum 0.2s RTO +net.ipv4.tcp_retries2 = 8 + +# 25.4s with minimum 0.2s RTO +net.ipv4.tcp_orphan_retries = 6 + net.ipv4.ip_local_port_range = 1024 65535 net.ipv4.conf.all.send_redirects = 0