diff --git a/sysctl.conf b/sysctl.conf index ef834bc..e69c751 100644 --- a/sysctl.conf +++ b/sysctl.conf @@ -33,6 +33,7 @@ # http://www.speedguide.net/read_articles.php?id=121 # http://lartc.org/howto/lartc.kernel.obscure.html # http://en.wikipedia.org/wiki/Sysctl +# https://blog.cloudflare.com/http-2-prioritization-with-nginx/ @@ -187,10 +188,11 @@ net.ipv6.conf.eth0.accept_ra=0 ### TUNING NETWORK PERFORMANCE ### ### -# For high-bandwidth low-latency networks, use 'htcp' congestion control -# Do a 'modprobe tcp_htcp' first -net.ipv4.tcp_congestion_control = htcp - +# Use BBR TCP congestion control and set tcp_notsent_lowat to 16384 to ensure HTTP/2 prioritization works optimally +# Do a 'modprobe tcp_bbr' first (kernel > 4.9) +net.ipv4.tcp_congestion_control = bbr +net.ipv4.tcp_notsent_lowat = 16384 + # For servers with tcp-heavy workloads, enable 'fq' queue management scheduler (kernel > 3.12) net.core.default_qdisc = fq