Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSL2: File operations on NTFS folders extremely slow #4515

Closed
mwidmann opened this issue Sep 17, 2019 · 1 comment
Closed

WSL2: File operations on NTFS folders extremely slow #4515

mwidmann opened this issue Sep 17, 2019 · 1 comment

Comments

@mwidmann
Copy link

mwidmann commented Sep 17, 2019

Please fill out the below information:

  • Your Windows build number: Microsoft Windows [Version 10.0.18980.1]

  • What you're doing and what's happening: (Copy&paste the full set of specific command-line steps necessary to reproduce the behavior, and their output. Include screen shots if that helps demonstrate the problem.)

My original projects folder resides on c:\projects, mounted into debian (wsl1, unable to convert) as ~/projects. It has a set of git projects in it. Performing a git status on one of those folders, e.g. one Project with less then 5000 files takes little time:

❯ time git status                                                                                                                                               On branch bugfix/mobile-menu
Your branch is up-to-date with 'origin/bugfix/mobile-menu'.
nothing to commit, working tree clean
git status  0.05s user 3.23s system 378% cpu 0.867 total

Ubuntu 18.04 (WSL2, converted) is painfully slow on this kind of operations on the same folder.

❯ time git status                                                                                                                                               On branch bugfix/mobile-menu
Your branch is up to date with 'origin/bugfix/mobile-menu'.


It took 3.31 seconds to enumerate untracked files. 'status -uno'
may speed it up, but you have to be careful not to forget to add
new files yourself (see 'git help status').
nothing to commit, working tree clean
git status  5.66s user 22.04s system 41% cpu 1:06.64 total

Same occurs in node projects, where npm run dev takes over a minute in a relatively small nuxt project do just get started.

  • What's wrong / what should be happening instead:

I expected not only the ext4 filesystem in WSL2 to be much faster than in previous versions, but also accessing mounted local files/directories to be at least as performing as in WSL1. Some projects need to stay on the /c/- mount as certain applications don't want to open files from the \wsl$\ share.

@craigloewen-msft
Copy link
Member

Hi @mwidmann we are tracking this issue over in #4197 so I'm going to mark this as a duplicate and close it out.

And we are looking into ways to improve this experience! Please follow the other thread for any updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants