sudo modprobe tcp_bbr
sysctl net.ipv4.tcp_available_congestion_control
sysctl net.ipv4.tcp_congestion_control
sudo sysctl net.ipv4.tcp_congestion_control=bbr
sysctl net.ipv4.tcp_congestion_control
如果要下次重启依旧保留这个配置,需要将这个key=value
添加到/etc/sysctl.d/
下的文件中(我用的arch),(/etc/sysctl.d/99-sysctl.conf
)
From version 207 and 21x, systemd only applies settings from
/etc/sysctl.d/*.conf
and/usr/lib/sysctl.d/*.conf
. If you had customized/etc/sysctl.conf
, you need to rename it as/etc/sysctl.d/99-sysctl.conf
. If you had e.g./etc/sysctl.d/foo
, you need to rename it to/etc/sysctl.d/foo.conf
.