Closed nanqinlang closed 6 years ago
CentOS 7 kernel-ml-4.14.12-1 可正常通过编译 使用暂时正常
Sent from my Pixel using FastHub
@Love4Taylor
CentOS
那边的 PTI 是哪个版本内核更新的, 我还没去看呢
there is a script:
wget https://github.com/nanqinlang-tcp/tcp_nanqinlang/releases/download/daily-20180105/tcp_nanqinlang-daily20180105.sh
bash tcp_nanqinlang-daily20180105.sh
requirement, only: Debian7+ 64bit KVM
usage:
I don't know what's going wrong when I run second choice
make: *** [install] Error 1 net.ipv4.ip_forward = 1 fs.file-max = 51200 net.core.rmem_max = 67108864 net.core.wmem_max = 67108864 net.core.netdev_max_backlog = 250000 net.core.somaxconn = 4096 net.ipv4.tcp_syncookies = 1 net.ipv4.tcp_tw_reuse = 1 sysctl: cannot stat /proc/sys/net/ipv4/tcp_tw_recycle: No such file or directory net.ipv4.tcp_fin_timeout = 30 net.ipv4.tcp_keepalive_time = 1200 net.ipv4.ip_local_port_range = 10000 65000 net.ipv4.tcp_max_syn_backlog = 8192 net.ipv4.tcp_max_tw_buckets = 5000 net.ipv4.tcp_fastopen = 3 net.ipv4.tcp_mem = 25600 51200 102400 net.ipv4.tcp_rmem = 4096 87380 67108864 net.ipv4.tcp_wmem = 4096 65536 67108864 net.ipv4.tcp_mtu_probing = 1 net.core.default_qdisc = fq net.ipv4.tcp_congestion_control = nanqinlang [Error] tcp_nanqinlang not installed !
@teochen
make: *** [install] Error 1
这行附近上下的信息呢
tcp_nanqinlang.c 100%[===========================================================>] 34.45K --.-KB/s in 0.1s
2018-01-07 09:07:12 (273 KB/s) - ‘tcp_nanqinlang.c’ saved [35274/35274]
--2018-01-07 09:07:12-- https://raw.githubusercontent.com/nanqinlang-tcp/tcp_nanqinlang/master/Makefile/Makefile-Debian7or8 Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.0.133, 151.101.64.133, 151.101.128.133, ... Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 412 [text/plain] Saving to: ‘Makefile’
Makefile 100%[===========================================================>] 412 --.-KB/s in 0s
2018-01-07 09:07:12 (1.82 MB/s) - ‘Makefile’ saved [412/412]
make -C /lib/modules/uname -r
/build M=pwd
modules CC=/usr/bin/gcc-4.9
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-999-lowlatency'
CC [M] /home/tcp_nanqinlang/tcp_nanqinlang.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/tcp_nanqinlang/tcp_nanqinlang.mod.o
LD [M] /home/tcp_nanqinlang/tcp_nanqinlang.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-999-lowlatency'
install tcp_nanqinlang.ko /lib/modules/uname -r
/kernel/net/ipv4
insmod /lib/modules/uname -r
/kernel/net/ipv4/tcp_nanqinlang.ko
insmod: ERROR: could not insert module /lib/modules/4.15.0-999-lowlatency/kernel/net/ipv4/tcp_nanqinlang.ko: File exists
Makefile:10: recipe for target 'install' failed
make: *** [install] Error 1
@teochen
运行 lsmod
看看
make -C /lib/modules/uname -r
/build M=pwd
modules CC=/usr/bin/gcc-4.9
make[1]: Entering directory /usr/src/linux-headers-4.15.0-999-lowlatency' Building modules, stage 2. MODPOST 0 modules make[1]: Leaving directory
/usr/src/linux-headers-4.15.0-999-lowlatency'
install tcp_nanqinlang.ko /lib/modules/uname -r
/kernel/net/ipv4
install: cannot stat ‘tcp_nanqinlang.ko’: No such file or directory
make: *** [install] Error 1
fs.file-max = 51200
net.core.rmem_max = 67108864
net.core.wmem_max = 67108864
net.core.netdev_max_backlog = 250000
net.core.somaxconn = 4096
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_tw_reuse = 1
sysctl: cannot stat /proc/sys/net/ipv4/tcp_tw_recycle: No such file or directory
net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_keepalive_time = 1200
net.ipv4.ip_local_port_range = 10000 65000
net.ipv4.tcp_max_syn_backlog = 8192
net.ipv4.tcp_max_tw_buckets = 5000
net.ipv4.tcp_fastopen = 3
net.ipv4.tcp_mem = 25600 51200 102400
net.ipv4.tcp_rmem = 4096 87380 67108864
net.ipv4.tcp_wmem = 4096 65536 67108864
net.ipv4.tcp_mtu_probing = 1
net.core.default_qdisc = fq
sysctl: setting key "net.ipv4.tcp_congestion_control": No such file or directory
net.ipv4.tcp_congestion_control = nanqinlang
why daily
http://kernel.ubuntu.com/~kernel-ppa/mainline/daily/current/CHANGES
that's why i choose a daily kernel to use.
enable tcp_nanqinlang
to enable tcp_nanqinlang for that kernel, you should run the following directive:
then,
reboot
your device, then run these: