boot.zswap.maxPoolPercent

NixOS option

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%

type: integer between 1 and 100 (both inclusive)
Default
25
declared in: nixos/modules/system/boot/zswap.nixView source on NixOS/nixpkgs →