-
Notifications
You must be signed in to change notification settings - Fork 120
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 Utilization of Hyperkit in Mac #1759
Comments
I can confirm this, and many other users, too, see: many "confirm" posts here: https://forums.docker.com/t/com-docker-hyperkit-up-cpu-to-340/13057 Any work-a-round? |
Same here. Diagnostic ID: |
+1 |
Same here, +1. |
I am facing the same too. |
Same here |
Confirm the same problem |
same here ... any update in this issue ?
|
issue persisted |
Same problem here |
+1, Same here:
DiagnosticID: |
Got CPU usage down by limiting Docker to a single CPU from the docker settings |
I'm experiencing the same issue, |
I removed all data and the hyperkit cpu usage went from 150% to 0.9%. I have 2 cores dedicated to docker. Version:
Removed all data with the following steps:
|
@petterik that helped for a minute, after I rebuild my app the cpu is back to ~300% for |
+1
|
+1 OSX Version: 10.12.6 (16G29) |
+1 |
+1 macOS Sierra 10.12.6 (16G29) |
I was running a fairly large build (compiles a bunch of code etc). Was working well for a while and then all of a sudden now I've got this hang at 100% cpu. I tried bumping resources up etc. System Version: macOS 10.12.6 (16G29) I spooled up a bare metal box on packet.net and my build works fine without any hangs.
|
+1 macOS High Sierra 10.13 (17A365) |
+1 MacOS Sierra: 10.12.6 (16G29) |
One thing that helped me out was disable/setting interval on any polling. This problem arose for me when polling was enabled in webpack. Disabling it lead to hyperkit being ~1% CPU in idle state. But also setting a interval on the polling at 4000ms lead to 20-40% CPU usage instead of ~150%. |
Just an update with some of my findings: |
Further update: Edge does not seem to have the same issue. Uninstalled Stable and installed Edge and hyperkit CPU usage is now normal again |
For me it worked fine with gRPC-FUSE enabled, which I also needed to enable in the settings. With osxfs I had high CPU usage again. |
This version seems to be slower than 2.3.4.0. average load time for my symfony app went from 1-2 seconds to 6-7 seconds with gRPC-FUSE enabled. EDIT: Downgraded to 2.3.4.0 again, working much better. By the way, CPU usage is still not good, but at least my applications run kind of fast and are usable. |
CPU usage is high here, but performance seems better. |
Seems to be another update out on Edge, version 2.3.6.0 which referenced another CPU usage bug involving the serial console in hyperkit:
|
2.3.6.0 has about same performance than the 2.3.5.0 "Benchmarking" for Symfony 3.4 project (quite heavy one, not very optimised for performance) |
Upgraded to 2.3.6, it causes huge CPU load. Downgraded back to 2.3.4. |
I have determined why CPU usage is raising more than 300% (in my case). Tested with a 2.3.4 edge version of docker. |
I installed 2.3.7.0 and CPU performance was back at 200%-400%, so I downgraded to 2.3.5.0. |
Version 19.03.13 - consumes 10.3% CPU when no containers are running. 🙅 |
Hey all, We have now shipped the changes from our investigation over the last 3 months as part of the 2.4 Desktop release. We will do a blog post in a few weeks detailing the things we found/changes we made to give you some insight into what we did and why. If you are still having issues, I would ask that you create new tickets on for-mac rather than comment on old tickets as we are going to close these to keep our backlog a bit tidier and not mix up the messages (and it is easier for us to get signal on the scale of issues this way). Thanks again for your patience and an even bigger thank you to all of you who took the time to test builds & upload diagnostics! |
I still have the problem with high CPU consumption with version 2.4.0.0 but I could fix it by switching von 2 CPU to 1 CPU in the Preferences -> Resources Panel. |
Current Docker Desktop requires to specify (preferences --> resources tab) the amount of CPU and Memory to use. It will use (reserve) it regardless it's in use or not. It's currently a bug, should be dynamically allocated until the max specified. |
There's just not a lot of insight into HyperKit, so it is hard or difficult for the community to troubleshoot and derive the root cause of the problem. This is why I like the Docker Machine option, despite Docker Desktop having a richer UX, as you could choose to use Virtualbox (which has richer CLI + GUI tools), HyperKit, or others. HyperKit is still ocassionally goes bonkers can consumes high CPU% and energy. It is still not stable, if there are any notes from authors to get better insight, that would be great, such as profiles, and such. This way maybe the community can help with finding out the root cause. |
Using latest 2.4.2.0 and still see consistently ~400% CPU loads. Tried a few of the recommendations but nothing works. |
One of our developers is experiencing this issue while using 2.4.0. CPU load has been consistently between 200% and 400%, with the majority of the day sitting around 400% Diagnostics ID: 67181D6B-0B77-4EA1-87E7-1013ABB9F94E/20201102184010 |
@accelerated @jonesiscoding version |
@matei-dragu Updating to version 2.5.0.0 helped for a few hours. Most of the morning the user was seeing ~25% CPU from the com.docker.hyperkit process. That spiked to ~400% about 15 minutes ago, and hasn't gone down since. |
Have tried 2.5.0 |
How do I get |
Yes, switch to stable if you want it immediately. Latest edge is currently 2.4.2.0 as you observed. |
Thanks @stephen-turner |
strangely, mine goes down sometimes when i run diagnostics. which may mean some of these issues are Schrodinger's issues. |
same here, flat ~25% w/o running containers, 2.5.0.0 |
Still, having the same issue with version 2.5.2, what to do ?? Is it ever going to be solved? |
There is a new regression in 2.5 because of the new Linux kernel we have in that version. We're working on it. See #5044 for more details. |
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. |
My CPU utilization by hyperkit on my mac seems too high. It caused my mac to overheat.
Below is my docker version info:
Below is my diagnostic id when this issue is happening.
1B8B3901-6393-41B7-B7D3-0FC914F1C668
I'm running rails container with
docker-sync
.The text was updated successfully, but these errors were encountered: