+
Skip to content

Conversation

bl81hi
Copy link
Contributor

@bl81hi bl81hi commented Aug 19, 2025

Description

Added a short recommendation how to put settings for WSL2.

@bl81hi bl81hi requested a review from a team as a code owner August 19, 2025 14:57
@MaximilianSoerenPollak
Copy link
Contributor

MaximilianSoerenPollak commented Aug 19, 2025

We probably should make a comment somewhere (although I don't think this belongs in the RST) that there is a very long standing bug in WSL2 for Windows 10&11 that enduces a memory leak and cpu hogging.
It can be that WSL2 takes up to 20-30GB (if allowed) of Memory and quiet a bit of CPU as well.

This happens when you have WSL open and lock your PC. If you log back in and resume your session the leak starts to manifest (as far as I can remember)

The fix is to shut it down and restart wsl --shutdown & wsl inside of powershell.

I will search the coming days if I can find the discussion / issue that I'm refering to.

Copy link

The created documentation from the pull request is available at: docu-html

@bl81hi
Copy link
Contributor Author

bl81hi commented Aug 19, 2025

We probably should make a comment somewhere (although I don't think this belongs in the RST) that there is a very long standing bug in WSL2 for Windows 10&11 that enduces a memory leak and cpu hogging. It can be that WSL2 takes up to 20-30GB (if allowed) of Memory and quiet a bit of CPU as well.

What level of detail is targeted in this documentation? Is it intended to be short, or can it be more comprehensive? If it is more comprehensive, we could add hints on bugs or add additional information (e.g. how to connect to WSL from the IDE). That could feel too chatty for experienced developers, but might be helpful for less experienced people working on the project. As we use X-as-Code, we could expect that people who are actually used to other, "non-code tools" would work here, too.

What do you think?


WSL2 Settings
=============
If you are using a Linux box running on WSL2, the following minimal settings in your .wslconfig file are recommended:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can rephrase this and merge, so we don't need to wait for @MaximilianSoerenPollak? Currently it's difficult to tell when out-of-memory happens, as no-one has complained yet. I assume memory becomes an issue when you run an (old) C++ linker?!

Suggested change
If you are using a Linux box running on WSL2, the following minimal settings in your .wslconfig file are recommended:
If you encounter memory issues on WSL2, the following minimal settings in your .wslconfig file are recommended:

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The settings do not solve this issue. So to speak, once the leak happens and stays for a while the performance goes into the tank, even if it stays inside the parameters.

But I do think we should have some sort of short info that one can set such settings?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have the info about settings here. Info about the leak we can publish once people start complaining :)

@MaximilianSoerenPollak
Copy link
Contributor

We probably should make a comment somewhere (although I don't think this belongs in the RST) that there is a very long standing bug in WSL2 for Windows 10&11 that enduces a memory leak and cpu hogging. It can be that WSL2 takes up to 20-30GB (if allowed) of Memory and quiet a bit of CPU as well.

What level of detail is targeted in this documentation? Is it intended to be short, or can it be more comprehensive? If it is more comprehensive, we could add hints on bugs or add additional information (e.g. how to connect to WSL from the IDE). That could feel too chatty for experienced developers, but might be helpful for less experienced people working on the project. As we use X-as-Code, we could expect that people who are actually used to other, "non-code tools" would work here, too.

What do you think?

I think the detail you have is good, I wouldn't go too into detail imo.

@AlexanderLanin AlexanderLanin merged commit b266cb2 into eclipse-score:main Aug 20, 2025
6 checks passed
@bl81hi bl81hi deleted the belibosch-wsl2-settings-docu branch August 20, 2025 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载