boot.zswap.compressor
NixOS option
Compression algorithm to use for zswap. Available options: ‘zstd’: Best compression ratio, excellent for Nix builds (default) ‘lz4’: Fastest compression, lowest latency ‘lz4hc’: High-compression variant of lz4, slower but better ratio ‘lzo’: Good balance of speed and compression (kernel default) ‘deflate’: Higher compression, slower processing ‘842’: Hardware-accelerated compression on supported systems Note: The chosen algorithm must be supported by your kernel configuration.
type: one of "zstd", "lz4", "lzo", "lz4hc", "deflate", "842"Default
declared in: nixos/modules/system/boot/zswap.nixView source on NixOS/nixpkgs →"zstd"