TCP利器tcp-brutal

创建于:2025-11-15 修改于:2025-11-17

TCP 利器 tcp-brutal

Loading image...
Please wait a moment
 1  
 2cat > /etc/sysctl.conf << EOF  
 3fs.file-max = 6815744  
 4net.ipv4.tcp_no_metrics_save=1  
 5net.ipv4.tcp_ecn=0  
 6net.ipv4.tcp_frto=0  
 7net.ipv4.tcp_mtu_probing=0  
 8net.ipv4.tcp_rfc1337=0  
 9net.ipv4.tcp_sack=1  
10net.ipv4.tcp_fack=1  
11net.ipv4.tcp_window_scaling=1  
12net.ipv4.tcp_adv_win_scale=1  
13net.ipv4.tcp_moderate_rcvbuf=1  
14net.core.rmem_max=33554432  
15net.core.wmem_max=33554432  
16net.ipv4.tcp_rmem=4096 87380 33554432  
17net.ipv4.tcp_wmem=4096 16384 33554432  
18net.ipv4.udp_rmem_min=8192  
19net.ipv4.udp_wmem_min=8192  
20net.ipv4.ip_forward=1  
21net.ipv4.conf.all.route_localnet=1  
22net.ipv4.conf.all.forwarding=1  
23net.ipv4.conf.default.forwarding=1  
24net.core.default_qdisc=fq  
25net.ipv4.tcp_congestion_control=bbr  
26net.ipv6.conf.all.forwarding=1  
27net.ipv6.conf.default.forwarding=1  
28EOF  
29sysctl -p && sysctl --system  
30  
31  

net.ipv4.tcp_congestion_control=bbr or net.ipv4.tcp_congestion_control=cubic or net.ipv4.tcp_congestion_control=brutal

项目地址: https://github.com/apernet/tcp-brutal
论坛帖子: https://www.nodeseek.com/post-505403-1

Loading image...
Please wait a moment
1  
2#define INIT_PACING_RATE 75000000 // 500 Mbps+  
3#define INIT_CWND_GAIN 40  
4  

重新编译 tcp-brutal

 1  
 2root@racknerd-6bf1e7b:~/tcp-brutal# make  
 3make -C /lib/modules/6.8.0-87-generic/build M=/root/tcp-brutal modules  
 4make[1]: Entering directory '/usr/src/linux-headers-6.8.0-87-generic'  
 5warning: the compiler differs from the one used to build the kernel  
 6The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0  
 7You are using: gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0  
 8make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-87-generic'  
 9  
10  
11root@racknerd-6bf1e7b:~/tcp-brutal# insmod brutal.ko  
12  
13root@racknerd-6bf1e7b:~/tcp-brutal# lsmod |grep brutal  
14brutal 16384 56  
15  
16sysctl net.ipv4.tcp_congestion_control  
17sysctl -w net.ipv4.tcp_congestion_control=brutal #设置  
18sysctl -w net.ipv4.tcp_no_metrics_save=1 #切流量  
19  

总体感受没有那么长时间的缓冲了,可以瞬间提高速度到最大速度,秒开8K youtube视频。

💬 评论区