3 ms·
We improved the file system performance overall when we introduced WSL 2 by about 3-6x in general, and 20x for specific disk heavy operations. This still does b
by craigaloewen 5y ago
We improved the file system performance overall when we introduced WSL 2 by about 3-6x in general, and 20x for specific disk heavy operations. This still does bring its own challenges (You'll need to move your files to the Linux file system, and Cross OS file perf is slower in WSL 2) but we are working on these as well! :)
- Negitivefrags 5y agoFrom our perspective WSL2 only made file system performance worse. The caviet of moving files to the Linux file system is kind of a big one. We just want to Rsync some files from a Linux server to a windows build server without garbage performance and somehow there isn’t a way to do that still.
- e12e 5y agoWith native opensshd in windows, and a windows build of rsync - why would wsl be needed?
- Negitivefrags 5y agoWhat windows build of Rsync are you referring to? I haven’t found one that doesn’t use Cygwin (slow filesystem).
- e12e 5y agoI thought there was a mingw build, but apparently not. :/ You see that slow file access with cygwin? Last time I had such a use case for windows, I used unision - but isn't rsync, of course. https://www.cis.upenn.edu/~bcpierce/unison/ https://www.cis.upenn.edu/~bcpierce/unison/ Judging by this scoop.sh issue, there are no obvious not-cygwin builds/ports: https://github.com/lukesampson/scoop/issues/2295 https://github.com/lukesampson/scoop/issues/2295 Looks like there are libraries for rust and go - but not clients that are a drop in replacement (yet).
- Negitivefrags 5y agoCygwin is faster than WSL2 but not faster than WSL1 from the last time we tested. Our builds involve syncing directories that have several hundred thousand files in them so the speed of stat() is really the bottleneck. I’ll give unison a look, I haven’t tried that. The libraries are an interesting idea, I’ll look into that too.
- binarycrusader 5y agoHaven't tried this commercial client myself and I'm not endorsing it, but this one claims to be native rsync without cygwin: https://acrosync.com/windows.html https://acrosync.com/windows.html
- Negitivefrags 5y agoI’ve looked into it. It’s not really the right use case for pushing data to and from a build server. It’s more designed for a continuous backup situation with a GUI.
- madeofpalk 5y ago> The caviet of moving files to the Linux file system is kind of a big one. Trying not to sound reductive, but either it's an issue for you or not. It's really going to depend on your use case which should be super apparent for you. I do all my web development within WSL2 and its great. I suspect this is the main use case they're optimising for.