Skip to content

Instantly share code, notes, and snippets.

@simonsmh
Last active January 22, 2025 16:13
Show Gist options
  • Select an option

  • Save simonsmh/d5531ea7e07ef152bbe8e672da1ddd65 to your computer and use it in GitHub Desktop.

Select an option

Save simonsmh/d5531ea7e07ef152bbe8e672da1ddd65 to your computer and use it in GitHub Desktop.
net.core.default_qdisc = fq_pie
net.ipv4.tcp_congestion_control = bbr
net.ipv4.tcp_retries2 = 8
fs.file-max = 1491124
net.ipv4.tcp_max_syn_backlog = 1048576
net.core.netdev_max_backlog = 1048576
net.core.somaxconn = 1048576
net.ipv4.ip_local_port_range = 10000 65535
net.ipv4.tcp_max_orphans = 131072
net.ipv4.tcp_tw_reuse=1
net.ipv4.tcp_max_tw_buckets=55000
net.netfilter.nf_conntrack_max=1048576
net.nf_conntrack_max=1048576
net.netfilter.nf_conntrack_tcp_timeout_fin_wait=30
net.netfilter.nf_conntrack_tcp_timeout_time_wait=30
net.netfilter.nf_conntrack_tcp_timeout_close_wait=15
net.netfilter.nf_conntrack_tcp_timeout_established=300
net.ipv4.tcp_fin_timeout = 15
net.ipv4.tcp_keepalive_probes = 3
net.ipv4.tcp_keepalive_intvl = 15
net.ipv4.tcp_keepalive_time=7200
net.ipv4.tcp_slow_start_after_idle = 0
net.ipv4.tcp_mtu_probing = 1
net.ipv4.tcp_syncookies = 1
vm.zone_reclaim_mode = 0
vm.swappiness = 10
vm.overcommit_memory = 1
net.ipv4.ip_forward = 1
net.ipv6.conf.default.forwarding = 1
net.ipv6.conf.all.forwarding = 1
net.ipv4.conf.all.promote_secondaries = 1
net.ipv4.conf.all.arp_announce = 2
net.ipv4.conf.default.arp_announce = 2
net.ipv4.conf.all.rp_filter = 0
net.ipv4.conf.default.rp_filter = 0
net.core.rmem_default = 174760
net.core.rmem_max = 2097152
net.ipv4.tcp_rmem = 4096 174760 2097152
net.core.wmem_default = 131072
net.core.wmem_max = 2097152
net.ipv4.tcp_wmem = 4096 131072 2097152
net.ipv4.tcp_mem = 131072 262144 524288
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment