Skip to content

Instantly share code, notes, and snippets.

@sneak
Created April 4, 2019 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sneak/3425677a144f59657f84744828682b85 to your computer and use it in GitHub Desktop.
Save sneak/3425677a144f59657f84744828682b85 to your computer and use it in GitHub Desktop.
# put this file in /etc/sysctl.d
# and run `sysctl -p /etc/sysctl.d/99-10ge.conf`
net.core.rmem_max = 134217728
# Maximum send socket buffer size
net.core.wmem_max = 134217728
#
# # Minimum, initial and max TCP Receive buffer size in Bytes
net.ipv4.tcp_rmem = 4096 87380 134217728
#
# # Minimum, initial and max buffer space allocated
net.ipv4.tcp_wmem = 4096 65536 134217728
#
# # Maximum number of packets queued on the input side
net.core.netdev_max_backlog = 300000
#
# # Auto tuning
net.ipv4.tcp_moderate_rcvbuf =1
#
# # Don't cache ssthresh from previous connection
net.ipv4.tcp_no_metrics_save = 1
#
# # The Hamilton TCP (HighSpeed-TCP) algorithm is a packet loss based congestion control and is more aggressive pushing up to max bandwidth (total BDP) and favors hosts with lower TTL / VARTTL.
net.ipv4.tcp_congestion_control=htcp
#
# # If you are using jumbo frames set this to avoid MTU black holes.
net.ipv4.tcp_mtu_probing = 1
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment