logoalt Hacker News

binsquare • today at 10:29 AM • 3 replies • view on HN

Lot of the WSL2 lag is not the VM itself, it's the 9P file sharing and interop.

I found that seems like anything under /mnt/c goes through 9P


Replies

chris_money202 • today at 11:15 AM

You’re not supposed to work out of the /mnt/c. A lot of people make this mistake and then complain that WSL is slow. On the native linux file system WSL is 100x faster for everything

➕ show 4 replies
pjmlp • today at 11:00 AM

There is virtio support now, and to be fair 9P was never an issue for me.

➕ show 1 reply
usrusr • today at 10:58 AM

And yet I had results perfectly within the range of "good enough" having an ai harness muck about in a work folder in a docker mount on a 9P mapped drive under permanent observation by an intelliJ instance on the Windows side before some buggy Windows update made it occasionally lock up under `npm i` sized filesystem loads. Crazy how far we've come.