ubuntu 和debian安装xanmod 内核
xanmod是一个为ubuntu或者debian设计的 自定制linux内核版本。
可以把它理解为一个汽车的发动机,这个是加强版的。
特性有:
- Preemptive Full Tickless Kernel at 500Hz w/ Tuned CPU Core Scheduler.【更快的cpu调度】
- RCU Boost for better responsiveness and lower overall system latency.【更低的系统延迟】
- Full multi-core block layer runqueue requests for high I/O throughput.【更高的io吞吐】
- Caching, Virtual Memory Manager and CPUFreq Governor improvements.【缓存优化】
- BBR TCP Congestion Control + FQ-PIE Packet Scheduling and AQM Algorithm [5.9][5.9-rt][5.8].【网络吞吐性能,延时降低优化】
- ORC Unwinder for Kernel Stack Traces (debuginfo) implementation.【debug trace功能】
- Third-party patchset available: ZSTD kernel, initrd and modules support [5.9][5.9-rt]5.8], x86_64 FSGSBASE instructions [5.9][5.9-rt][5.8], Clear Linux [partial], CK's Hrtimer Patchset, Wine / Proton Fsync, PCIe ACS Override, Aufs [5.4] and GCC graysky's.
- Real-time Linux kernel (PREEMPT_RT) build available [5.9-rt][5.4-rt].【实时内核调度】
- Generic kernel package for compatibility with most Debian & Ubuntu based distributions. Built on the latest GCC 10.2 and Binutils 2.35.【兼容ubuntu debian】
- GPLv2 license. Can be built for any distribution or purpose.【gpl v2许可证】
可以在桌面版,以及vps上体验。不建议直接用于生产。当然了,生产服务器,我相信很多人还是用的CentOS,那就跟本文没有什么关系了
在Ubuntu或者debian下面安装体验很简单,用root用户身份,执行下面的命令就可以安装
echo 'deb http://deb.xanmod.org releases main' | tee /etc/apt/sources.list.d/xanmod-kernel.list && wget -qO - https://dl.xanmod.org/gpg.key | apt-key add -
apt-get update
apt-get install -y linux-xanmod-rt-edge
如果要体验网络优化,系统参数还需要设置, 编辑/etc/sysctl.conf
net.core.default_qdisc = fq_pie
net.ipv4.tcp_congestion_control = bbr
然后执行
sysctl -p
重启一下系统,配置+内核就是用新的了。
经过我的测试,系统资源占用有了改善,并且网络性能更好了
分类: Linux/Unix 标签: Linux ubuntu debian 内核 发布于: 2020-12-26 19:24:20, 点击数: