diff --git a/static/sysctl.conf b/static/sysctl.conf index 21e1f59..ba56290 100644 --- a/static/sysctl.conf +++ b/static/sysctl.conf @@ -1,13 +1,17 @@ vm.nr_hugepages = 0 vm.vfs_cache_pressure = 100 fs.file-max = 1000000 +net.core.wmem_max = 16777216 +net.core.rmem_max = 16777216 kernel.randomize_va_space = 2 net.ipv4.ip_forward = 1 net.ipv4.tcp_syncookies = 1 -net.ipv4.ip_local_port_range = 12000 65535 +net.ipv4.ip_local_port_range = 1024 64999 +net.ipv4.tcp_wmem = 4096 65536 16777216 +net.ipv4.tcp_rmem = 4096 87380 16777216 net.ipv4.tcp_window_scaling = 1 -net.core.somaxconn = 65535 -net.core.netdev_max_backlog = 2000 +net.core.somaxconn = 32768 +net.core.netdev_max_backlog = 30000 net.ipv4.tcp_max_syn_backlog = 2048 net.ipv4.tcp_fin_timeout = 90 net.ipv4.tcp_tw_recycle = 1 @@ -17,3 +21,4 @@ net.ipv4.tcp_congestion_control = bbr net.ipv4.tcp_synack_retries = 2 net.ipv4.tcp_syn_retries = 2 kernel.sched_autogroup_enabled = 0 +net.ipv4.tcp_max_orphans = 32768