zramSwap.algorithm
NixOS option
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
type: one of "842", "lzo", "lzo-rle", "lz4", "lz4hc", "zstd" or stringDefault
"zstd"
Example
declared in: nixos/modules/config/zram.nixView source on NixOS/nixpkgs →"lz4"