Git Product home page Git Product logo

centos-kernel-416's Introduction

CentOS-Kernel-415

(fork from https://github.com/liberal-boy/tcp_tsunami)
CentOS kernel mainline v4.15 backup
Use this repo for new version of BBR (tsunami)

tcp_tsunami

tcp_tsunami adjust for kernel 4.13+(魔改版bbr,解决内核4.13+编译问题)

How to use

Update your kernel to 4.15 and make the default boot order (KVM CentOS7)

  1. Remove previous headers
  yum update
  reboot
  rpm -e --nodeps kernel-ml-headers
  1. Install kernel 4.15
  yum install git -y
  git clone -b master https://www.github.com/stardock/CentOS-Kernel-415
  cd CentOS-Kernel-415
  rpm -ivh kernel-ml-4.15.4-1.el7.elrepo.x86_64.rpm
  rpm -ivh kernel-ml-devel-4.15.4-1.el7.elrepo.x86_64.rpm
  rpm -ivh kernel-ml-headers-4.15.4-1.el7.elrepo.x86_64.rpm
  1. Check the boot order and make default boot

awk -F\' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2.cfg
grub2-set-default 0

Install tsunami

  1. yum install -y make gcc wget 安装make gcc
  2. yum install -y elfutils-libelf-devel Centos7中需要安装elfutils-libelf-devel / libelf-dev / libelf-devel

Option 1 编译安装

wget https://raw.githubusercontent.com/liberal-boy/tcp_tsunami/master/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

Option 2 直接下载编译好的文件

wget https://raw.githubusercontent.com/stardock/CentOS-Kernel-415/master/tcp_tsunami.ko
insmod tcp_tsunami.ko

执行剩下操作

cp -rf ./tcp_tsunami.ko /lib/modules/$(uname -r)/kernel/net/ipv4
depmod -a
modprobe tcp_tsunami
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=tsunami" >> /etc/sysctl.conf
echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf
sysctl -p
  1. Check 检查 sysctl net.ipv4.tcp_congestion_control

centos-kernel-416's People

Contributors

stardock avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.