Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Linux kernel 5.9

2025-01-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to install Linux kernel 5.9. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

Linux kernel 5.9 brings many performance improvements that attract data center administrators, and the latest Linux kernel also brings some performance improvements, which will make specific users happier. Let's share with you the most important functions and installation methods of Linux kernel 5.9.

Img

Like 5. 8, Linux kernel 5. 9 doesn't really have any game-changing features, at least for the average user. However, if you are a hardcore IT professional, there may be several favorite features that will attract you to install the 5.9 kernel into a data center server (more on this later).

Take a look at some of the more important features of the latest Linux kernel.

Linux kernel 5.9: significantly improved performance

The big news is that Linux kernel 5.9 brings performance improvements to AMD and Intel architectures. Intel-based systems will get a performance boost through FSGSBASE support, and this version finally has full support. The FSGSBASE instruction is introduced with Intel Ivy Bridge CPU to improve performance when context switching is onerous. This new instruction also enables user space to write GSBASE without contacting the kernel. The addition of FSGSBASE will greatly improve the Linux kernel in terms of benchmarking and actual usage.

If you have ARM/ARM64 equipment in your data center, you will not be abandoned. The Linux kernel 5.9 brings performance improvements to this particular architecture through optimized scheduler utilization information Schedutil. This new feature is similar to Intel's P status push.

The ARM/ARM64 architecture also has new sysfs switching capabilities that control CPU energy efficiency optimization, as well as a number of CPUfreq fixes.

Linux kernel 5.9: storage and file system improvements

Considering that Fedora 33 is migrating to Btrfs, the new kernel seems appropriate. Linux kernel 5.9 brings many performance improvements to Btrfs. With the addition of increased support for NVMe 2.0 for SSD devices, file system performance on the server will also be greatly improved. An important enhancement for Btrfs is the addition of a new rescue mount option, which combines all existing mount options to ensure a more reliable recovery.

Btrfs is not alone in getting patches, tweaks, and various optimizations. XFS, ext4, and F2FS have attracted a lot of attention in the latest Linux kernel.

Linux kernel 5.9: other improvements and additions

There are many other improvements and additions that Linux data center administrators will find important. It mainly includes the following:

Better anonymous memory management; a new slab memory controller, which is expected to reduce overall kernel memory usage; kernels that support ZSTD compression, ramdisk, and initramfs, will reduce startup time; more support for the USB 4 specification; preliminary work on support for IBM POWER10 processors; and revised versions of race conditions and memory leaks on all modules.

How to install Linux kernel 5.9?

Before I introduce how to install the latest Linux kernel, I know you may not want to do so. Why? Because Linux distributions that support data centers, such as Ubuntu, RHEL, SLED, and CentOS, do not add optimizations to this release. As a result, while you may get performance improvements and other new features, you may miss out on the functionality gained by sticking to the default settings of the distribution.

You may have good reason to upgrade to this latest Linux kernel, or you may just want to test it on non-production systems. In any case, installing the latest Linux kernel is not that difficult (at least on some distributions).

I'll walk you through the process of installing the Linux 5.9 (mainline) kernel on Ubuntu Server and CentOS 8.

How do I install Linux kernel 5.920.04 on Ubuntu Server?

Log in to the server and download the necessary .deb files using the following command:

Cd / tmpwget-c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.9/amd64/linux-headers-5.9.0-050900_5.9.0-050900.202010112230_all.debwget-c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.9/amd64/linux-headers-5.9.0-050900-generic_5.9.0-050900.202010112230_amd64.debwget-c https://kernel.ubuntu.com/~kernel-ppa/mainline / v5.9/amd64/linux-image-unsigned-5.9.0-050900-generic_5.9.0-050900.202010112230_amd64.debwget-c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.9/amd64/linux-modules-5.9.0-050900-generic_5.9.0-050900.202010112230_amd64.deb

Once all the files have been downloaded, install them with this command:

Sudo dpkg-I * .deb

Restart after the installation is complete, it should be fine. Log in to the system again and execute the command:

Uname-r

You should see that the Ubuntu server is now running kernel 5.9.

How do I install Linux kernel 5.9 on CentOS 8?

You might as well do the same on CentOS 8 now. Log in to the server and first install the GPG key for the necessary code base using the following command:

Cat / etc/redhat-releaseuname-srvsudo rpm-- import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org

Use this command to install the code base:

Sudo dnf install https://www.elrepo.org/elrepo-release-8.0-2.el8.elrepo.noarch.rpm

Use this command to install the mainline (5.9) kernel:

Sudo dnf-enablerepo=elrepo-kernel install kernel-ml

Restart the CentOS system. Once you log back in, execute the command:

Uname-r

You should see that the Linux 5.9 kernel is listed.

Congratulations! You have successfully installed the 5.9 Linux kernel on both Ubuntu Server and CentOS 8. Do this on a test machine or virtual machine to see if the performance improvement of this latest kernel lives up to its name.

This is the end of this article on "how to install Linux kernel 5.9". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report