# Copy to %UserProfile%\.wslconfig, then run `wsl --shutdown`. # For a 32 GB / 16-thread PC. Don't go above ~24 GB: at 30 GB Windows ran out of memory mid-build. # zram (scripts/enable-zram.sh) + SSD swap absorb the build's memory peaks. [wsl2] memory=24GB swap=64GB processors=16 [experimental] # Give file cache back to Windows ("disabled" made WSL hoard ~17 GB of cache). autoMemoryReclaim=dropCache