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
Use J and K for navigation
Comments
38Comment deleted
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
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.”
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
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
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
Compose up one service and vmmem negotiates majority ownership of your RAM - reclaim is apparently eventual consistency
WSL2 + Docker: 95% RAM idle, because hello-world containers deserve production-grade memory sprawl
Объяснительную бригаду Comment deleted
Что за всл2? Comment deleted
Windows Subsystem for Linux https://docs.microsoft.com/en-us/windows/wsl/install-win10 Comment deleted
Please, use English within this discussion group Comment deleted
I've been blocking all the non-English commenters but I still see them :( Comment deleted
Well there's your problem. Windows. Comment deleted
Can someone please show me a real human who uses wsl Comment deleted
I am. Why? Comment deleted
Why don't you just use linux Comment deleted
there are certain benefits to using windows as a daily driver Comment deleted
I have to move old .NET Framework projects (win only) to .NET Core (win / linux). Comment deleted
What's the wsl part in developing this projects if they are win only? Comment deleted
Local docker for a dotnetcore applications. Comment deleted
👋 Comment deleted
Oh you still have WSL2 when WSL3 exists? Comment deleted
You joking? Comment deleted
Докер не нужен Comment deleted
в принципе ? Comment deleted
Как скрипач. Кин-дза-дза смотрели? Comment deleted
you can have as many OSs on your computer as you wish Comment deleted
Daily drive windows Comment deleted
Switch to linux for work and/or development Comment deleted
VSTs do somewhat work on Linux though. Or have you already tried it? Comment deleted
What do you use wsl for then? Comment deleted
I'll rephrase my question Comment deleted
Are there real humans that use wsl for real work Comment deleted
no, I mean through the power of wine, windows-only VSTs can be run on Linux too. Comment deleted
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 Comment deleted
I personally find linux a better system for everyday use Comment deleted
Depends on person to person but windows is generally care free and it plays nicer with nvidia gpus and other devices Comment deleted
Бред какой-то. кг/ам Comment deleted