crc: [BUG] Idle CRC install causes high CPU usage

General information

  • OS: macOS
  • Hypervisor: hyperkit
  • Did you run crc setup before starting it (Yes/No)?: yes

CRC version

chirino-mbp:~ chirino$ crc version
version: 1.0.0-rc.0+34371d3
OpenShift version: 4.2.0-0.nightly-2019-09-26-192831 (embedded in binary)
chirino-mbp:~ chirino$ 

CRC status

chirino-mbp:~ chirino$ crc status
CRC VM:          Running
OpenShift:       Running (v4.2.0-0.nightly-2019-09-26-192831)
Disk Usage:      13.15GB of 32.2GB (Inside the CRC VM)
Cache Usage:     11.71GB
Cache Directory: /Users/chirino/.crc/cache

CRC config

chirino-mbp:~ chirino$ crc config view
chirino-mbp:~ chirino$ 

Host Operating System

chirino-mbp:~ chirino$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.14.6
BuildVersion:	18G95
chirino-mbp:~ chirino$ 

Steps to reproduce

  1. Just install
  2. Look at the OS X Activity Monitor for CPU usage of hyperkit process

Expected

  1. A fresh idle CRC install should have very low CPU usage. Ideally under 10%. Right now it hovers between 130 and 160%
  2. Please compare to a minishift install.

Actual

Screen Shot 2019-10-11 at 10 41 24 AM

Logs

You can start crc with crc start --log-level debug to collect logs. Please consider posting this on http://gist.github.com/ and post the link in the issue.

About this issue

  • Original URL
  • State: open
  • Created 5 years ago
  • Reactions: 2
  • Comments: 36 (14 by maintainers)

Most upvoted comments

If the state of the cluster is not changing like in a freshly installed idle cluster, then there should be little CPU usage by the operators. Something seems to be spinning needlessly.

I would be happy to assist debugging this, but I haven’t found a way (like minishift ssh && ps)

but at the moment there is no ‘profile’ to determine or adjust this

@cfergeau ^^ hopefully the type/profile designator of a cluster could help with this. This could be part of an enhancement.