djs55/hyperkit-high-cpu
An example of an idle VM inducing high CPU in hyperkit
{ "createdAt": "2020-11-30T19:46:40Z", "defaultBranch": "main", "description": "An example of an idle VM inducing high CPU in hyperkit", "fullName": "djs55/hyperkit-high-cpu", "homepage": null, "language": "Go", "name": "hyperkit-high-cpu", "pushedAt": "2020-11-30T19:51:29Z", "stargazersCount": 2, "topics": [], "updatedAt": "2020-11-30T20:33:16Z", "url": "https://github.com/djs55/hyperkit-high-cpu"}hyperkit-high-cpu
Section titled “hyperkit-high-cpu”An example of an idle VM inducing high CPU in hyperkit
To build:
linuxkit build bad.ymllinuxkit build good.ymlTo see a VM with low CPU:
linuxkit run goodTo see a VM with high CPU:
linuxkit run badNote the only difference is the good VM uses Linux 4.19 while the bad VM uses Linux 5.4. To try to make the bad VM better, all the bug mitigations have been disabled but this doesn’t seem to help.
The helper script go run measure.go will monitor the %cpu of the hyperkit process for
60 seconds and produce an average.