Urgent.News

What's breaking now, across thousands of outlets.

Tech

Summing RSS Is Not Your WSL2 Memory Usage

Task Manager says "VmmemWSL" is holding 8 GB, while inside Ubuntu, "htop" shows something closer to 2 GB. At first, the difference is difficult to interpret because both numbers look perfectly plausible when considered on their own. You close a few browser tabs, stop a container, run "wsl --shutdown", and perhaps even try a ".wslconfig" setting you found in a forum post. Yet, somehow, the numbers…

Task Manager reports 8 GB of memory being used by VmmemWSL, but running htop inside Ubuntu shows around 2 GB. It can be confusing why these numbers differ, but the key is understanding the different scopes they represent. Windows looks at the machine as a whole at the host level, while VmmemWSL represents the WSL2 virtual machine, including the VM's memory footprint, Linux kernel, caches, and workloads.

The Linux environment sees what a particular distribution has at the distro level, and individual processes and their memory mappings are described at the process level. Comparing these numbers directly is a category error because they are describing different things. After recognizing this, it became clear that adding up RSS values from multiple processes does not give the accurate memory usage of WSL2.

The reason is that RSS, or Resident Set Size, does not represent unique physical memory ownership. A process maps pages that may also be mapped by other processes, causing shared pages to be counted multiple times. Scaling this up across many processes, shared libraries, and memory mappings leads to over-counting physical memory.

Consequently, the total RSS value can become larger than the actual memory footprint of the WSL2 virtual machine. This highlights the importance of understanding the scope and meaning of each memory measurement before attempting to compare or aggregate them.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

I Wanted YouTube's Simplicity in VLC — So I Built My Own Media Player

I Wanted YouTube's Simplicity in VLC — So I Built My Own Media Player I use VLC because it plays almost everything. MKV. MP4. WebM. AVI. MOV. Multiple audio tracks. Subtitles. You name it.

  • Author created "Simple YT Style Player" seeking YouTube-like simplicity in VLC
  • Media player supports MKV, MP4, WebM, AVI, MOV formats with audio/subtitle customization
  • Lightweight, open-source design functions as native app on Windows, Android, mobile

Yatta JS launches Sunday, October 4

Quick heads up for the weekend. I am releasing Yatta JS on Sunday, October 4. It is a backend runtime for Bun that embeds the whole stack in your app process: relational DB, passkeys and MFA auth…

I track protein, not calories. So I built a dead-simple tracker for lifters.

Every food-tracking app wants the same things from me: calories, macros, a subscription, an account, a barcode-scanning onboarding flow. I'm a lifter. I don't care about any of that.

  • Protein Pal focuses solely on protein intake tracking
  • Users log foods with protein grams, set custom goals
  • Offline, no accounts, simple design for lifters

More from Thursday 1 October →