-
Notifications
You must be signed in to change notification settings - Fork 37.7k
util: remove WSL 1 workaround in fs #25898
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
Conversation
LGTM |
Are there any limitations why a Windows user cannot upgrade their WSL1 to WSL2? |
hi @hebasto. As far as I know WSL1 is no longer being developed. Documentation indicates that WSL1 is slightly advantageous in some cases where access to the native filesystem is required, and WSL2 might interact with other virtualization solutions. |
Why not just drop support for WSL1 then? |
@sinetek how can I test this?
Everyone would not have upgraded to WSL2 yet and there are some trade-offs according to the docs: https://docs.microsoft.com/en-us/windows/wsl/compare-versions#exceptions-for-using-wsl-1-rather-than-wsl-2 |
Run the app under GDB and set a breakpoint on this function.
I tend to agree. On the other hand I can understand why the removal is warranted, there might be some other unseen bugs in WSL1 and building a complete syscall emulation of Linux is beyond the scope of this project. |
I agree that we could probably just remove support for WSL1 here. |
updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 7566cd6
nit: can fix lint error (whitespace)
That isn't a nit. It needs fixing before merge. The PR title and description need to be updated to reflect the new changes. |
That's a cute way to enforce spaces. Updated. |
Considering IBD bottleneck is often I/O, and Microsoft's documentation says WSL1 is better for that, I think someone should do some benchmarks before we drop WSL1 support. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reACK 2e80345
WSL2 is better if files (data directory) is on WSL linux and WSL1 is better if files (data directory) is on Windows host. I tried syncing bitcoind (signet) for 5 minutes with default dbcache and txindex enabled. WSL2 was better and synced 20% compared to 14% in WSL1. Memory usage is a concern in WSL2 however there is a workaround suggested in this issue: microsoft/WSL#4166 (comment) |
Please revert to the previous commit, we usually do not allow merge commits in the commit history unless there is a reason to use them. |
Thanks for alerting me. That was not intentional and fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 5669afb
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. ConflictsNo conflicts as of last run. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 5669afb - seems ok as-is.
5669afb fs: drop old WSL1 hack. (sinetek) Pull request description: Following discussion, the WSL1 patch will be removed, as WSL1 is no longer being developed by Microsoft. Instead, please upgrade to a mainstream WSL2 version. More information can be found on [the official website](https://docs.microsoft.com/en-us/windows/wsl/). ACKs for top commit: 1440000bytes: ACK bitcoin@5669afb fanquake: ACK 5669afb - seems ok as-is. Tree-SHA512: 256c13985f6dd3453caf39c7ef1c951dbdfa8457a18cd05e4624db36d8ed8a4f809bb78a7b3c82c72997e9ed3823d5566a5c2d0812d2501aba2e54bc5e6eec79
Following discussion, the WSL1 patch will be removed, as WSL1 is no longer being developed by Microsoft. Instead, please upgrade to a mainstream WSL2 version. More information can be found on the official website.