Skip to content
This repository was archived by the owner on Apr 3, 2018. It is now read-only.
This repository was archived by the owner on Apr 3, 2018. It is now read-only.

Debate what the default number of VCPUs should be #335

Open
@grahamwhaley

Description

@grahamwhaley

Currently we set the default number of VCPUs to be 1:
https://github.com/containers/virtcontainers/blob/master/hypervisor.go#L36

This is one obvious and safe default, but from some testing (under https://github.com/clearcontainers/runtime), it seems that running up the VM (qemu/KVM) with only one VCPU causes some performance issues (startup takes twice as long for instance). (side note - this happened as the Clear Containers cc-runtime failed to find a valid config file upon startup during some debug, so took the default value for number of VCPUs from virtcontainers....).
Thus, we should debate if this needs changing or not. Obvious options are:

  • leave it as is - it is a known limitation, and runtimes should be choosing their own appropriate defaults
  • set it to '2', as the next best 'safe' choice
  • have it dynamically set to the number of physical cpu/cores in the host system. For very large systems though this may not be a great default choice due to the cost of creating and running all the VCPUs in the VM.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions