The maximum percentage of system memory that Zswap can occupy (1-100).
Higher values provide more compression cache but increase memory pressure. Default is 25% (higher than kernel default of 20%) for better Nix build performance.
Recommended ranges:
- Desktop systems: 15-25%
- Low-memory systems: 30-50%
- Server systems: 10-20%
Declarations
Type
integer between 1 and 100 (both inclusive)Default
25