News for hackers. Stuff that matters.
Re:Apple Announces Foundation Models and Containerization fr... by Asmod4n on Tuesday June 10, 2025 @06:47AM (#44235124)
It’s one reason i don’t like WSL2. When you compile something which needs 30 GB RAM the only thing you can do is terminate the wsl2 vm to get that ram back.
Re:Apple Announces Foundation Models and Containerization fr... by Quarrel on Tuesday June 10, 2025 @08:59AM (#44236249)
Since late 2023, WSL2 has supported "autoMemoryReclaim", nominally still experimental, but works fine for me.

add:

[experimental] autoMemoryReclaim=gradual

to your .wslconfig

See: https://learn.microsoft.com/en-us/windows/wsl/wsl-config