Skip to content

Commit

Permalink
Merge pull request #3 from wk/patch-1
Browse files Browse the repository at this point in the history
Move from HTCP to BBR for tcp congestion control
  • Loading branch information
klaver authored Apr 5, 2019
2 parents e5d3aca + 8004f19 commit 28ddb99
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions sysctl.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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/



Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 28ddb99

Please sign in to comment.