Skip to content

Instantly share code, notes, and snippets.

@zhboner
zhboner / improving-tcp.conf
Last active June 5, 2020 12:16
Some helpful kernel parameters for improving network efficiency
net.core.rmem_default = 26214400
net.core.rmem_max = 26214400
net.core.wmem_default = 26214400
net.core.wmem_max = 26214400
net.core.netdev_max_backlog = 2000
net.core.somaxconn = 2048
net.core.optmem_max = 81920
net.ipv4.tcp_mem = 131072 262144 524288
net.ipv4.tcp_rmem = 8760 256960 4088000
net.ipv4.tcp_wmem = 8760 256960 4088000