Comment 8 for bug 996535

Revision history for this message
Kevin (scooby-2) wrote :

UPDATE:

The last 2 line of my dmesg file were:
# dmesg|tail -2
[ 6202.834745] zram: Creating 1 devices ...
[ 6203.394159] Adding 447752k swap on /dev/zram0. Priority:5 extents:1 across:447752k SS

Running the following gave me this:
cat /proc/swaps
Filename Type Size Used Priority
/dev/dm-0 partition 2048252 2820 -1
/dev/zram0 partition 447752 20 5
so it looked like zram was running.

However, after a reboot the zram entry was missing from /proc/swaps file. It looks like the service is running:
# sudo service zramswap status
zramswap start/running
but not providing any swap. I did try running:
# update-rc.d zramswap defaults
which gave an error about missing LSB information and so doesn't work.

I found that if I stop and restart the zram service:
# service zram stop
# service zram start
then everything appears to work OK UNTIL THE NEXT REBOOT ONLY.

Note that I ran all the above commands as root.

Apologies. This is now beyond me!