3 ms·
What's the performance? WSL2 was really slow for hard disk access.
by samsaga2 5y ago
What's the performance? WSL2 was really slow for hard disk access.
- judge2020 5y agoWSL2 on Windows 11 uses the same file translation layer between the host FS and the VM FS as it did on 10, so pretty slow. The big improvement with WSLg is that now you can run desktop linux apps (such as your IDE) within the WSL file world, which should give you near-native FS performance as long as you're not accessing /mnt (and if you want to browse those files on Windows, you can always open \\wsl$ in file explorer).
- dboreham 5y agoIt's not slow for native Linux filesystem, only if you access the host NTFS. Avoid doing that. Git clone inside WSL2.
- veesahni 5y agoBoth WSL1 and WSL2 are slow for cross-platform disk access... but WSL2 is fast for within-the-vm disk access (unlike WSL1). Means if code resides in the linux vm and you can somehow edit it directly (eg: VSCode + WSL2 plugin), it's fast.
- kyriakos 5y agoHere are some benchmarks https://www.phoronix.com/scan.php?page=article&item=windows11-wsl2-good&num=1 https://www.phoronix.com/scan.php?page=article&item=windows1... They don't account for disk performance when accessing Windows storage though. If you stick to wsl2 storage paths performance is great.
- jayflux 5y agoIt’s only slow if you’re git cloning/doing stuff inside of /mnt. You need to use the WSL file system