Windows Subsystem for Linux 2 Gets a Linux Kernel, Faster File System, Docker Support

Microsoft first introduced Windows Subsystem for Linux in 2016 in order to let developers runs bash command from Ubuntu user space without having to install Ubuntu in a virtual machine or container. It relies on the Windows kernel with a library converting Linux system calls into ones compatible with Windows. Performance is great until you start to involve file systems calls, for example during code compilations, something that’s fairly common for developers…

Microsoft has been working on solving this performance issue, and compatibility issues with software such as Docker, and is now close to releasing Windows Subsystem for Linux 2 (WSL 2) featuring its own Linux 4.19 kernel instead of the Windows kernel plus a translation layer.

Windows Subsystem for Linux 2 WSL 2
Click to Enlarge

WSL 2 uses virtualization technology to run its custom Linux kernel inside of a lightweight utility virtual machine (VM) which takes just 2 seconds to boot. That also means there will be separate (security) updates for the Windows kernel and the Linux kernel with the latter also updated transparently through Windows updates.

Vastly improved file systems performance, means WSL 2 is now up to 20 times faster when unpacking a zipped tarball, and around 2 to 5x faster when using git clone, npm install and cmake on various projects. Improved compatibility due to the removal of the system calls translation layer means the Linux version of Docker and FUSE are working.

Initial builds of WSL 2 will be available through the Windows insider program by the end of June 2019, and the source code for the optimized Linux 4.19 kernel will be released on Github. On a separate topic still relevant to Windows developers, Microsoft also announced a new version of the Windows Terminal, and published the source code.

Via Liliputing

Share this:
FacebookTwitterHacker NewsSlashdotRedditLinkedInPinterestFlipboardMeWeLineEmailShare

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

ROCK Pi 4C Plus

4 Replies to “Windows Subsystem for Linux 2 Gets a Linux Kernel, Faster File System, Docker Support”

    1. But then you won’t be able to “enjoy” linux updates brought to you by windows update.

      … Windows is configuring your Linux kernel – Don’t shut off your computer …

  1. Maybe this one will be better. The old one was pig slow and wouldn’t run anything complicated. It was like a demo system where only the demo apps worked.

    I tried running the old one because I was having major problems with 3D driver stability on Linux and the Windows drivers were stable. But that seems to be fixed now. For the last year I have been running Linux as my base and Windows in Virtualbox when I have to run a Windows only app.

    If you haven’t checked it out, take a look at onshape for online CAD. It is free if you make your work public.
    https://www.onshape.com/products/free
    That’s the 3D app that I could not stably run on Linux a couple of years ago, it works now.

Leave a Reply

Your email address will not be published. Required fields are marked *

Khadas VIM4 SBC
Khadas VIM4 SBC