-
Notifications
You must be signed in to change notification settings - Fork 821
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
ulimit and stack size #633
Comments
@askhamwhat - The stack limit on WSL is currently static. Please provide this feedback on our user voice page as well to help us prioritize this going forward. |
I'm currently this limitation in a hard way - there seems to be no way to run WRF on WSL with the stack limit currently set this small. I'm setting the stack to higher values at compile time but obviously it affect the behaviour of the program, still segfaulting seconds into a run. |
I found a workaround to this but it requires access to root. If you can login as root (su -) then u can add yourself to the sudo group if not able to yet (usermod -aG sudo $USER_NAME) then update the stack limit as root (ulimit -s unlimited) and login back into your user (su - $USER_NAME) then you can set the stack limit with: ulimit -s unlimited. Verify it works with ulimit -a. I've been using this so that I can run parallel CFD simulations locally on my machine. Good luck! |
|
|
@sunilmut @benhillis is the stack limit on WSL still static?Can I set ulimit by adding myself to the sudo group? |
@benhillis - I would like to be able to change the stack size, similarly to what other WSL users have requested on this thread. I get the following error message,
Do you have any suggestions? |
This problem still exists and can be solved (at least for Ubuntu 20.04) for WSL2 with:
You need to run this for every session. |
WSL1 : OK too |
When I initiate a bash session, the output of
is 8192 (which is in kb). This limit cannot be increased (Ideally I'd like to be able to set it as unlimited). Any suggestions?
The text was updated successfully, but these errors were encountered: