debian开启bbrpuas并进行优化
- 开启BBRplus
首先需要安装最新版内核,可以通过以下命令进行安装:
apt update && apt upgrade
apt install linux-image-amd64 linux-headers-amd64
安装完成后,编辑 /etc/sysctl.conf 文件,添加以下配置:
net.core.default_qdisc=fq
net.ipv4.tcp_congestion_control=bbrplus
保存后执行 sysctl -p 命令使配置生效。
- 优化TCP参数
编辑 /etc/sysctl.conf 文件,根据服务器的带宽进行调整(以下为示例值):
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_sack = 1
net.ipv4.tcp_fack = 1
net.ipv4.tcp_low_latency = 1
net.ipv4.tcp_adv_win_scale = 2
net.ipv4.tcp_max_syn_backlog = 8192
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_mtu_probing = 1
net.ipv4.tcp_fastopen = 3
保存后执行 sysctl -p 命令使配置生效。
- 优化网络驱动
编辑 /etc/modprobe.d/50-net.conf 文件,添加以下配置(根据网卡型号和驱动不同,配置可能会有所不同):
options ixgbe RxDescriptors=4096,4096,4096,4096,4096,4096,4096,4096 TxDescriptors=4096,4096,4096,4096,4096,4096,4096,4096 InterruptThrottleRate=0,0,0,0,0,0,0,0
保存后执行 update-initramfs -u 命令使配置生效。
- 重启服务器
执行 reboot 命令重启服务器,重新登录后执行 lsmod 命令查看是否已经加载 bbrplus 模块,如果已经加载成功,则表示开启成功
原文地址: https://www.cveoy.top/t/topic/eBnc 著作权归作者所有。请勿转载和采集!