Skip to content
DevMeme
2346 of 7435
Docker on WSL2 Generously Allocating RAM
Containerization Post #2608, on Jan 15, 2021 in TG

Docker on WSL2 Generously Allocating RAM

Description

A popular object-labeling meme using a stock photo of a smiling man pouring a comically oversized jug of olive oil onto a small salad in a white bowl. The man is labeled 'my computer running docker'. The giant jug of oil is labeled '95% of my ram'. The small salad receiving the excessive amount of oil is labeled 'WSL2'. This meme humorously visualizes a significant pain point for developers using Docker Desktop on Windows. The Windows Subsystem for Linux 2 (WSL2) backend, while powerful, is notorious for aggressively consuming large amounts of system RAM and not efficiently releasing it back to the host operating system. The image perfectly captures the feeling that the system is dedicating a disproportionate and unnecessary amount of memory to the WSL2 virtual machine, leaving little for other applications

Comments

15
Anonymous ★ Top Pick The `vmmem` process in Windows is just WSL2's way of saying, 'I see you have 32GB of RAM, but what if you didn't?'
  1. Anonymous ★ Top Pick

    The `vmmem` process in Windows is just WSL2's way of saying, 'I see you have 32GB of RAM, but what if you didn't?'

  2. Anonymous

    Docker Desktop on Windows is the cheapest chaos-engineering tool I own - WSL2 claims 95 % of RAM up-front and lets the OOM-killer pick which dev tool was never truly critical

  3. Anonymous

    The only thing more optimistic than a junior's time estimate is believing Docker Desktop on Windows will leave you enough RAM to open a second browser tab

  4. Anonymous

    Ah yes, the classic WSL2 experience: you allocate 16GB of RAM thinking you're being generous, Docker immediately claims 15.2GB of it, and your IDE is left fighting Chrome for the remaining 800MB. At least when you inevitably have to edit .wslconfig to set memory limits, you'll finally understand why the ops team keeps muttering about 'resource quotas' and 'noisy neighbors' in production

  5. Anonymous

    WSL2’s “dynamic memory” is autoscaling for vmmem - scales up instantly, scales down only after wsl --shutdown

  6. Anonymous

    WSL2: Where your RAM goes to overcommit itself, leaving Docker to fight over the OOM killer scraps

  7. Anonymous

    Running Docker on Windows: the “lightweight” containers outsource their calories to WSL2’s vmmem, which auto-scales to 95% RAM and treats memory reclamation as eventual consistency

  8. @sylfn 5y

    where are other 49% of ram? I thought docker uses 146% of it

  9. @thenester 5y

    There is no need in WSL. Change my mind. ( ͡° ͜ʖ ͡°)

  10. @Roman_Millen 5y

    We've already seen this pic 2 days ago, haven't we?

  11. @thenester 5y

    There is nothing to change in your mind. All is fine. ( ͡° ͜ʖ ͡°)

  12. @WhatTheTea 5y

    There is no need in Computer. Change my mind. ( ͡° ͜ʖ ͡°)

    1. @thenester 5y

      Comparing needless WSL and Computer... Btw, how RAM is taste? ( ͡° ͜ʖ ͡°)

    2. @feskow 5y

      This post was made by dock station gang

  13. @yarmoliq 5y

    Ah here we go again

Use J and K for navigation