Last active
January 26, 2022 00:49
-
-
Save antonfirsov/f9b4a1d694e356f9e9e2e235f12147a6 to your computer and use it in GitHub Desktop.
Patch Ubuntu 18.04 LTS for io_uring
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir liburing | |
pushd liburing | |
git clone https://github.com/axboe/liburing.git | |
pushd liburing | |
./configure | |
make | |
sudo make install | |
popd | |
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "current kernel:" | |
uname -r | |
mkdir kernel-packages | |
cd kernel-packages | |
echo "--- dowloading kernel packages ---" | |
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.5.7/linux-headers-5.5.7-050507_5.5.7-050507.202002281805_all.deb | |
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.5.7/linux-headers-5.5.7-050507-generic_5.5.7-050507.202002281805_amd64.deb | |
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.5.7/linux-image-unsigned-5.5.7-050507-generic_5.5.7-050507.202002281805_amd64.deb | |
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.5.7/linux-modules-5.5.7-050507-generic_5.5.7-050507.202002281805_amd64.deb | |
echo "--- installing packages ---" | |
sudo dpkg --install *.deb | |
cd .. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since 18.04.3 LTS instead of patching the kernel manually all you need to do is:
On Ubuntu Server:
sudo apt-get install --install-recommends linux-generic-hwe-18.04
On Ubuntu Desktop:
sudo apt install --install-recommends linux-generic-hwe-18.04 xserver-xorg-hwe-18.04
and reboot the system. You will end up with kernel 5.4