Skip to content
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

High CPU Utilization of Hyperkit in Mac #1759

Open
taufek opened this issue Jun 21, 2017 · 458 comments

Comments

@taufek
Copy link

commented Jun 21, 2017

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

This comment has been minimized.

Copy link

commented Jun 21, 2017

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

This comment has been minimized.

Copy link

commented Jun 23, 2017

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:
moby/hyperkit#58
#1568

Any work-a-round?

@rmatec

This comment has been minimized.

Copy link

commented Jul 3, 2017

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

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

@ecoopnet

This comment has been minimized.

Copy link

commented Jul 7, 2017

+1

@nmquyet

This comment has been minimized.

Copy link

commented Jul 8, 2017

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

This comment has been minimized.

Copy link

commented Jul 18, 2017

Same here, +1.

@ahalyakumari95

This comment has been minimized.

Copy link

commented Aug 2, 2017

I am facing the same too.

@alexcrownus

This comment has been minimized.

Copy link

commented Aug 15, 2017

Same here

@spetrashov

This comment has been minimized.

Copy link

commented Aug 18, 2017

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

@montera82

This comment has been minimized.

Copy link

commented Aug 21, 2017

same here ... any update in this issue ?

Version 17.06.0-ce-mac19 (18663)
Channel: stable
c98c1c25e0
@nmquyet

This comment has been minimized.

Copy link

commented Aug 21, 2017

issue persisted

@mrfoh

This comment has been minimized.

Copy link

commented Aug 25, 2017

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

@davidharrigan

This comment has been minimized.

Copy link

commented Aug 25, 2017

+1, Same here:

Docker version 17.06.1-ce, build 874a737

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

@mrfoh

This comment has been minimized.

Copy link

commented Aug 25, 2017

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

@filfreire

This comment has been minimized.

Copy link

commented Aug 28, 2017

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

@petterik

This comment has been minimized.

Copy link

commented Aug 28, 2017

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

This comment has been minimized.

Copy link

commented Sep 5, 2017

@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

This comment has been minimized.

Copy link

commented Sep 15, 2017

+1

  • 100-170% CPU by hyperkit
  • OSX Version: 10.12.6, 2.9 GHz Intel Core i5
  • Docker: Version 17.07.0-ce-rc1-mac21 (18848), 2 cores dedicated
@zhaoqingchris

This comment has been minimized.

Copy link

commented Sep 17, 2017

+1

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

@janetthecoder

This comment has been minimized.

Copy link

commented Sep 22, 2017

+1

@slykar

This comment has been minimized.

Copy link

commented Sep 22, 2017

+1

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

@karlbunch

This comment has been minimized.

Copy link

commented Sep 23, 2017

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
@scottaj91

This comment has been minimized.

Copy link

commented Sep 27, 2017

+1

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

@pdlipman

This comment has been minimized.

Copy link

commented Sep 27, 2017

+1

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

@johannessjoberg

This comment has been minimized.

Copy link

commented Sep 28, 2017

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

@scottaj91

This comment has been minimized.

Copy link

commented Sep 29, 2017

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

@scottaj91

This comment has been minimized.

Copy link

commented Sep 29, 2017

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

@carlosnasillo

This comment has been minimized.

Copy link

commented Jul 26, 2019

Experiencing same issue as others, Hyperkit running at 180-220% CPU
Running docker engine 18.09.2, desktop version 2.0.0.3 (31259)
For me its happening with TeamCity:latest

<redacted>$ system_profiler SPSoftwareDataType sw_vers
Software:

    System Software Overview:

      System Version: macOS 10.14.5 (18F132)
      Kernel Version: Darwin 18.6.0
      Boot Volume: Macintosh HD
      Boot Mode: Normal
      Computer Name: <redacted>
      User Name: <redacted>
      Secure Virtual Memory: Enabled
      System Integrity Protection: Enabled
      Time since boot: 5 days 20:53
@jasonbronson

This comment has been minimized.

Copy link

commented Jul 26, 2019

I would like to mention to folks still having issues that it might be helpful if they post what is being run in docker.
Our setup has :cached added to our docker-compose file and filevault off which has helped us.

@Deviad

This comment has been minimized.

Copy link

commented Jul 28, 2019

I have the same issue while running go-ethereum. I do not use it for mining but for developing. :((
Also I experience immense file sizes of docker.raw. and I have to keep deleting it.

@wilomgfx

This comment has been minimized.

Copy link

commented Jul 29, 2019

I would like to mention to folks still having issues that it might be helpful if they post what is being run in docker.
Our setup has :cached added to our docker-compose file and filevault off which has helped us.

yeah adding :cache to our volumes helped, but turning off filevault is not an option...

@Deviad

This comment has been minimized.

Copy link

commented Jul 30, 2019

@wilomgfx We are on the same boat. :((

@CyberLight

This comment has been minimized.

Copy link

commented Jul 31, 2019

I think the problem is high CPU consumption by default. On my PC, all 4 cores of the CPU are used by default (in Docker Desktop settings), and I changed this value to 2 cores. I do not have any trackers of changes in the file system inside my docker container. Docker, he's like a kid, if you say "use all my resources", then docker will use them all (this is just my opinion). But reducing the number of processor cores helped. My PC no longer makes so much noise with cooling coolers.

image

@wilomgfx

This comment has been minimized.

Copy link

commented Jul 31, 2019

I think the problem is high CPU consumption by default. On my PC, all 4 cores of the CPU are used by default (in Docker Desktop settings), and I changed this value to 2 cores. I do not have any trackers of changes in the file system inside my docker container. Docker, he's like a kid, if you say "use all my resources", then docker will use them all (this is just my opinion). But reducing the number of processor cores helped. My PC no longer makes so much noise with cooling coolers.

image

This does indeed help especially on the 6 core 2018 mbps, but still consumes an enormous amount of CPU.

@BrBill

This comment has been minimized.

Copy link

commented Jul 31, 2019

I'm curious why com.docker.hyperkit sucks a constant 5% of CPU when there are no containers running. Hyperkit usage is unnecessary unless there are containers, so WTF is it doing? It should be almost completely idle.

@matti

This comment has been minimized.

Copy link

commented Jul 31, 2019

it is completely idle (when you don't have anything running), you can go inside of the machine with screen and the tty file and see it for yourself with top - but the mac Activity Monitor shows waaaaay higher cpu usage that does not correlate with the top readings.

So it is something else - prob. related to IO since filevault seems to trigger it.

@BrBill

This comment has been minimized.

Copy link

commented Jul 31, 2019

My readings are with htop, not Activity Monitor. But compared to these really high CPU rates most of the people here are dealing with, my complaint is small potatoes.

@matti

This comment has been minimized.

Copy link

commented Jul 31, 2019

yeah well htop/activity monitor - the host shows different (real) readings what you can see inside of hyperkit.

@dfang

This comment has been minimized.

Copy link

commented Aug 1, 2019

high cpu, no matter 1 cpu or 2/4 cpus.

@CyberLight

This comment has been minimized.

Copy link

commented Aug 1, 2019

In my context "CPUs" means "cores" ) it's not separated CPU "as is"

@m2bright

This comment has been minimized.

Copy link

commented Aug 2, 2019

I just installed Docker Desktop 2.1.0.0. The problem has gone away for me. You might try updating.

@wuestkamp

This comment has been minimized.

Copy link

commented Aug 2, 2019

@m2bright do you have Local Kubernetes Cluster enabled? For me nothing changed with version 2.1.0.0, as soon as I enable k8s (even without any workloads) I have constant 50% cpu usage.

@dfang

This comment has been minimized.

Copy link

commented Aug 2, 2019

@m2bright I've updated it to the latest 2.1.0.0 edge channel,

4 cpus and 8 GB memory, 1 GB swap.

cpu fans spins loudly.

@m2bright

This comment has been minimized.

Copy link

commented Aug 2, 2019

@0x1ad2

This comment has been minimized.

Copy link

commented Aug 15, 2019

Screenshot 2019-08-15 at 11 01 51

I've a new Macbook pro 2019 (i9) it's consuming 711,9% of the CPU resource.
Running Docker for Mac 2.1.0.1 (37199)

@avaz

This comment has been minimized.

Copy link

commented Aug 15, 2019

@alanwasem

This comment has been minimized.

Copy link

commented Aug 15, 2019

@avaz which configuration are you referring to?

@avaz

This comment has been minimized.

Copy link

commented Aug 15, 2019

Hi,

@alanwasem and all, I didn't know that attachments on email replies doesn't work/show up on Github.

This is the my configuration that I referred to:
Screenshot 2019-08-15 at 16 01 52

Regards!

@typeoneerror

This comment has been minimized.

Copy link

commented Aug 17, 2019

750% here. We did see a reduction to...300% when reducing CPUs as shown above, but clearly that's not ideal.

@avaz

This comment has been minimized.

Copy link

commented Aug 17, 2019

The default Docker configuration (at least in several versions ago) is only 1 CPU and I adjusted to 4, therefore I increased, not reduced.

@hopkings2008

This comment has been minimized.

Copy link

commented Aug 20, 2019

same here, also consumes high cpu in my mac.
Client: Docker Engine - Community
Version: 18.09.2
API version: 1.39
Go version: go1.10.8
Git commit: 6247962
Built: Sun Feb 10 04:12:39 2019
OS/Arch: darwin/amd64
Experimental: false

Server: Docker Engine - Community
Engine:
Version: 18.09.2
API version: 1.39 (minimum version 1.12)
Go version: go1.10.6
Git commit: 6247962
Built: Sun Feb 10 04:13:06 2019
OS/Arch: linux/amd64
Experimental: false

@polycode-nz

This comment has been minimized.

Copy link

commented Aug 26, 2019

After updating to Mojave 10.14.6 and Docker 2.1.0.1 stable the com.docker.hyperkit process pinned the CPU to ~400% = unresponsive docker..

I changed all projects docker-compose from restart:always to the default (no).

The CPU's setting was already on 4, doubled the Memory up to 4GB.

upping projects the process spikes ~110% for a second or so then comes back down to ~7%.

Currently have 4 projects up and com.docker.hyperkit is about 8%

Ironically, on the memory tab com.docker.hyperkit is using 4.53GB.

Also, FileVault is off.

@matti

This comment has been minimized.

Copy link

commented Aug 27, 2019

@polycode-nz did you reset docker for mac to factory settings?

@polycode-nz

This comment has been minimized.

Copy link

commented Aug 27, 2019

@matti No I didn't. I just slid up the Memory and clicked "Apply & Restart"

@vdavari

This comment has been minimized.

Copy link

commented Aug 30, 2019

+1

@AlexZorkin

This comment has been minimized.

Copy link

commented Sep 13, 2019

I altered my docker-compose file to use named docker volumes rather than bind mount volumes and my cpu usage went from 200%+ to 30%.

ex.
Changed:

db:
    image: mdillon/postgis:11
    env_file:
      - env-postgres.env
    volumes:
      - ./.tmp/postgis-dev:/var/lib/postgresql/dat
    ports:
      - '5432:5432'

To:

db:
    image: mdillon/postgis:11
    env_file:
      - env-postgres.env
    volumes:
       - db-data:/var/lib/postgresql/dat
    ports:
      - '5432:5432'

volumes:
   db-data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.