WSL: Bash extremely slow in 15046
Bash is extremely slow in the latest build. I’m doing some removal of a directory or even just starting up and switching to the ZSH shell takes well over 6 seconds.
Some examples:
Removing a node_modules directory:
# rm -rf node_modules
0.12s user 13.91s system 84% cpu 16.662s total
0.09s user 3.42s system 115% cpu 3.054s total
0.00s user 0.00s system 0% cpu 3.048s total
0.09s user 3.28s system 120% cpu 2.796s total
On Windows removing the SAME directory takes like 4 seconds
Switching to ZSH:
3.97s user 4.22s system 121% cpu 6.758s total
0.06s user 3.52s system 118% cpu 3.012s total
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Reactions: 13
- Comments: 31 (9 by maintainers)
I’ve seen cases where node adds some things to .bashrc that really slow us down. Could you try creating a new user account to see if that is also slow?
close bash.exe lxrun.exe /setdefaultuser newuser bash.exe
restore your old user with lxrun.exe /setdefaultuser oldusername
Node and WSL don’t play nice together! Uninstall anything that has to do with Node on WSL, it makes PAINFULLY SLOW. If you really need it use a VM and spare yourself the headache