How to check if ZRAM is working correctly?

I am on 2.5.9-1 on a PI4 4GB version 1.2
Not using an SD but using an SSD only, so do I need to use ZRAM or is worthless using ZRAM with a SSD?

I just checked with dmesg for the ZRAM devices and I can see the following, is that showing me
that all runs OK?

[ 8.261748] zram: Added device: zram0
[ 8.269952] zram0: detected capacity change from 0 to 629145600
[ 8.270363] zram: Can’t change algorithm for initialized device
[ 8.410796] Adding 614396k swap on /dev/zram0. Priority:75 extents:1 across:614396k SSFS
[ 8.619791] zram: Added device: zram1
[ 8.635357] zram1: detected capacity change from 0 to 524288000
[ 8.635904] zram: Can’t change algorithm for initialized device
[ 8.850590] Adding 2097148k swap on /var/swap. Priority:-2 extents:39 across:5529596k SSFS
[ 9.000628] EXT4-fs (zram1): mounted filesystem with ordered data mode. Opts: (null)
[ 9.000670] ext4 filesystem being mounted at /opt/zram/zram1 supports timestamps until 2038 (0x7fffffff)
[ 9.610772] zram: Added device: zram2
[ 9.618472] zram2: detected capacity change from 0 to 524288000
[ 9.620353] zram: Can’t change algorithm for initialized device
[ 9.965908] EXT4-fs (zram2): mounted filesystem with ordered data mode. Opts: (null)
[ 9.965948] ext4 filesystem being mounted at /opt/zram/zram2 supports timestamps until 2038 (0x7fffffff)

Thanks for clarification

You don’t need ZRAM if using an SSD.

1 Like