zramSwap.algorithm
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 string- Default
"zstd"- Example
"lz4"- Declared
- <nixpkgs/nixos/modules/config/zram.nix>