Why is WSL extremely slow when compared with native Windows NPM/Yarn processing?

Since you mention executing the same files (with proper performance) from within Git Bash, I’m going to make an assumption here. Correct me if I’m wrong on this, and I’ll delete the answer and look for another possibility. This would be explained (and expected) if your files are stored on /mnt/c (a.k.a. C:, or /C … Read more

docker on wsl2 very slow

This comes from the “vmmem” which consumes as much resource as it can. To solve the problem just go to your user file for me in C:\Users\userName In this directory create a file named “.wslconfig” in which you will configure how many resources can consume WSL2: [wsl2] memory=900MB #Limits VM memory in WSL 2 to … Read more

How to set up working X11 forwarding on WSL2 [closed]

TL;DR: Add the following to your ~/.bashrc: export DISPLAY=$(ip route list default | awk ‘{print $3}’):0 export LIBGL_ALWAYS_INDIRECT=1 Enable Public Access on your X11 server for Windows.* Add a separate inbound rule for TCP port 6000 to the windows firewall in order to allow WSL access to the X server, as described by the wsl-windows-toolbar-launcher … Read more

How can I change the location of docker images when using Docker Desktop on WSL2 with Windows 10 Home?

The WSL 2 docker-desktop-data vm disk image would normally reside in: %USERPROFILE%\AppData\Local\Docker\wsl\data\ext4.vhdx Follow the following to relocate it to other drive/directory, with all existing docker data preserved (tested against Docker Desktop 2.3.0.4 (46911), and continued to work after updating the 3.1.0 (51484)): First, shut down your docker desktop by right click on the Docker Desktop … Read more

tech