configuration-templates – Blame information for rev
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
120 | office | 1 | # Default: cubic |
2 | net.ipv4.tcp_congestion_control=htcp |
||
3 | |||
4 | # CoDel (Default: pfifo_fast) |
||
5 | # https://lwn.net/Articles/616241/ |
||
6 | net.core.default_qdisc=fq_codel |
||
7 | |||
8 | # Default: 32768 60999 |
||
9 | net.ipv4.ip_local_port_range=1025 65535 |
||
10 | |||
11 | # TCP window scaling tries to avoid saturating the network adapter with |
||
12 | # incoming packets. |
||
13 | net.ipv4.tcp_window_scaling = 1 |
||
14 | |||
15 | # If enabled, assume that no receipt of a window-scaling option means that |
||
16 | # the remote TCP is broken and treats the window as a signed quantity. If |
||
17 | # disabled, assume that the remote TCP is not broken even if we do not |
||
18 | # receive a window scaling option from it. |
||
19 | net.ipv4.tcp_workaround_signed_windows = 1 |
||
20 | |||
21 | # RFC 1337, TIME-WAIT Assassination Hazards in TCP, a fix written in 1992 |
||
22 | # for some theoretically-possible failure modes for TCP connections. To |
||
23 | # this day this RFC still has people confused if it negatively impacts |
||
24 | # performance or not or is supported by any decent router. Murphy's Law is |
||
25 | # that the only router that it would even have trouble with, is most likely |
||
26 | # your own. |
||
27 | net.ipv4.tcp_rfc1337 = 1 |
||
28 | |||
29 | # TCP SACK and FACK refer to options found in RFC 2018 and are also |
||
30 | # documented back to Linux Kernel 2.6.17 with an experimental "TCP-Peach" |
||
31 | # set of functions. These are meant to get you your data without excessive |
||
32 | # losses. |
||
33 | net.ipv4.tcp_sack = 1 |
||
34 | net.ipv4.tcp_fack = 1 |
||
35 | |||
36 | # RFC 2923 IPv6 uses PMTU by default to avoid segmenting packets at the |
||
37 | # router level, but its optional for IPv4. PMTU is meant to inform routers |
||
38 | # of the best packet sizes to use between links, but its a common admin |
||
39 | # practice to block ICMP ports that allow pinging, thus breaking this |
||
40 | # mechanism. Linux tries to use it, and so do I: if you have problems, you |
||
41 | # have a problem router, and can change the "no" setting to 1. "MTU probing" |
||
42 | # is also a part of this: 1 means try, and 0 means don't. |
||
43 | net.ipv4.ip_no_pmtu_disc = 0 |
||
44 | net.ipv4.tcp_mtu_probing = 1 |
||
45 | |||
46 | # Don't ignore ICMP |
||
47 | net.ipv4.icmp_echo_ignore_all=0 |
||
48 | net.ipv4.icmp_echo_ignore_broadcasts=0 |
||
49 | |||
50 | # Netflix 2014 EC2 sysctl tweaks |
||
51 | # http://www.slideshare.net/AmazonWebServices/pfc306-performance-tuning-amazon-ec2-instances-aws-reinvent-2014 |
||
52 | net.core.somaxconn=1000 |
||
53 | net.core.netdev_max_backlog=5000 |
||
54 | net.core.rmem_max=16777216 |
||
55 | net.core.wmem_max=16777216 |
||
56 | net.ipv4.tcp_wmem=4096 12582912 16777216 |
||
57 | net.ipv4.tcp_rmem=4096 12582912 16777216 |
||
58 | net.ipv4.tcp_max_syn_backlog=8096 |
||
59 | net.ipv4.tcp_slow_start_after_idle=0 |
||
60 | net.ipv4.tcp_tw_reuse=1 |