Zram vs zswap. Why choose one over the other

This is mine. Physical RAM is 32Gb. I also have 8Gb of on disk swap. Performance has been excellent.

[zram0]
zram-size=8G
compression-algorith=zstd
swap-priority=100
Filename                                Type            Size            Used            Priority
/dev/zram0                              partition       8388604         224             100
/dev/sdb1                               partition       8191996         0               -2
2 Likes