Due to a zram bug leading to machine lock-ups, I've had to disable zram.
I thought dpkg --purge zram-config
as well as commenting any reference out of /etc/rc.local
would do the trick, but the module (and its ominous dmesg warnings Buffer I/O error on device zram0, logical block 257912
) keeps getting loaded.
I've grepped /etc/init
and /etc/init.d
for zram and there were no matches. I've even redefined mkswap
to log how it was called (because the "buffer errors" occur when mkswap touches protected memory) -- amazingly I didn't get any calls. So I can't figure out what configures zram (calling mkswap + swapon).
I've taken to breaking the zram.ko
to stop its loading. But I would still like to figure out what specific init script loads it. Any ideas?
Note that I'm looking for answers about how to track down which init or startup script configures zram -- I know very well that the bug might already be fixed, that you can disable zram in several ways etc, and such answers would be off-topic.
/sys/block/zram/size
. Does the module also perform mkswap? I doubt it. Look, if I typemodprobe zram
thenswapon /dev/zram0
I get an error,swapon: /dev/zram0: read swap header failed: Invalid argument
. Which means the swap space isn't formatted. I suspect you might be confused.