Skip to content

Instantly share code, notes, and snippets.

@miticojo
Created March 5, 2020 08:02
Show Gist options
  • Save miticojo/41dc44bf037239a0443a15672128a24b to your computer and use it in GitHub Desktop.
Save miticojo/41dc44bf037239a0443a15672128a24b to your computer and use it in GitHub Desktop.
Kernel and Network Tuning

Kernel and Network Tuning Consider tuning kernel and network and add this kind of following settings in /etc/sysctl.conf:

net.ipv4.tcp_max_syn_backlog = 40000
net.core.somaxconn = 40000
net.core.wmem_default = 8388608
net.core.rmem_default = 8388608
net.ipv4.tcp_sack = 1
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_fin_timeout = 15
net.ipv4.tcp_keepalive_intvl = 30
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_moderate_rcvbuf = 1
net.core.rmem_max = 134217728
net.core.wmem_max = 134217728
net.ipv4.tcp_mem  = 134217728 134217728 134217728
net.ipv4.tcp_rmem = 4096 277750 134217728
net.ipv4.tcp_wmem = 4096 277750 134217728
net.core.netdev_max_backlog = 300000

source: https://gatling.io/docs/current/general/operations/#id3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment