Skip to content

Instantly share code, notes, and snippets.

@alanshaw
Created May 8, 2020 10:13
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 alanshaw/fe2b1438e225b3729290f737cb00570d to your computer and use it in GitHub Desktop.
Save alanshaw/fe2b1438e225b3729290f737cb00570d to your computer and use it in GitHub Desktop.
Notes on network debugging

https://access.redhat.com/solutions/30453

dmesg -wH
sysctl net.netfilter.nf_conntrack_max
net.netfilter.nf_conntrack_max = 196608

sysctl net.core.somaxconn
net.core.somaxconn 128

sysctl net.ipv4.tcp_max_syn_backlog
net.ipv4.tcp_max_syn_backlog 512

sysctl net.core.netdev_max_backlog
net.core.netdev_max_backlog 1000

# Up the limits
# see https://wiki.mikejung.biz/Sysctl_tweaks
sysctl -w net.netfilter.nf_conntrack_max=500000
sysctl -w net.ipv4.tcp_max_syn_backlog=131072
sysctl -w net.core.somaxconn=131072
sysctl -w net.core.netdev_max_backlog=5000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment