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.
Declarations
Type
one of "zstd", "lz4", "lzo", "lz4hc", "deflate", "842"Default
"zstd"