docker-machine-driver-xhyve icon indicating copy to clipboard operation
docker-machine-driver-xhyve copied to clipboard

high cpu usage with minikube

Open dfang opened this issue 8 years ago • 6 comments

everytime i run minikube start, cpu usage increases to 100~300% and cpu fan gets loud ....

docker-machine-driver-xhyve version: /usr/local/Cellar/docker-machine-driver-xhyve/0.3.3

minikube version minikube version: v0.23.0

macOS version: High sierra 10.13

dfang avatar Nov 21 '17 03:11 dfang

did you try to increase the number of cpus allocated to the minikube vm ? Default is set to 2 cpus.

  • minikube start --vm-driver=xhyve --cpus NUMBER_OF_CPUS

I set mine to 4 and it reduced my cpu usage from 140% to 50%

komondor avatar Nov 22 '17 00:11 komondor

You might be running into this minikube issue https://github.com/kubernetes/minikube/issues/2130, try to disable the dashboard addon and see if that helps

oyvindio avatar Nov 22 '17 12:11 oyvindio

On: macOS Sierra - 10.12.6 minikube: v0.23.0

When starting minikube without adding --cpus 4 with dashboard addon enabled, its always over 100% usage as reported in this issue. However when I disable the dashboard addon as suggested by @oyvindio, the usage falls to around 33%

After trying @komondor's suggestion minikube start --vm-driver=xhyve --cpus 4 with dashboard addon enabled, the CPU usage fluctuates around 24 - 28% and rarely goes above 40%.

However, not sure if allowing 4 CPUs can cause any issue with my machine otherwise. Would it?

ProProgrammer avatar Dec 05 '17 14:12 ProProgrammer

same problem

Blacksheepi avatar Jan 30 '18 00:01 Blacksheepi

Same problem with Minishift

After a couple of hours if the minishift is not stopped the computer will trash (both cpu and memory very high for docker-machine-driver-xhyve) and needs to be rebooted, so 2 hrs is the limit for usage.

There is no kubernetes dashboard involved, so I guess it was not the culprit.

fnasser avatar Feb 07 '19 21:02 fnasser