for-mac icon indicating copy to clipboard operation
for-mac copied to clipboard

com.docker.hyperkit 100% cpu usage

Open ddzobov opened this issue 5 years ago • 61 comments

#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.

Снимок экрана 2021-08-12 в 15 11 55 Снимок экрана 2021-08-12 в 15 20 30

Снимок экрана 2021-08-12 в 15 20 49

ddzobov avatar Aug 12 '21 12:08 ddzobov

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.

jasonglisson avatar Aug 16 '21 14:08 jasonglisson

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.VirtualMachine consistently 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.

dimaqq avatar Aug 17 '21 00:08 dimaqq

Same here, this is my Diagnostic Data ID -> B098CCBB-1EEC-45D2-8112-27109348927E/20210817123229

Algatux avatar Aug 17 '21 12:08 Algatux

Any updates here? Docker for mac currently unusable...

i think that there is an issue with volume mounts.

ddzobov avatar Aug 19 '21 21:08 ddzobov

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: Screen Shot 2021-08-30 at 4 10 50 pm

I currently have only 4 containers running and docker stats tells me each of those is consistently only around 1% of CPU: Screen Shot 2021-08-30 at 4 10 37 pm

Should I raise this as a distinct issue? Is this the expected baseline CPU usage for Docker on MacOS?

james-blitzm avatar Aug 30 '21 06:08 james-blitzm

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 ?

iongion avatar Sep 02 '21 13:09 iongion

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. 🤷🏿‍♂️ 🤷🏿‍♀️ 🤷🏿

dimaqq avatar Sep 02 '21 23:09 dimaqq

Possible cause: #5940 (may depend on what virtualisation mechanism OP used)

dimaqq avatar Sep 03 '21 07:09 dimaqq

I've tried all docker engines available, same problem all the time

image

returned to this image

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

image

iongion avatar Sep 06 '21 18:09 iongion

Here's my diagnostic ID: E3B4D178-F82A-45E4-9B5D-A3C288439479/20210908075810

Can the admins add version/4.0.0 tag also, please?

dimaqq avatar Sep 08 '21 08:09 dimaqq

Yes, same issue with 4.0.0

4470E8C6-FA81-48BE-9895-3F521651C2AB/20210908211800

ddzobov avatar Sep 08 '21 21:09 ddzobov

Are you guys all on Big Sur ? Could this be a MacOS problem more than Docker ?

iongion avatar Sep 09 '21 14:09 iongion

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

jasonglisson avatar Sep 09 '21 14:09 jasonglisson

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..

xavipanda avatar Sep 09 '21 17:09 xavipanda

The only workaround that works for me is exiting Docker when I'm not using it.

james-blitzm avatar Sep 09 '21 22:09 james-blitzm

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

dimaqq avatar Sep 10 '21 10:09 dimaqq

Catalina 10.15.7 (19H524)

djmcgreal-cc avatar Sep 10 '21 10:09 djmcgreal-cc

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.

djmcgreal-cc avatar Sep 10 '21 10:09 djmcgreal-cc

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.

iongion avatar Sep 10 '21 11:09 iongion

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

iongion avatar Sep 10 '21 11:09 iongion