The new Windows subsystem for Linux architecture: a deep dive - BRK3068

Channel:Microsoft Developer · Length:58:11 · Published:2019-05-08 · Views:188164

Watch on YouTube

Summary

A Microsoft Build 2019 session in which the WSL team explains the new WSL 2 architecture, which runs a real Linux kernel alongside Windows on a hypervisor. It covers faster file performance, Linux file access from Windows and better application support.

Why HN recommends it

HN points to it as the authoritative source for how WSL2 works and why Microsoft rebuilt it.

the Build talk where WSL2 was introduced is pretty in-depth and does a great job of talking about the motivation — HN, 2020

Operating systems & kernels · Linux & open-source ecosystems

Subtitles (excerpt)

AT THE END OF OUR 60 MINUTES WE WANT YOU TO COME AWAY WITH KNOWING WHATTING WSL IS, WHAT ARE THE DIFFERENCES BETWEEN WSL1 AND WSL2. OUR GOALS FOR WSL IN THE FUTURE SO OUR FUTURE ROAD MAP. YOU WILL BE SEEING WSL2 IN ACTION. I WAS USING IT AND WHAT YOU CAN EXPECT WHEN YOU ARE ABLE TO START USING IT VERY SOON. SO WHERE WE JUMP IN LET'S SITUATE OURSELVES IN WSL. IS THERE ANY ONE WHO HASN'T USED WSL RECENTLY OR HAS USED IT BEFORE AND ARE TRYING TO JUMP BACK IN. I SEE SOME HANDS. WSL IS AWESOME. THAT'S GREAT. THAT'S WHY YOU ARE HERE TO TALK ABOUT IT. IT IS GREAT. WHERE IT IS GREAT IS BECAUSE IT ALLOWS YOU TO RUN UNMODIFIED L62 LINGUISTIC ON -- LINUX ON WINDOWS. IF YOU ARE SOMEBODY WHO USES WINDOWS IT OPENS THE WILD WORLD OF LINUX TO YOU ON YOUR MACHINE AN EASY WAY. YOU CAN PULL UP A BASS SHELL AND START WORKING RIGHT AWAY. YOU DON'T HAVE TO WORRY ABOUT DUAL BOOTING OR CONTEXT SWITCHING. EVERYTHING IS AVAILABLE ON YOUR MACHINE TO USE WHETHER YOU ARE USING A LINUX OR WINDOWS ENVIRONMENT. ON THE OTHER SIDE OF THAT IF YOU ARE SOMEBODY TO LOVES LINUX WSL IS AN AWESOME OPPORTUNITY TO USE LINUX ON A WINDOWS MACHINE. YOU CAN USE FAVORITE WINDOWS TOOLS LIKE AN APP YOU PREFER TO RUN ON WINDOWS LIKE PHOTO SHOP ON THE FRONT END WHILE MAINTAINING

On Hacker News

If you're interested, the Build talk where WSL2 was introduced is pretty in-depth and does a great job of talking about the motivation. See starting around this point: [VIDEO] — mikepurvis, 2020-01
It’s happening at the hypervisor level, and in this case it’s Type 1, so I guess you could but I don’t know how. My ops colleagues are hanging their heads at me right now. You can learn more about the architecture of WSL2 in this video from Build [VIDEO] — filmgirlcw, 2019-06
The WSL2 architecture video lists two motivators from WSL1 based on number of Github issues. One of them being file performance and the other syscall compatibility with some specific examples being the ptrace syscall and Docker compatibilty. [VIDEO] The HN submission for the youtube video also has discussion about the same topics. [LINK] — FatalException, 2023-04
> It seems the obvious way to do this was to have SMB mounts on either side and optimize the hell out of the already existing SMB implementations on both OSes to get the performance close enough to disk. That's basically what they're doing, only that it's not SMB but 9p protocol servers. Here is a video where they discuss the WSL2 architecture. The link is time-stamped to go to an overview pictur… — lower, 2020-05
[VIDEO] WinNT Kernel and Linux Kernel are running on top of Hypervisor platform side-by-side .... not one-in-the-other. — sandGorgon, 2020-01

Related videos