How to Enable zram in Ubuntu 20.04
in Linux
Applies to:
Oracle Cloud Infrastructure - Version N/A and later
Ubuntu 20.04 and later
Goal
Enable zram module in ubuntu 20.04
Solution
In order to enable zram on Ubuntu in OCI, you have to install the linux-modules-extra-VERSION-oracle package corresponding to the same kernel version.
For kernel 5.15.0-1027-oracle run the following command:
$ sudo apt install linux-modules-extra-5.15.0-1027-oracle
Once installed, the zram module should be available, you can check with:
# sudo modprobe zram # sudo lsmod | grep zram
Tagged:
0