Hacker News new | ask | show | jobs
by selectodude 27 days ago
Au contraire, I run models on WSL and my desktop reliably wakes up from sleep. Best of both worlds.
2 comments

Watch out for VRAM/RAM. When programs on WSL tired to take more than there was available it was crashing my WSL hard and even corrupting files on the virtual drive attached to WSL in a very strange manner that made recent files just disappear. I had at leat two projects that had to be rebuilt from past conversation with AI because all their files were gone after few crashes.

I asked codex to write WSL config to prevent crashes. It put some limits on WSL and the situation stabilized, but I lost all trust for WSL anyways.

What are the config settings you needed?

TIA

That's my wslconfig file located in my %USERPROFILE% dir:

    [wsl2]
    memory=40GB
    processors=8
    swap=8GB
    swapFile=C:\\wsl-swap.vhdx
    localhostForwarding=true
    guiApplications=false
    vmIdleTimeout=30000
    maxCrashDumpCount=3
    
    [experimental]
    autoMemoryReclaim=gradual

I have 64GB of RAM and 24GB of VRAM.
Genuine question: what are the good parts of Windows that keep you there? I've been such a happy gamer/coder/media editor on Linux for so long that I really don't understand how Microsoft isn't dead yet.
My desktop is a game console and the games I play work on windows. And my computer reliably wakes from sleep.
My Linux laptop and desktop both handle gaming and waking from sleep just fine. I'd be more surprised if they didn't. You might like CachyOS or Bazzite if you try it.