Hello! Thanks for the reply.
I'm running kernel 4.9.187-53 from the Ubuntu-minimal image. I'm not as familiar with Ubuntu so I was unaware that the zram-config package even existed -- its not included in the minimal image by default. I was doing the zram config manually... but now I've installed zram-config instead.
Anyway, zram is working (using both my manual config and the zram-config package!) but its using LZO compression...
Code: Select all
NAME ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram5 lzo 309.4M 4K 76B 12K 6 [SWAP]
/dev/zram4 lzo 309.4M 4K 76B 12K 6 [SWAP]
/dev/zram3 lzo 309.4M 4K 76B 12K 6 [SWAP]
/dev/zram2 lzo 309.4M 4K 76B 12K 6 [SWAP]
/dev/zram1 lzo 309.4M 4K 76B 12K 6 [SWAP]
/dev/zram0 lzo 309.4M 4K 76B 12K 6 [SWAP]
I wanted to use LZ4 compression instead of LZO as its likely to be faster decompressing at the expense of slightly worse compression. The issue is the default N2 kernel config only includes DEFLATE and LZO. Its missing LZ4 (and a couple others.) I guess its not critical to use LZ4 instead of LZO, but still might be worthwhile to include all the options as modules -- similar to the default config options for the XU4 4.14.x kernel.