Hacker News new | ask | show | jobs
by pknopf 2607 days ago
With the new WSL2, you can run Docker natively!
2 comments

How is performance? I used Windows subsystem for Linux a year or so ago. Using a package manager to pull down some dependencies, which should take on the order of tens of seconds took several minutes to complete. It was painfully slow.
WSL2 now uses VM technology, so the performance is now a lot better.
Wow, that's a welcomed change for me. I was trying every 3-4 months to get WSL working as a suitable development environment. There was always _something_. Excited to try this out again when I have a free day on a weekend.
WSL performance problems were mostly due to slow I/O.

How does virtualization fix that?

Translating syscalls to the NT kernel is slower than running Linux with a virtual filesystem.
But in the end, the virtual filesystem is backed up by done Windows storage?
Idk, but Microsoft cites these differences for the performance improvement.

Maybe things can be speed up/cached when you are one-to-mapping the syscalls to NT kernel.

WSL in beta was significantly faster than that. Not sure what was wrong with your install or if it was something else (apt-get has always been crazy fast for me).
Looking forward to trying it out. I hope this means nodemon, etc will work as expected without having to enable 'legacy mode'