Ever since I got wsl2 on my machine (9 months) I have seen the Vmmem task in task manager consuming upwards of 80% of my 48GB installed ram and I am in desperate need of a fix. I am compiling LLVM and because of the memory consumption I have had to reduce the number of parallel link jobs to 1 and limit threading in make to -j8 (prefer -j12 or -j16) resulting in suboptimal build times.
Đang xem: Vmmem là gì
Apparently this is a known issue: https://github.com/microsoft/WSL/issues/4166
There are a couple fixes there, namely dealing with /proc/sys/vm/drop_caches, but I was wondering if anyone had any other fixes because the second I run a compilation after this the memory spikes back up to 99% and gets stuck there again.
System details: Ryzen 9 3900x, 48 GB ram, windows 10 educational insider preview, build 19582.rs_prerelease.200306-1640
9 comments
share
save
hide
report
100% Upvoted
This thread is archived
New comments cannot be posted and votes cannot be cast
Sort by
best

level 1
8 months ago
you can limit the amount of ram WSL 2 can use by specifying it in the .wslconfig file in your user folder.
3
Share
ReportSave
level 2
Original Poster8 months ago
I don't want to limit the ram to a fixed cap, I would like wsl2 to be able to use as much ram as it needs to do its work, but then I need it to actually release it instead of caching a bunch of files for no reason.
Xem thêm: encrypt sha1 php
3
Share
ReportSave
Continue this thread
level 1
8 months ago · edited 8 months ago
powershell
wsl –shutdown
0
Share
ReportSave
level 2
8 months ago
Dropping the cache is a better solution. Shutting down interrupts things like Docker and kills your workflow.
I've been limiting memory and dropping cache and it's been working out okay for me.
Xem thêm: Phần Mềm Lb Link – Hướng Dẫn Sử Dụng Chi Tiết Bộ Thu Wifi Lb
2
Share
ReportSave
Continue this thread
level 2
Original Poster8 months ago
Shutting down wsl is not the answer here, if i have 5 terminals open and am working in all of them, if i shut wsl down then I have to reopen all of my terminals. That doesnt seem like a fix, more of a “turn it off and back on”
2
Share
ReportSave
View Entire Discussion (9 Comments)
More posts from the bashonubuntuonwindows community
Continue browsing in r/bashonubuntuonwindows

r/bashonubuntuonwindows
This is a Windows Subsystem for Linux (WSL) Subin4tintuc.com where you can get help installing, running or using the Linux on Windows features in Windows 10.
17.1k
Members
159
Online
Created Apr 11, 2016
Join





Top posts june 23rd 2020Top posts of june, 2020Top posts 2020
helpin4tintuc.com Appin4tintuc.com coinsin4tintuc.com premiumin4tintuc.com gifts
aboutcareerspressadvertiseblogTermsContent policyPrivacy policyMod policy
Back to Top