Logic Encoder Blog

WSL 2 Advantages and Limits: How It Differs from WSL 1

Sep 11, 2025 Logic Encoder 4 min read

What WSL 2 changes, and where it is not the better choice

WSL 2 runs a real Linux kernel inside a lightweight virtual machine that Windows manages for you. WSL 1 instead translated Linux system calls. For most development work WSL 2 is the sensible default, but WSL 1 is still better in a few specific cases. This page compares them; for the installation itself see installing WSL2 on Windows.

In this guide

WSL 1 and WSL 2 compared

FeatureWSL 1WSL 2
Integration between Windows and LinuxYesYes
Fast startYesYes
Full Linux kernelNoYes
Full system call compatibilityNoYes
systemdNoYes
Fast access to files stored on Windows drivesYesNo

Condensed from Microsoft’s comparison of WSL versions. WSL 2 requires Windows 11, or Windows 10 version 1903 (build 18362) or later.

The main advantages of WSL 2

Linux software behaves like Linux

Because there is a real kernel, software that depends on system calls WSL 1 did not implement can run, including container engines. Docker Desktop on Windows can use WSL 2 as its backend.

Much faster file-heavy work inside Linux

Microsoft reports that early WSL 2 versions were up to 20 times faster than WSL 1 at unpacking a compressed archive, and roughly 2 to 5 times faster for git clone, npm install and cmake on various projects. Those are Microsoft’s figures against WSL 1, not measurements of your computer, and they apply to files kept in the Linux file system.

systemd services

With WSL 0.67.6 or newer you can enable systemd by adding these lines to /etc/wsl.conf inside the distribution:

[boot]
systemd=true

Then run wsl --shutdown from PowerShell and start the distribution again. Services alone do not keep the instance running.

GPU computing

GPU compute needs WSL 2 and Windows 11 or Windows 10 version 21H2 or later. For NVIDIA cards, install the driver on Windows only. NVIDIA’s WSL guide says not to install any Linux display driver inside WSL, because it overwrites the one mapped in from Windows. If you need the CUDA toolkit in the distribution, follow that guide and choose the toolkit package, not a driver package.

Keep project files on the Linux side

The speed advantage turns into a disadvantage when Linux tools work on files under /mnt/c. Microsoft advises storing files in the file system of the tools you use:

mkdir -p ~/projects
cd ~/projects
pwd        # should start with /home/, not /mnt/

From Windows you can still open those files at \\wsl.localhost\<distribution>\home\<user> in File Explorer. See copying files between Windows and WSL for what to watch out for.

When WSL 1 is still the better choice

Microsoft lists these exceptions:

  • Your project files have to stay in the Windows file system.
  • You cross-compile with Windows and Linux tools on the same files.
  • You need direct access to a serial port. (USB devices can be attached to WSL 2 with usbipd-win.)
  • You have strict memory limits.
  • You need the distribution to have an address on your local network the way the Windows host does.

The last two have partial answers in newer releases, described below.

Networking

By default WSL 2 uses network address translation (NAT). A web server you start in Linux can normally be opened from Windows at localhost, but other computers on your network cannot reach it without extra forwarding rules. On Windows 11 22H2 or later, mirrored networking mode allows connections from the local network and improves VPN compatibility. Opening a development server to the network exposes it; check the firewall and the server’s own access controls first.

Memory and processor limits

By default WSL 2 may use up to half of the computer’s memory and all logical processors. To set your own limits, create %UserProfile%\.wslconfig (all settings):

[wsl2]
memory=8GB
processors=4
swap=4GB

Choose values for your machine, then run wsl --shutdown so they take effect. Newer releases also have an experimental autoMemoryReclaim setting that returns cached memory to Windows.

Check and change the version

wsl --version
wsl --list --verbose
wsl --set-default-version 2
wsl --set-version Ubuntu 2

Replace Ubuntu with the name shown by the list command. Microsoft warns that switching a distribution between versions can take a long time and may fail, so export a backup first.

WSL 2, a virtual machine or dual boot?

If you needReasonable choice
Linux command-line tools next to Windows applicationsWSL 2
A chosen kernel, a full desktop installation or virtual hardware you controlA traditional virtual machine
Direct hardware access without a virtual layerA native Linux installation or dual boot

This table is our summary of the trade-offs rather than a benchmark.

Share this post

Previous Fix Python Import Errors: Interpreter, Environment and Dependency Checks Next Install Python 3, pip and venv on Ubuntu 22.04 and 24.04

Leave a comment

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