Skip to content
DevMeme
2340 of 7435
Docker on WSL2: A Masterclass in Memory Consumption
Containerization Post #2600, on Jan 13, 2021 in TG

Docker on WSL2: A Masterclass in Memory Consumption

Description

This meme uses a stock photo of a man pouring a comically oversized jug of olive oil onto a small salad. The man is labeled "my computer running docker," the huge jug is "95% of my ram," and the small salad is "WSL2." The visual gag illustrates a common developer complaint where Docker Desktop on Windows, using the WSL2 backend, aggressively consumes a vast majority of the system's RAM, far more than seems necessary for the workloads being run. For senior developers, this is a relatable pain point of resource management, virtualization overhead, and the sometimes-clunky integration between Windows and Linux development environments, where a tool meant for efficiency becomes a primary resource hog

Comments

38
Anonymous ★ Top Pick My WSL2 instance asked for a slice of memory, and Docker served it a whole RAM buffet. Now my machine's main job is swapping
  1. Anonymous ★ Top Pick

    My WSL2 instance asked for a slice of memory, and Docker served it a whole RAM buffet. Now my machine's main job is swapping

  2. Anonymous

    WSL2 + Docker Desktop implements cgroups v2 like Jamie Oliver seasons a salad - ignore the recipe, dump 95 % of the host’s RAM, and call it “flavor.”

  3. Anonymous

    After 15 years of optimizing distributed systems, I've learned that the only thing more impressive than Docker's ability to package applications is its talent for turning a 64GB workstation into a Chromebook. At least with bare metal servers, when they consumed all available memory, you knew it was YOUR fault

  4. Anonymous

    Ah yes, the classic WSL2 experience: watching Docker gleefully claim 95% of your RAM like it's paying rent, while WSL2 sits there with its tiny 5% allocation wondering if it should just identify as a Kubernetes pod to get better resource quotas. Pro tip: that .wslconfig file isn't just a suggestion - it's a peace treaty between your OS and Docker's manifest destiny approach to memory management

  5. Anonymous

    Docker on WSL2: lightweight - if you count a Hyper-V VM hoarding 95% of RAM as page cache, where the only garbage collector is wsl --shutdown

  6. Anonymous

    Compose up one service and vmmem negotiates majority ownership of your RAM - reclaim is apparently eventual consistency

  7. Anonymous

    WSL2 + Docker: 95% RAM idle, because hello-world containers deserve production-grade memory sprawl

  8. @lord_nani 5y

    Объяснительную бригаду

  9. @lord_nani 5y

    Что за всл2?

    1. @Odbjorn 5y

      Windows Subsystem for Linux https://docs.microsoft.com/en-us/windows/wsl/install-win10

    2. dev_meme 5y

      Please, use English within this discussion group

      1. @ryankrage77 5y

        I've been blocking all the non-English commenters but I still see them :(

  10. @LonelyGayTiger 5y

    Well there's your problem. Windows.

  11. @yarmoliq 5y

    Can someone please show me a real human who uses wsl

    1. @Araalith 5y

      I am. Why?

      1. @yarmoliq 5y

        Why don't you just use linux

        1. @RiedleroD 5y

          there are certain benefits to using windows as a daily driver

        2. @Araalith 5y

          I have to move old .NET Framework projects (win only) to .NET Core (win / linux).

          1. @yarmoliq 5y

            What's the wsl part in developing this projects if they are win only?

            1. @Araalith 5y

              Local docker for a dotnetcore applications.

    2. @fakeshluck 5y

      👋

  12. @pyproman 5y

    Oh you still have WSL2 when WSL3 exists?

  13. @yarmoliq 5y

    You joking?

  14. @GTRst 5y

    Докер не нужен

  15. @Mrdedmrz 5y

    в принципе ?

  16. @GTRst 5y

    Как скрипач. Кин-дза-дза смотрели?

  17. @yarmoliq 5y

    you can have as many OSs on your computer as you wish

  18. @yarmoliq 5y

    Daily drive windows

  19. @yarmoliq 5y

    Switch to linux for work and/or development

  20. @RiedleroD 5y

    VSTs do somewhat work on Linux though. Or have you already tried it?

  21. @yarmoliq 5y

    What do you use wsl for then?

  22. @yarmoliq 5y

    I'll rephrase my question

  23. @yarmoliq 5y

    Are there real humans that use wsl for real work

  24. @RiedleroD 5y

    no, I mean through the power of wine, windows-only VSTs can be run on Linux too.

  25. @ynsgnr 5y

    Windows is simply a better OS for day to day use and WSL is good to run Linux stuff without rebooting computer everytime you need Linux

    1. @yarmoliq 5y

      I personally find linux a better system for everyday use

      1. @ynsgnr 5y

        Depends on person to person but windows is generally care free and it plays nicer with nvidia gpus and other devices

  26. @s2504s 5y

    Бред какой-то. кг/ам

Use J and K for navigation