-
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
2.4.0.0 com.docker.hyperkit very high CPU with low load in containers #4981
Comments
Thanks, @zwass, we'll have a look |
I reverted to 2.3.0.5 and have not seen the issue crop up after a few hours of running that compose stack. It was usually happening regularly and quickly with 2.4.0.0 so I suspect there are new changes that introduced the issue. I will update with further observations. |
It is a well-known problem. |
Actually, this one is new. We have now reproduced it and will have a fix soon. |
Glad to hear it and thank you @stephen-turner. |
@zwass, thanks for your report! I notice there's a container which bind-mounts
Using the old file-sharing implementation ("osxfs") this was slightly buggy:
Due to the inotify file events bug, the CPU usage is quite low. Using the new file-sharing implementation ("gRPC FUSE"):
Unfortunately due to fixing the inotify file events bug, the CPU usage is now very high. I'm not sure yet what the best way to fix this is. Could you describe your use-case in more detail? What is the |
@djs55 that rootfs mount is just copied out of the CAdvisor documentation into the above linked docker-compose file. Presumably this issue is effecting anyone who is running CAdvisor (11.3k stars) with the documented instructions. |
@zwass thanks for the explanation, very helpful! |
The issue has been fixed in Edge release 2.4.2.0, thank you for reporting it. |
Thank you! Does that mean it should make the next stable release? |
Yes, @zwass. |
Hi @zwass. We fixed more issues related to gRPC Fuse, can you try that build and give us some feedback please: We noticed a performance issue when creating files from a container and we start to work on optimize it. |
I had a bunch of containers idling and CPU usage was low. Then while doing something in the Opera browser on the host Mac, So, not sure if the diagnostics caught the problem, and not sure if this is the same problem as the OP, but seems close enough to add to this issue rather than open a new one. Uploaded Diagnostics ID: Update: happened again, this time while using Firefox: |
Here is another Diagnostic showing And another: |
The original bug is fixed in 2.5.0.0. If you have another CPU issue that can't be explained by the CPU load inside the containers, please open a new ticket. Thanks. |
For osx set the
Avoid to bind mount things that should be volumes. Do this
not this
|
I disabled Turbo Boost and got the temperature down to 65°C Not a fix but a way to protect the hardware. |
I have the same issue, laptop battery is dying in just few hours (normally it lasts 6 hours, on macbook). |
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. |
FBD1077A-2DEC-4C37-A7E5-7E917A732473/20201008014709
Expected behavior
Docker CPU usage is low when container usage is low.
Actual behavior
Containers are using very little CPU (~5% between all containers as reported by
docker stats
).com.docker.hyperkit
is using 300% CPU (as reported by Activity Monitor).Information
I think this problem started with Docker 2.4.0.0.
Diagnostic logs
I don't see this option in the menu. Are you looking for the diagnostics ID asked for above?
FBD1077A-2DEC-4C37-A7E5-7E917A732473/20201008014709
Steps to reproduce the behavior
I am running this docker-compose file: https://github.com/kolide/fleet/blob/master/docker-compose.yml
It does not reproduce immediately, but I have seen the issue come up at least 3 or 4 times in the last week.
The text was updated successfully, but these errors were encountered: