MyNixOS website logo

Compression algorithm. lzo has good compression, but is slow. lz4 has bad compression, but is fast. zstd is both good compression and fast, but requires newer kernel. You can check what other algorithms are supported by your zram device with cat /sys/class/block/zram*/comp_algorithm.

Declarations
Type
one of "lzo", "lz4", "zstd" or string
Default
"zstd"
Example
"lz4"