![]() This introduces a whole new set of apps that you can run inside of WSL. Now that WSL 2 includes its own Linux kernel it has full system call compatibility. However, it’s challenging to implement all of these system calls, resulting in some apps being unable to run in WSL 1. In WSL 1 we created a translation layer that interprets many of these system calls and allows them to work on the Windows NT kernel. Linux binaries use system calls to perform many functions such as accessing files, requesting memory, creating processes, and more. We’re looking forwards to seeing speed comparisons from the community when we release! Full System Call Compatibility ![]() ![]() Initial tests that we’ve run have WSL 2 running up to 20x faster compared to WSL 1 when unpacking a zipped tarball, and around 2-5x faster when using git clone, npm install and cmake on various projects. The actual speed increase will depend on which app you’re running and how it is interacting with the file system. You can expect more detail on the exact changes to the architecture posted to this blog in the near future, so please stay tuned! How much faster is WSL 2?įile intensive operations like git clone, npm install, apt update, apt upgrade, and more will all be noticeably faster. To summarize: while WSL 2 does use a VM, it will be managed and run behind the scenes leaving you with the same user experience as WSL 1. When we start our distro we get access to a working bash shell in under two seconds, and can run services and apps like docker right away. It will still give the remarkable benefits of WSL 1: High levels of integration between Windows and Linux, extremely fast boot times, small resource footprint, and best of all will require no VM configuration or management. When you think of a VM, you probably think of something that is slow to boot up, exists in a very isolated environment, consumes lots of computer resources and requires your time to manage it. However, WSL 2 will NOT be a traditional VM experience. WSL 2 uses the latest and greatest in virtualization technology to run its Linux kernel inside of a lightweight utility virtual machine (VM). A quick explanation of the architectural changes in WSL 2 If you’d like to read more about this kernel you can check out this blog post written by the team that built it. Lastly, of course this Linux kernel will be fully open source! When we release WSL 2 we will have the full configuration available online on Github, so you can see how it works and build it yourself. We will service this Linux kernel through Windows updates, which means you will get the latest security fixes and kernel improvements without needing to manage it yourself. It has been optimized for size and performance to give an amazing Linux experience on Windows. This kernel has been specially tuned for WSL 2. In initial builds we will ship version 4.19 of the kernel. However, this will be the first time a Linux kernel is shipped with Windows, which is a true testament to how much Microsoft loves Linux! We’ll be building the kernel in house from the latest stable branch, based on the source available at. This isn’t the first time Microsoft has shipped a Linux kernel, as we have already shipped one in 2018 when we announced Azure Sphere. Yes, you did just read that heading correctly! We will be shipping a real Linux kernel with Windows that will make full system call compatibility possible. Microsoft will be shipping a Linux kernel with Windows WSL 2 uses an entirely new architecture that uses a real Linux kernel. Individual Linux distros can be run either as a WSL 1 distro, or as a WSL 2 distro, can be upgraded or downgraded at any time, and you can run WSL 1 and WSL 2 distros side by side. This new architecture changes how these Linux binaries interact with Windows and your computer’s hardware, but still provides the same user experience as in WSL 1 (the current widely available version). WSL 2 is a new version of the architecture that powers the Windows Subsystem for Linux to run ELF64 Linux binaries on Windows. We have heard your feedback, and are glad to announce that WSL 2 helps solve these issues. Our top requests from the WSL community have been to increase the file system performance, and make more apps work inside of WSL (i.e: introduce better system call compatibility). Today we’re unveiling the newest architecture for the Windows Subsystem for Linux: WSL 2! Changes in this new architecture will allow for: dramatic file system performance increases, and full system call compatibility, meaning you can run more Linux apps in WSL 2 such as Docker.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |