Skip to content

Instantly share code, notes, and snippets.

@snikulov
Last active August 29, 2015 14:17
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 snikulov/cba685bf45c9fd06ee07 to your computer and use it in GitHub Desktop.
Save snikulov/cba685bf45c9fd06ee07 to your computer and use it in GitHub Desktop.
Linux UDP tunning
33 sudo sysctl -w net.ipv4.udp_rmem_min=131072
35 sudo sysctl -w net.ipv4.udp_wmem_min=131072
37 sudo sysctl -w net.core.rmem_max=67108864
39 sudo sysctl -w net.ipv4.udp_mem='262144 327680 393216'
>>>>>>>>>>> old values <<<<<<<<<<<<<<<<<<<
diode@tx:~$ sudo sysctl net |grep mem
[sudo] password for diode:
net.core.wmem_max = 2097152
net.core.rmem_max = 2097152
net.core.wmem_default = 2097152
net.core.rmem_default = 2097152
net.core.optmem_max = 20480
net.ipv4.igmp_max_memberships = 20
net.ipv4.tcp_mem = 96168 128224 192336
net.ipv4.tcp_wmem = 4096 16384 4103168
net.ipv4.tcp_rmem = 4096 87380 4103168
net.ipv4.udp_mem = 96168 128224 192336
net.ipv4.udp_rmem_min = 4096
net.ipv4.udp_wmem_min = 4096
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment