How to limit the maximum memory usage of WSL2
Reason
This afternoon, my computer was running very slowly. When I opened the task manager, I found that the process named Vmmem used nearly 7 GB of memory. This is a wsl2 process. I found a solution in this issues.
今天下午电脑突然非常卡,打开任务管理器,发现名为 vmmem 的进程占用了接近7个G的内存,查了一下,发现是 wsl2的 进程,检索到 WSL的官方 issues,里面提供了解决方法
