centos环境 BBR魔改安装

rpm -ivh http://elrepo.org/linux/kernel/el7/x86_64/RPMS/kernel-ml-4.11.6-1.el7.elrepo.x86_64.rpm
#查看内核顺序
egrep ^menuentry /etc/grub2.cfg | cut -f 2 -d \’
#切换启动内核为0(第一个,有变动自己改)
grub2-set-default 0
reboot

#移除旧版+安装新版kernel-headers
yum remove kernel-headers
rpm -ivh http://elrepo.org/linux/kernel/el7/x86_64/RPMS/kernel-ml-headers-4.11.6-1.el7.elrepo.x86_64.rpm
#安装dev包
rpm -ivh http://elrepo.org/linux/kernel/el7/x86_64/RPMS/kernel-ml-devel-4.11.6-1.el7.elrepo.x86_64.rpm
yum install make gcc libtool perl-ExtUtils-Install gcc-c++ perl-ExtUtils-MakeMaker perl-ExtUtils-ParseXS perl-devel
wget -O ./tcp_tsunami.c https://gist.github.com/anonymous/ba338038e799eafbba173215153a7f3a/raw/55ff1e45c97b46f12261e07ca07633a9922ad55d/tcp_tsunami.c
echo “obj-m:=tcp_tsunami.o” > Makefile
make -C /lib/modules/$(uname -r)/build M=`pwd` modules CC=/usr/bin/gcc
insmod tcp_tsunami.ko
sysctl -w net.ipv4.tcp_congestion_control=tsunami

参考链接:
1. http://blog.csdn.net/dog250/article/details/52939004
2. http://blog.csdn.net/dog250/article/details/52879298
3. http://blog.csdn.net/dog250/article/details/52972502
4. https://patchwork.ozlabs.org/patch/671069/

仅有1条评论 发表评论

  1. 嘘嘘 /

    很久没更新了

发表评论