forked from fuergaosi233/claude-code-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwslconfig
More file actions
25 lines (22 loc) · 905 Bytes
/
wslconfig
File metadata and controls
25 lines (22 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# ---
# ver: 1.0.0
# purpose: cap WSL2 memory to prevent thrash when Hermes (or any Linux app) crashes
# install: copy to %UserProfile%\.wslconfig on the Windows side, then `wsl --shutdown` from PowerShell
# docs: https://learn.microsoft.com/en-us/windows/wsl/wsl-config
# ---
[wsl2]
memory=16GB
swap=8GB
processors=auto
# localhostForwarding=true # default, useful if you run servers in WSL and hit them from Windows
# dnsTunneling=true # helps with flaky corporate DNS, leave off unless needed
# kernelCommandLine entries to consider if aiohttp leaks persist:
# vm.overcommit_memory=2 # refuse overcommit, catches leaks earlier
# vm.panic_on_oom=0 # kill the offending process, don't panic the kernel
# (set via: kernelCommandLine = sysctl.vm.overcommit_memory=2)
[experimental]
autoMemoryReclaim=gradual
networkingMode=mirrored
dnsTunneling=true
firewall=true
autoProxy=true