Correction : etc/nsd/zone.d/cyclocoop.org.zone.m4 - Champs SPF
[lhc/ateliers.git] / etc / sysctl.d / local-net-tcp.conf
1 # DOC: http://dak1n1.com/blog/12-nginx-performance-tuning
2
3 # NOTE: increase system IPv4 port limits to allow for more connections.
4 net.ipv4.ip_local_port_range = 2000 65000
5 net.ipv4.tcp_window_scaling = 1
6
7 # NOTE: number of packets to keep in backlog before the kernel starts dropping them.
8 net.ipv4.tcp_max_syn_backlog = 3240000
9
10 # NOTE: increase socket listen backlog.
11 net.core.somaxconn = 3240000
12 net.ipv4.tcp_max_tw_buckets = 1440000
13
14 # NOTE: increase TCP buffer sizes.
15 net.core.rmem_default = 8388608
16 net.core.rmem_max = 16777216
17 net.core.wmem_max = 16777216
18 net.ipv4.tcp_congestion_control = cubic
19 net.ipv4.tcp_rmem = 4096 87380 16777216
20 net.ipv4.tcp_wmem = 4096 65536 16777216