docker / for-mac

Bug reports for Docker Desktop for Mac
https://www.docker.com/products/docker#/mac
2.42k stars 116 forks source link

High CPU Utilization of Hyperkit in Mac #1759

Closed taufek closed 3 years ago

taufek commented 7 years ago

My CPU utilization by hyperkit on my mac seems too high. It caused my mac to overheat.

screen shot 2017-06-21 at 1 04 44 pm

Below is my docker version info:

╰─ docker version                                                                                                                                                                                                  13:06:29
Client:
 Version:      17.06.0-ce-rc4
 API version:  1.30
 Go version:   go1.8.3
 Git commit:   29fcd5d
 Built:        Thu Jun 15 17:29:01 2017
 OS/Arch:      darwin/amd64

Server:
 Version:      17.06.0-ce-rc4
 API version:  1.30 (minimum version 1.12)
 Go version:   go1.8.3
 Git commit:   29fcd5dfae
 Built:        Thu Jun 15 18:50:07 2017
 OS/Arch:      linux/amd64
 Experimental: true

Below is my diagnostic id when this issue is happening. 1B8B3901-6393-41B7-B7D3-0FC914F1C668

I'm running rails container with docker-sync.

jwulf commented 7 years ago

Same thing with the latest update:

Docker version 17.06.0-ce-rc4, build 29fcd5d

Diagnostic ID:

1FACDAD0-44D8-4042-BEB0-6E4A93861395

screen shot 2017-06-21 at 6 22 30 pm
jedie commented 7 years ago

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

or: https://github.com/moby/hyperkit/issues/58 https://github.com/docker/for-mac/issues/1568

Any work-a-round?

rmatec commented 7 years ago

Same here. Docker: Version 17.03.1-ce-mac5 (16048)

Diagnostic ID: B9EA3FE6-68B0-4792-85BD-D92642119587

ecoopnet commented 7 years ago

+1

nmquyet commented 7 years ago

yes, i have the exact same issue. It consumes my battery pretty fast. This is so frustrated

screen shot 2017-07-08 at 2 39 20 pm screen shot 2017-07-08 at 2 39 05 pm

Diagnostic ID: 3E5FC66A-383B-4FA5-B609-75AF769E1495

Hemantkumar-Chigadani commented 6 years ago

Same here, +1.

ahalyakumari95 commented 6 years ago

I am facing the same too.

alexcrownus commented 6 years ago

Same here

spetrashov commented 6 years ago

Confirm the same problem Docker version 17.07.0-ce-rc2, build 36ce605 Diagnostic ID: 1C9F0E05-F0C7-4E73-A9CB-3DBD5B5E34A8

montera82 commented 6 years ago

same here ... any update in this issue ?

Version 17.06.0-ce-mac19 (18663)
Channel: stable
c98c1c25e0
nmquyet commented 6 years ago

issue persisted

mrfoh commented 6 years ago

Same problem here Docker version 17.06.0-ce, build 02c1d87

davidharrigan commented 6 years ago

+1, Same here:

Docker version 17.06.1-ce, build 874a737

DiagnosticID: 35CB31D1-06CA-45D5-9DE5-7DACBCC100BF

mrfoh commented 6 years ago

Got CPU usage down by limiting Docker to a single CPU from the docker settings

filfreire commented 6 years ago

I'm experiencing the same issue, Version 17.06.1-ce-mac24 (18950) Channel: stable 54dc09c3e3

petterik commented 6 years ago

I removed all data and the hyperkit cpu usage went from 150% to 0.9%. I have 2 cores dedicated to docker.

Version:

Version 17.06.1-ce-mac24 (18950)
Channel: stable
54dc09c3e3

Removed all data with the following steps:

* Click on Docker icon in my menu bar
* Preferences
* Reset
* Remove all data
* Delete
snackycracky commented 6 years ago

@petterik that helped for a minute, after I rebuild my app the cpu is back to ~300% for hyperkit and 85% for com.docker.osxfs on OSX 10.12.6 (16G29) with Docker Version 17.06.1-ce-mac24 (18950) Channel: stable 54dc09c3e3

johannessjoberg commented 6 years ago

+1

zhaoqingchris commented 6 years ago

+1

OSX Version: 10.12.6 (16G29) Docker version 17.06.2-ce, build cec0b72

janetthecoder commented 6 years ago

+1

slykar commented 6 years ago

+1

macOS Sierra 10.12.6 (16G29) Docker: 17.06.2-ce-mac27 (19124)

karlbunch commented 6 years ago

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) Kernel Version: Darwin 16.7.0 Docker version 17.06.2-ce, build cec0b72

I spooled up a bare metal box on packet.net and my build works fine without any hangs.

+ uname -a
Linux build-dev01 4.10.0-24-generic #28-Ubuntu SMP Wed Jun 14 08:14:34 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
+ cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.2 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.2 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
+ docker --version
Docker version 17.06.2-ce, build cec0b72
scanarjo commented 6 years ago

+1

macOS High Sierra 10.13 (17A365) Docker Stable: 17.06-ce-mac27 (19124)

pdlipman commented 6 years ago

+1

MacOS Sierra: 10.12.6 (16G29) Version 17.06.2-ce-mac27 (19124) Channel: stable

johannessjoberg commented 6 years ago

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

scanarjo commented 6 years ago

Just an update with some of my findings: I am still seeing CPU usage of 300% for hyperkit with Docker prefs set to 1 CPU and the Docker daemon isn't even running anymore...

scanarjo commented 6 years ago

Further update: Edge does not seem to have the same issue. Uninstalled Stable and installed Edge and hyperkit CPU usage is now normal again

Tensho commented 6 years ago

+1

MacOS Sierra: 10.12.6 (16G29) Version 17.06.2-ce-mac35 (69202b202f497d4b6e627c3370781b9e4b51ec78)

robertchen commented 6 years ago

same issue

DC972 commented 6 years ago

Hey guys, i'm simply wondering what the CPU time really mean (in hour, minutes, seconds?). I'm comparing my two Macs performance on a 3D modeling app and here is what i get.

CPU Time: For the exact same task Mac #1: 84 : 38 : 56,86 Mac #2: 69 : 22 : 9,55

Thanks

moisesrodriguez commented 6 years ago

macOS: version 10.11.6 (build: 15G1611)

Version 17.09.0-ce-mac35 (19611) Channel: stable a98b7c1b7c

Diagnostic ID: D3A1D14B-6B5F-41CC-BC07-13446DDBCD70

cmbernard333 commented 6 years ago

+1

Same Issue.

Spikes to 98-100% every so often.

macOS High Sierra 10.13.1 Beta (17B46a) Version 17.09.0-ce-mac35 (19611) Channel: stable a98b7c1b7c

garethlawson commented 6 years ago

+1

macOS Sierra 10.12.6 Version 17.09.0-ce-mac35 (19611) Channel: stable a98b7c1b7c

I don't think I had this issue before the latest Docker for Mac update, but I may have just not noticed it.

gson88 commented 6 years ago

+1

Just installed Edge as @scottaj91 suggested but it did not help for me. hyperkit is constantly around ~70% cpu usage.

barat commented 6 years ago

I suppose that it might be connected with osxfs (large number of files) ... overall this CPU issue, and insanely slow bind mount are main reasons which make docker for mac called "native" a joke.

squallstar commented 6 years ago

+1

macOS Sierra 10.13.1 (17B48) Version 17.09.0-ce-mac35 (19611) Channel: stable a98b7c1b7c

hyperkit constantly over 50% and both my keyboard and mouse lags or have strong delays when using docker-compose with a couple of containers.

Was working fine on Sierra.

Using a Macbook Pro 2013 with i7 and 16Gb of Ram.

OlegLustenko commented 6 years ago

I've updated to insider build it that problem has gone. Give it a try if it helps give feedback pls

magobaol commented 6 years ago

@OlegLustenko what do you mean? Where is this insider build to try?

OlegLustenko commented 6 years ago

@magobaol I mean Edge channel. https://docs.docker.com/docker-for-mac/install/#download-docker-for-mac

While containers are build there still sometimes hyperkit load to 70-100% CPU in watch-mode everything is fine or with dev configs no CPU overload

magobaol commented 6 years ago

Thanks @OlegLustenko. I already use edge but on my machine HyperKit is constanlty over 150% :-/

stefanocog commented 6 years ago

+1

nitayk commented 6 years ago

+1

macOS High Sierra Version 10.13.1 (17B48) MacBook Pro (Retina, 13-inch, Early 2015) Processor: 2.9 GHz Intel Core i5 Memory: 16 GB 1867 MHz DDR3 Docker Version: 17.09.0-ce-mac35 (19611) Channel: Stable a98b7c1b7c

luciomr commented 6 years ago

OSX High Sierra 10.13.1 (latest updates applied) Docker 17.09.0-ce-mac35 (19611) Channel Stable a98b7c1b7c

Went with the suggestion from @mrfoh and reduced docker resources from 4 cores/2gb ram to 1 core/1 gb ram to sorta tackle the issue.

cameronwlewis commented 6 years ago

+1

ajeesh2705 commented 6 years ago

I am facing the same issue, do we have any solution yet for this?

bekahwhittle commented 6 years ago

Same here

Richi2293 commented 6 years ago

I also have the same problem, what's new? Docker version 17.09.0-ce, build afdb6d4 Channel: Stable

nmquyet commented 6 years ago

Nothing news just removing docker 🙃

u-maxx commented 6 years ago

macOS High Sierra 10.13.1 / MBP (Retina, 15-inch, Mid 2014) / 2.5 GHz Intel Core i7 / 16 GB 1600 MHz DDR3 / SSD500Gb

Docker config: 4 CPUs + 4 GB RAM

Both stable and edge are lagging, currently using:

docker version Client: Version: 17.11.0-ce API version: 1.34 Go version: go1.8.4 Git commit: 1caf76c Built: Mon Nov 20 18:30:18 2017 OS/Arch: darwin/amd64

Server: Version: 17.11.0-ce API version: 1.34 (minimum version 1.12) Go version: go1.8.5 Git commit: 1caf76c Built: Mon Nov 20 18:39:28 2017 OS/Arch: linux/amd64 Experimental: true

jiacai2050 commented 6 years ago

A workaround is to run docker inside a vagrant box. this solution works well in my daily develop.