-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
High CPU usage by com.hyperkit.docker, above 20% with no containers running #5070
Comments
@rabkins Do you have Kubernetes enabled? We know that has some CPU load. |
@rabkins : In the diagnostic you provided, you have 4 running containers for 12% CPU which seems acceptable |
I got this too.
My Diagnostics ID: fa766d86-8e58-4125-b7fa-f43e69beb1f8/20201116185213 Update: |
I'm seeing the same high CPU usage behavior too without any container running and Kubernetes disabled running Docker for mac 2.5.0.1 on macOS Big Sur 11.0.1. Diagnostic ID: 599659F8-1AF5-4EFC-A50B-8685A5A153F1/20201117071741 |
Same behavior - CPU usage is around 25% when no containers are running. macOS Big Sur 11.0.1 Diagnostic ID: 99E9079C-E84E-4D6F-9452-C57B91368BD6/20201117120837 |
This is the same issue reported here in #4994. Also note that the energy impact issue is also still there. The only way to make it stop draining the battery on my laptop (while the power cable is plugged in!) is to either set the CPU cores down to 1 or just exit docker until the laptop can charge to 100% and try it again. Very frustrating. |
The next closest app that has this amount of Energy Impact is Chrome - and its energy impact (with over 20 tabs opened) is |
I see this on Mojave with 2.5.0.1 so it's not just Big Sur that's affected. |
Here is my diagnostic ID with Diagnostic ID: Here is a sample of the |
I have the same problem, running Catalina (pre big sur) 15-40% CPU usage without any running containers. No Kubernetes. |
Does some1 even working on this? Its literally impossible to use docker on mac - getting 300% CPU usage. |
I've been using kde neon linux for a year now and never faced any issues with docker. Some folks persuaded me to switch to the shiny mac :) 70% of battery usage is due to docker. Most of the time with no containers. |
Yes, we're working on this. We made a lot of improvements to the CPU recently, but it seems to have regressed again. We're not sure why: we suspect it's something in one of our upstream dependencies that has changed, but we're still looking into it. |
macOS Catalina 10.15.7 diagnostics uploaded: |
macOS Big Sur 11.0.1 Diag id: 8A0107F8-1DD8-4D19-A714-53CED7C11B38/20201125204014 |
Update: We've pinpointed this to the new Linux kernel we took between 2.4 and 2.5. We see the CPU load of a supposedly idle system double across that boundary. This conversation is currently going on in two tickets. I'm going to combine them by closing this one in favour of #5044. Please follow that ticket for updates. Thanks. |
My battery keeps slowly draining all day even when it is plugged in, often running completely out of battery and dying before I even reach 5 PM. The only solution that worked was to kill programs that were using excess energy (such as Docker). I finally called Apple support about the issue and they revealed to me that the new macbook pro laptops are designed to pull energy from the battery whenever the CPU needs extra power. So the charger only provides 96 watts, but the laptop can boost to higher wattage usage when needed, and when it does so, it pulls this extra wattage from the battery. I did a little bit of digging, however, and I discovered a tool called “Turbo Boost Switcher” that allows you to toggle off Turbo Boost on your mac. http://tbswitcher.rugarciap.com/ The moment I disabled Turbo Boost, my macbook battery amperage draw went from -187 (slowly draining the battery) up to +138 (slowly charging the battery). I believe I have finally fixed the problem! Unfortunately, this means I have to throttle my laptop so it doesn’t run as fast, which is annoying… but at least it shouldn’t die on me anymore, hopefully… |
Hi, docker-compose.yml
|
I'm on Mojave. Fresh install. Zero containers ~%39 cpu load. Docker supervisor 35,5 Energy impact. Tell me what you need to fix this for once and for all. Also a lot of network calls and I have disabled all the phone home settings. Probably not legal in Europe. |
Big Sur 11.1. Dockers shows > 100% in top on 8 core system just right after starting it up, without any container running. |
The same here.... drop from ~20% to ~5% |
This did not work for me. I'm not sure if it's the same issue though--What I'm seeing is that Docker.raw very quickly fills the allotted disk space during a |
Confirming this works, dropped from ~20% to 6%. |
For me disabling gRPC did nothing, however stopping Kubernetes docker included makes a drop from 42% to 4%. MBP Core i7 / Docker 3.1.0 |
Not using |
Big Sur 11.2.2 disabling all experimental functions decreases CPU usage to 15% using 14 threads. Kubernetes not being active. Still on top 3 cosumers on my system. |
The same for me. After switching from gRPC FUSE to legacy osxfs, CPU usage dropped from 22% to 6%. |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Expected behavior
Actual behavior
Information
Diagnostic logs
Steps to reproduce the behavior
The text was updated successfully, but these errors were encountered: