Skip to content

Reopen: CPU 100% usage with hyperkit - https://github.com/docker/for-mac/issues/3499 #5044

Closed

Description

@ClimberBear

After yesterday upgrade, the issue has come back.

I have found the old issue in

#3499

I have uploaded a diagnose package with ID:
14953D49-8102-48BD-8964-94B55CD0862B/20201104094416

  • I have tried with the latest version of my channel (Stable or Edge)
  • I have uploaded Diagnostics
  • Diagnostics ID: 14953D49-8102-48BD-8964-94B55CD0862B/20201104094416

Expected behavior

Actual behavior

com.docker.hyperkit runs with 90% CPU forever

Information

Please, help us understand the problem. For instance:

Diagnostic logs

Steps to reproduce the behavior

Simply start docker (in my case, with K8s

Activity

  1. mpospelov commented on Nov 5, 2020

    @mpospelov

    Same for me but without K8s.
    Diagnose package id:
    E9676C0A-91A1-4EB8-BF42-D272F79E7CB2/20201105085214

  2. devsi commented on Nov 5, 2020

    @devsi

    Same problem, com.docker.hyperkit running at 160% for me causing a huge system slow down on mac os.

    Internal containers never rising above 1 or 2% CPU

    Always sits above 100%. Issue #4981 also covered this in Docker 2.4.0.0 and has been closed as fixed. Docker 2.5.0.0 is the same, I don't believe this is fixed.

  3. flowy0 commented on Nov 6, 2020

    @flowy0

    I have some random cpu spikes while not running any container.
    Running Docker without k8s.
    Diagnose package ID: 0A196DFC-D280-4195-AD85-F7DB253E0980/20201106040906

  4. asko commented on Nov 6, 2020

    @asko

    Same here. So far lowest CPU usage when idling (no containers, no stats, no k8s) been around 25%

  5. Terminator637 commented on Nov 6, 2020

    @Terminator637

    I got the same situation. No running containers, but com.docker.hyperkit eats CPU for 30-40% without any visible reason.

  6. lexsca commented on Nov 7, 2020

    @lexsca

    i'm seeing similar behavior. i tried restarting docker desktop and disabling k8s, but the oddly high cpu usage persists, even when docker is completely idle and has no containers running. digging a bit deeper:

    $ pgrep hyperkit | xargs ps auxww
    USER           PID  %CPU %MEM      VSZ    RSS   TT  STAT STARTED      TIME COMMAND
    lscarisbrick 32925  16.7  2.3 12849708 380680   ??  S     4:38PM   2:02.37 com.docker.hyperkit -A -u -F vms/0/hyperkit.pid -c 6 -m 8192M -s 0:0,hostbridge -s 31,lpc -s 1:0,virtio-vpnkit,path=vpnkit.eth.sock,uuid=7ef1b81a-1715-4393-8ba8-b8f3250ed3f0 -U 974c6ab5-2c3e-47dd-83de-22408da6fcf9 -s 2:0,virtio-blk,/Users/lscarisbrick/Library/Containers/com.docker.docker/Data/vms/0/data/Docker.raw -s 3,virtio-sock,guest_cid=3,path=vms/0,guest_forwards=2376;1525 -s 4,ahci-cd,/Applications/Docker.app/Contents/Resources/linuxkit/docker-desktop.iso -s 5,virtio-rnd -l com1,null,asl,log=vms/0/console-ring -f bootrom,/Applications/Docker.app/Contents/Resources/uefi/UEFI.fd,,
    
    $ sudo dtruss -fp 32925 2>&1 | head -20
    dtrace: system integrity protection is on, some features will not be available
    
    	PID/THRD  SYSCALL(args) 		 = return
    dtrace: 4404 dynamic variable drops with non-empty dirty list
    32925/0x68db7:  psynch_cvsignal(0x7FEF63825610, 0x414640004146500, 0x4146400)		 = 257 0
    32925/0x68db7:  psynch_mutexdrop(0x7FEF63825520, 0x1CA400, 0x1CA400)		 = 0 0
    32925/0x68dbe:  psynch_mutexwait(0x7FEF63825520, 0x1CA402, 0x1CA300)		 = 1876995 0
    32925/0x68dbe:  psynch_cvsignal(0x102858890, 0x1895410018954200, 0x18953D00)		 = 257 0
    32925/0x68db7:  psynch_cvwait(0x102858890, 0x1895410118954200, 0x18953D00)		 = 0 0
    32925/0x68db7:  psynch_cvwait(0x102858890, 0x1895420118954300, 0x18954200)		 = -1 316
    32925/0x68db7:  psynch_cvsignal(0x7FEF63825610, 0x414650004146600, 0x4146500)		 = 257 0
    32925/0x68dbe:  psynch_cvwait(0x7FEF63825610, 0x414650104146600, 0x4146500)		 = 0 0
    32925/0x68db7:  psynch_cvwait(0x102858890, 0x1895430118954400, 0x18954200)		 = -1 316
    32925/0x68db7:  psynch_cvsignal(0x7FEF63825DF0, 0x1D3A40001D3A500, 0x1D3A400)		 = 257 0
    32925/0x68db7:  psynch_mutexdrop(0x7FEF63825D00, 0xCCF00, 0xCCF00)		 = 0 0
    32925/0x68e4b:  psynch_mutexwait(0x7FEF63825D00, 0xCCF02, 0xCCE00)		 = 839427 0
    32925/0x68db7:  psynch_cvwait(0x102858890, 0x1895440118954500, 0x18954200)		 = -1 316
    32925/0x68db7:  psynch_cvsignal(0x7FEF63825610, 0x414660004146700, 0x4146600)		 = 257 0
    32925/0x68dbe:  psynch_cvwait(0x7FEF63825610, 0x414660104146700, 0x4146600)		 = 0 0
    32925/0x68dbe:  psynch_cvsignal(0x102858890, 0x1895450018954600, 0x18954200)		 = 257 0
    32925/0x68db7:  psynch_cvwait(0x102858890, 0x1895450118954600, 0x18954200)		 = 0 0
    

    the psynch_* calls are happening at a rate of about 2,000 per second, which seems to be driving the cpu usage.

  7. mscrivo commented on Nov 7, 2020

    @mscrivo

    Same here, CPU usage is double what it was on 2.4 with the same set of containers, and pretty much idle.

  8. JJJ commented on Nov 8, 2020

    @JJJ

    Hey friends, hope y'all don't mind me joining in the fun:

    jjj-sc-2020-11-08 at 12 45 18@2x

    USER   PID  %CPU %MEM      VSZ    RSS   TT  STAT STARTED      TIME COMMAND
    jjj    853 190.1  4.0  6634376 668020   ??  R    11:27AM 133:29.39 com.docker.hyperkit -A -u -F vms/0/hyperkit.pid -c 2 -m 2048M -s 0:0,hostbridge -s 31,lpc -s 1:0,virtio-vpnkit,path=vpnkit.eth.sock,uuid=158924d1-abfa-4d73-bece-f521ceb13755 -U 92096acb-fe0f-4da3-afe3-0d502b0546af -s 2:0,virtio-blk,/Users/jjj/Library/Containers/com.docker.docker/Data/vms/0/data/Docker.raw -s 3,virtio-sock,guest_cid=3,path=vms/0,guest_forwards=2376;1525 -s 4,ahci-cd,/Applications/Docker.app/Contents/Resources/linuxkit/docker-desktop.iso -s 5,ahci-cd,vms/0/config.iso -s 6,ahci-cd,/Applications/Docker.app/Contents/Resources/linuxkit/docker.iso -s 7,virtio-rnd -l com1,null,asl,log=vms/0/console-ring -f bootrom,/Applications/Docker.app/Contents/Resources/uefi/UEFI.fd,,
    

    In addition, the related containers (used for local web development) are now painfully slow to respond.

  9. jasonfutch commented on Nov 9, 2020

    @jasonfutch

    2.4.0.0 it was using around 360% CPU, after I upgraded to 2.5.0.0 it at least dropped down to around 100% CPU usage. It still way to much for running idle and keeps my fan constantly on.

    image

  10. imarcelolz commented on Nov 10, 2020

    @imarcelolz

    I'm running here the version 2.5.0.0 and I'm still have issues related to the performance. The cpu temperature goes crazy when I start containers with mounted volumes.
    image

  11. rmoff commented on Nov 10, 2020

    @rmoff
  12. x1c0 commented on Nov 10, 2020

    @x1c0

    Downgrading to version 2.4 worked for me. from 80-100% cpu now I have 30-40% with same container! the fans are finally quiet!! i was going mad lol

  13. stephen-turner commented on Nov 10, 2020

    @stephen-turner
    Contributor

    Thank you to the people who have included diagnostics ids in your replies. To everyone else, we cannot investigate without diagnostics so please upload them and paste the id here. Thank you.

  14. jgillard commented on Nov 10, 2020

    @jgillard

    Just updated to 2.5.0.1 and com.docker.hyperkit is idling around 19% CPU with Kubernetes disabled.
    Here's the diagnostic ID: 91138FFB-8878-42AB-A66C-4475CC17EA2E/20201110114606

  15. 93 remaining items

  16. stephen-turner commented on Dec 10, 2020

    @stephen-turner
    Contributor

    Yes, the kernel was downgraded. We didn't manage to find a fix for the new kernel yet.

  17. LeviticusMB commented on Dec 11, 2020

    @LeviticusMB

    3.0.0 is amazing! Thanks!

    Sure, I'm still seeing 20-30% CPU (with K8S but no pods), but the fan is finally quiet.

  18. gee-forr commented on Dec 11, 2020

    @gee-forr

    Hey team - just chiming in here. Docker now idles at ~6% when not running anything. Thank you so much.

  19. pozgo commented on Dec 11, 2020

    @pozgo

    Finally, I can get rid of docker-toolbox :D

  20. ikunali commented on Dec 29, 2020

    @ikunali

    I'm running 3.0.1(50773) & idle usage is ~10% which is much better than previous versions.

  21. timony commented on Jan 8, 2021

    @timony

    2.5.4 is now released and fixes this bug, so I'll close this ticket. (NB it's not the same build as people posted above, that was a development build).

    If you're on the Stable channel, we're planning a release including this later this week.

    Can you please confirm the 2.5.4 is official build? I cant see it in https://docs.docker.com/docker-for-mac/release-notes/#docker-desktop-community-2501

  22. stephen-turner commented on Jan 8, 2021

    @stephen-turner
    Contributor

    2.5.4 was an Edge build, and we have since merged the Edge and Stable channels. The first Stable release with the fix was 3.0.0, but that had other problems so I would recommend upgrading to the latest release, 3.0.4.

  23. timony commented on Jan 8, 2021

    @timony

    2.5.4 was an Edge build, and we have since merged the Edge and Stable channels. The first Stable release with the fix was 3.0.0, but that had other problems so I would recommend upgrading to the latest release, 3.0.4.

    Im glad to confirm after installing 3.0.4 (and Mac restart) my funs calmed down (CPU on 20%)

  24. stephen-turner commented on Jan 8, 2021

    @stephen-turner
    Contributor

    Great, thanks for the confirmation.

  25. NixBiks commented on Jan 13, 2021

    @NixBiks

    I'm on docker 3.0.4, macOS Big Sur 11.1, MacBook Pro 2018. com.docker.hyperkit is killing me with 200% cpu usage when running a uvicorn application (python) with hot reload, as well as a webpack watcher (typescript compiler). It is small applications with not a lot of files to watch so it shouldn't kill it like that. My desktop is not really affected by it (running the same on my desktop)

  26. betesh-at-data-axle commented on Jan 15, 2021

    @betesh-at-data-axle

    I'm running into the same issue as @mr-bjerre . Strange thing is this started yesterday for no apparent reason -- I didn't upgrade or anything (though since then, I've downgraded to a few different versions with no success).

    3A821997-CEC3-46AD-8153-C0332678178C/20210115012149

  27. docker-robott commented on Feb 14, 2021

    @docker-robott
    Collaborator

    Closed issues are locked after 30 days of inactivity.
    This helps our team focus on active issues.

    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.
    /lifecycle locked

  28. locked and limited conversation to collaborators on Feb 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions