Here are my tips and suggestions, that I apply to a server for performance enhancement.
I find these values to be safe to run any and everywhere.
sysctl -w net.core.rmem_max=16777216
sysctl -w net.core.wmem_max=16777216
sysctl -w net.core.rmem_default=16777216
sysctl -w net.core.wmem_default=16777216
sysctl -w net.core.optmem_max=40960
sysctl -w net.ipv4.tcp_rmem='4096 87380 16777216'
sysctl -w net.ipv4.tcp_wmem='4096 65536 16777216'
sysctl -w net.ipv4.tcp_window_scaling=1
sysctl -w net.ipv4.tcp_fin_timeout=30
sysctl -w net.ipv4.tcp_keepalive_time=1800
sysctl -w net.ipv4.ip_local_port_range='1024 65000'
For those that use puppet, for your hiera configs:
sysctl:
net.core.rmem_max:
value: "16777216"
net.core.wmem_max:
value: "16777216"
net.core.rmem_default:
value: "16777216"
net.core.wmem_default:
value: "16777216"
net.core.optmem_max:
value: "40960"
net.ipv4.tcp_rmem:
value: "4096 87380 16777216"
net.ipv4.tcp_wmem:
value: "4096 87380 16777216"
net.ipv4.tcp_window_scaling:
value: '1'
net.ipv4.tcp_fin_timeout:
value: '30'
net.ipv4.tcp_keepalive_time:
value: '1800'
net.ipv4.ip_local_port_range:
value: '1024 65000'
HTH
Brent
No comments:
Post a Comment