When inserting the zram module, it will be used by the lz4_compress module, and cannot be removed afterward:
ubuntu@modoc:~$ lsmod | grep zram ubuntu@modoc:~$ sudo modprobe zram ubuntu@modoc:~$ lsmod | grep zram zram 33608 1 lz4_compress 4465 1 zram ubuntu@modoc:~$ sudo modprobe -r zram modprobe: FATAL: Module zram is in use. ubuntu@modoc:~$ sudo modprobe -r lz4_compress modprobe: FATAL: Module lz4_compress is in use.
When inserting the zram module, it will be used by the lz4_compress module, and cannot be removed afterward:
ubuntu@modoc:~$ lsmod | grep zram
ubuntu@modoc:~$ sudo modprobe zram
ubuntu@modoc:~$ lsmod | grep zram
zram 33608 1
lz4_compress 4465 1 zram
ubuntu@modoc:~$ sudo modprobe -r zram
modprobe: FATAL: Module zram is in use.
ubuntu@modoc:~$ sudo modprobe -r lz4_compress
modprobe: FATAL: Module lz4_compress is in use.