com.docker.hyperkit 100% cpu usage
#5894
735E4E6C-F507-4172-9F91-96A5E8186742/20210812115235
Now i'm upgraded to latest 3.6.0, problem not solved. I've tried to restore factory settings, nothing helped.

This has been an issue for a long time it seems like. My Mac can't charge fast enough to counteract Docker draining my battery. CPU is sitting at 99.5% for Docker.
I can confirm this, but I think I've only started experiencing this after upgrading to newest versions:
- macOS Big Sur 11.5.2
- docker desktop 3.6.0 (67351) engine 20.10.8
Power adaptor plugged in, Resources to their minimum (1vCPU, 2GB ram, .5GB swap):
- with no containers running,
com.apple.Virtualization.VirtualMachineconsistently uses 25% of a CPU core (UX: OK-ish) - with 5 mostly idle containers (docker stats: 0.00% ~ 2.xx%), VM consistently uses 50% of a CPU core (UX: noisy fans)
- with more resources (2vCPU), same 5 mostly idle containers, VM uses 100% of a CPU core (UX: hot laptop)
In short, user experience for the default install is quite bad.
In the interim, it helps to install Turbo Boost Switcher (free), and "disable" turbo boost.
That brings the CPU junction temp down from 98C 🥵 to 75C 🤒
Ofc, that also slows down your mac, maybe by 2x, so YMMV.
Same here, this is my Diagnostic Data ID -> B098CCBB-1EEC-45D2-8112-27109348927E/20210817123229
Any updates here? Docker for mac currently unusable...
i think that there is an issue with volume mounts.
In addition to the above, I've observed the idle CPU usage of Docker on MacOS to be consistently 40%-50%. Output snippet from top is here:

I currently have only 4 containers running and docker stats tells me each of those is consistently only around 1% of CPU:

Should I raise this as a distinct issue? Is this the expected baseline CPU usage for Docker on MacOS?
Using latest docker for mac as of today, Intel macbook pro i7, same issue, I can barely touch my functional keys due to heat, CPU temperature is 110 deg C and shows 200% usage.
If I run a Virtualbox VM with linux, where I install docker, all is at 30%, it is a full blown xubuntu 20.04 desktop
Is there nothing we can do, no mittigation/tip ?
I was hoping that paying money to Docker, inc. would help. But alas, the new Docker Desktop update for macOS that asks you to accept new terms (where, essentially, SME's have to pay, too) doesn't solve this problem. 🤷🏿♂️ 🤷🏿♀️ 🤷🏿
Possible cause: #5940 (may depend on what virtualisation mechanism OP used)
I've tried all docker engines available, same problem all the time

returned to this

My docker containers are not doing anything, just an apache server waiting plus mysql
Found a mitigation, using free smcFanControl at full blast mode to prevent the CPU from going above 100C

Here's my diagnostic ID: E3B4D178-F82A-45E4-9B5D-A3C288439479/20210908075810
Can the admins add version/4.0.0 tag also, please?
Yes, same issue with 4.0.0
4470E8C6-FA81-48BE-9895-3F521651C2AB/20210908211800
Are you guys all on Big Sur ? Could this be a MacOS problem more than Docker ?
I've had this problem for over a year on several different devices. I have a Macbook on High Sierra with this problem, and my newer laptop with Big Sur also has this same issue. It could be a Mac issue, but its is across multiple operating systems for sure.
On Thu, Sep 9, 2021 at 10:27 AM Ionut Stoica @.***> wrote:
Are you guys all on Big Sur ? Could this be a MacOS problem more than Docker ?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/docker/for-mac/issues/5905#issuecomment-916149244, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABA3PG57H6VJ5F5ICCMR6RLUBC74BANCNFSM5CBBU7SA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
-- Jason Glisson www.jasonglisson.com Custom Web Development Drupal | WordPress | Ecommerce
https://github.com/docker/for-mac/issues?q=is%3Aissue+is%3Aopen+cpu Dozen and dozen of created Issues... happening for 1Y~+, no action. Docker is more busy defining a license for docker mac.. but not fixing this problem that turns the laptop into a overheating-noisy machine..
The only workaround that works for me is exiting Docker when I'm not using it.
Are you guys all on Big Sur ? Could this be a MacOS problem more than Docker ?
I am on Big Sur, however, Docker for Mac used to be OK for me on Big Sur before. I can't be certain which of the two updates was critical, the issue started for me with these versions:
- macOS Big Sur 11.5.2
- docker desktop 3.6.0 (67351) engine 20.10.8
Catalina 10.15.7 (19H524)
Dozen and dozen of created Issues... happening for 1Y~+, no action. Docker is more busy defining a license for docker mac.. but not fixing this problem that turns the laptop into a overheating-noisy machine..
This is now making us take steps towards podman and its friends.
We can also consider it the other way around, if they dont have the resources to dedicate, they will need them first by raising money.
Docker is still the most well documented tech there is in this regard, many of us invested a lot in it and is not like we can shift overnight.
On Fri, 10 Sep 2021, 13:24 djmcgreal-cc, @.***> wrote:
Dozen and dozen of created Issues... happening for 1Y~+, no action. Docker is more busy defining a license for docker mac.. but not fixing this problem that turns the laptop into a overheating-noisy machine..
This is now making us take steps towards podman and its friends.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/docker/for-mac/issues/5905#issuecomment-916798858, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGT2GKDTGUAPNLUVUDIWPTUBHMENANCNFSM5CBBU7SA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
A more detailed report, maybe of any help
NOTE - 45001 wakeups over the last 40 seconds (1119 wakeups per second average), exceeding limit of 150 wakeups per second over 300 seconds
Date/Time: 2021-09-10 14:44:11.294 +0300
End time: 2021-09-10 14:44:51.494 +0300
OS Version: macOS 11.5.2 (Build 20G95)
Architecture: x86_64h
Report Version: 32
Incident Identifier: 0F4BA383-C081-4CC6-BAE6-8E3E08F9EA38
Data Source: Microstackshots
Shared Cache: 0C9EB0DE-F5CE-3AFC-8F08-0C6DB1E7FC44 slid base address 0x7fff2014b000, slide 0x14b000
Command: com.docker.hyperkit
Path: /Applications/Docker.app/Contents/Resources/bin/com.docker.hyperkit
Version: ??? (???)
Parent: UNKNOWN [1977]
PID: 1979
Event: wakeups
Action taken: none
Wakeups: 45001 wakeups over the last 40 seconds (1119 wakeups per second average), exceeding limit of 150 wakeups per second over 300 seconds
Wakeups limit: 45000
Limit duration: 300s
Wakeups caused: 45001
Wakeups duration: 40s
Duration: 40.20s
Duration Sampled: 2.00s
Steps: 3
Hardware model: MacBookPro11,3
Active cpus: 8
Fan speed: 2546 rpm
Heaviest stack for the target process:
3 thread_start + 15 (libsystem_pthread.dylib + 9283) [0x7fff20455443]
3 _pthread_start + 224 (libsystem_pthread.dylib + 26876) [0x7fff204598fc]
3 vcpu_thread + 1586 (com.docker.hyperkit + 2252739) [0x108f69fc3]
3 vcpu_loop + 196 (com.docker.hyperkit + 2253247) [0x108f6a1bf]
2 xh_vm_run + 346 (com.docker.hyperkit + 2139317) [0x108f4e4b5]
2 vmx_run + 1730 (com.docker.hyperkit + 2102676) [0x108f45594]
2 hv_vcpu_run + 31 (Hypervisor + 13533) [0x7fff6ea8b4dd]
Powerstats for: com.docker.hyperkit [1979]
UUID: A987D5D6-9E33-3973-9100-68E208725800
Path: /Applications/Docker.app/Contents/Resources/bin/com.docker.hyperkit
Architecture: x86_64
Parent: UNKNOWN [1977]
UID: 501
Footprint: 8568.14 MB
Pageins: 1 pages
Start time: 2021-09-10 14:44:47.708 +0300
End time: 2021-09-10 14:44:49.709 +0300
Num samples: 3 (100%)
Primary state: 2 samples Non-Frontmost App, Non-Suppressed, Kernel mode, Effective Thread QoS Default, Requested Thread QoS Default, Override Thread QoS Unspecified
User Activity: 0 samples Idle, 3 samples Active
Power Source: 0 samples on Battery, 3 samples on AC
3 thread_start + 15 (libsystem_pthread.dylib + 9283) [0x7fff20455443]
3 _pthread_start + 224 (libsystem_pthread.dylib + 26876) [0x7fff204598fc]
3 vcpu_thread + 1586 (com.docker.hyperkit + 2252739) [0x108f69fc3]
3 vcpu_loop + 196 (com.docker.hyperkit + 2253247) [0x108f6a1bf]
2 xh_vm_run + 346 (com.docker.hyperkit + 2139317) [0x108f4e4b5]
2 vmx_run + 1730 (com.docker.hyperkit + 2102676) [0x108f45594]
2 hv_vcpu_run + 31 (Hypervisor + 13533) [0x7fff6ea8b4dd]
1 xh_vm_run + 1565 (com.docker.hyperkit + 2140536) [0x108f4e978]
1 vm_copy_setup + 128 (com.docker.hyperkit + 2137230) [0x108f4dc8e]
1 vm_gla2gpa + 601 (com.docker.hyperkit + 2153882) [0x108f51d9a]
1 <User mode>
Binary Images:
0x108d44000 - 0x1093a1fff com.docker.hyperkit (0) <A987D5D6-9E33-3973-9100-68E208725800> /Applications/Docker.app/Contents/Resources/bin/com.docker.hyperkit
0x7fff20453000 - 0x7fff2045efff libsystem_pthread.dylib (454.120.2) <B1A74420-49E9-32FC-BFCB-E53550236A23> /usr/lib/system/libsystem_pthread.dylib
0x7fff6ea88000 - 0x7fff6ea8ffff com.apple.Hypervisor 1.0 (1) <70A1C6EB-F01F-34CC-8DC0-E642A75CE47C> /System/Library/Frameworks/Hypervisor.framework/Versions/A/Hypervisor