Wednesday, June 6, 2018

Updated sysctl.conf for Kernel 4.x

# Mix of wiki.mikejung.biz/Sysctl_tweaks + stuff from unquietwiki.blogspot.com
# Tested with Linux Kernel 4.16.x ; 6-6-2018

# Change 8192 to 1024 or 2048 on small systems
# Change 2048 to 512 or 1024 on small systems
# Change bbr to illinois (wired) or westwood (wireless / lossy), if on pre-4.10 kernel

fs.file-max = 1048576
net.core.default_qdisc=fq_codel
net.core.netdev_max_backlog=8192
net.core.rmem_max=16777216
net.core.somaxconn=2048
net.core.wmem_max=16777216
net.ipv4.tcp_congestion_control=bbr
net.ipv4.tcp_max_syn_backlog=8192
net.ipv4.tcp_mtu_probing=1
net.ipv4.tcp_rmem=4096 12582912 16777216
net.ipv4.tcp_slow_start_after_idle=0
net.ipv4.tcp_tw_reuse=1
net.ipv4.tcp_wmem=4096 12582912 16777216
vm.swappiness=1