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:

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

ROCK 5 ITX RK3588 mini-ITX motherboard
Notify of
The comment form collects your name, email and content to allow us keep track of the comments placed on the website. Please read and accept our website Terms and Privacy Policy to post a comment.
5 years ago

Or you could just use Linux and ditch Windows 10 altogether

5 years ago

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 …

5 years ago

Year of the Linux desktop, windows 😉

Jon Smirl
5 years ago

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… Read more »

Khadas VIM4 SBC