Skip to content

Instantly share code, notes, and snippets.

@antonfirsov
Last active January 26, 2022 00:49
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antonfirsov/f9b4a1d694e356f9e9e2e235f12147a6 to your computer and use it in GitHub Desktop.
Save antonfirsov/f9b4a1d694e356f9e9e2e235f12147a6 to your computer and use it in GitHub Desktop.
Patch Ubuntu 18.04 LTS for io_uring
mkdir liburing
pushd liburing
git clone https://github.com/axboe/liburing.git
pushd liburing
./configure
make
sudo make install
popd
popd
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 ..
@Airstriker
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment