A simple workaround is to blacklist the zram module, and update your initramfs:
1. create a text file /etc/modprobe.d/blacklist-zram.conf: blacklist zram
2. enter command update-initramfs -c -k all
After reboot, the zram module will not be loaded anymore.
You can also temporarily unload the module:
1. list swap devices: swapon -s
- it should produce output similar to: Filename Type Size Used Priority /dev/zram0 partition 4102348 55052 100 /dev/sda9 partition 4112604 0 -1
2. now turn off swapping on zram0: sudo swapoff /dev/zram0
3. now that module is not used anymore, it can be unloaded: sudo rmmod zram
A simple workaround is to blacklist the zram module, and update your initramfs:
1. create a text file /etc/modprobe. d/blacklist- zram.conf:
blacklist zram
2. enter command
update-initramfs -c -k all
After reboot, the zram module will not be loaded anymore.
You can also temporarily unload the module:
1. list swap devices:
swapon -s
- it should produce output similar to:
Filename Type Size Used Priority
/dev/zram0 partition 4102348 55052 100
/dev/sda9 partition 4112604 0 -1
2. now turn off swapping on zram0:
sudo swapoff /dev/zram0
3. now that module is not used anymore, it can be unloaded:
sudo rmmod zram