Created
July 7, 2025 08:58
-
-
Save keckelt/387668471004410507f68b42e9edda9f to your computer and use it in GitHub Desktop.
WSL Config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [wsl2] | |
| # info: https://learn.microsoft.com/en-us/windows/wsl/wsl-config | |
| # GPU | |
| # disable GPU support so that playwright's browser windows are rendered (otherwise you only see the chrome's window frame) | |
| gpuSupport=false | |
| # DISK | |
| # Disable crash dumps to %USERPROFILE%\AppData\Local\Temp\wsl-crashes | |
| # see https://github.com/microsoft/WSL/issues/12147 | |
| MaxCrashDumpCount=-1 | |
| # MEMORY | |
| # Specify max memory usage | |
| # plus some swap | |
| swap=16GB | |
| memory=20971520000 | |
| # when idle, free up memory if it is not used | |
| # experimental section, needs to be after the regular [wsl2] config | |
| # also see https://github.com/microsoft/WSL/issues/4166 | |
| # gradual requires changes to cgroups v1 which does break the docker daemon when running as service | |
| # therefore, we use dropcache | |
| # also see https://devblogs.microsoft.com/commandline/windows-subsystem-for-linux-september-2023-update/#automatic-memory-reclaim | |
| [experimental] | |
| autoMemoryReclaim=dropcache | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment