Technical questionAccepted answer
Cannot locate .wslconfig in user profile on windows 11
ineedhelp
Jan 28
0 views1
I am completely new to Docker and Linux Subsystem on Windows [Ubuntu 22.04.1], which requires changing the CPU and RAM used in Docker, and I'm trying resolve a Parallel Computing on Windows
Problem; however, as noted in the troubleshooting guide and on the Docker Settings' Advanced suboption in Resources, I need to change the .wslconfig file:
- I followed Advanced settings configuration in WSL, but there is no file or folder within:
%UserProfile%\.wslconfig
Any advice on how to fix this?
1 answer
Accepted answer · original discussion
Ramhound
PermalinkJan 28
Any advice on how to fix this?
- Create file:
%UserProfile%\.wslconfig - Within
%UserProfile%\.wslconfig, paste:[wsl2] memory=4GB # Limits VM memory in WSL 2 to 4 GB processors=2 # Makes the WSL 2 VM use two virtual processors - Since you are unlikely to be compiling and creating your own WSL2 Linux kernel, I have removed the line that sets the custom kernel that ALL WSL2 distributions would use.
0 question comments
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.