Skip to content

ateom-microvm: Tune guest memory & vCPUs #1724

Open

Description

@hdp617

Today, we use the defaults from Kata for the guest VM's memory and vCPUs.

// KataConfig holds the values ateom reads from a kata configuration.toml. ateom
// owns the cloud-hypervisor boot and points it at the runtime-fetched asset paths
// directly, so the only things it needs from the config are the guest sizing and
// the agent kernel command line.
type KataConfig struct {
// MemoryMiB is the guest RAM size ([hypervisor.clh] default_memory).
MemoryMiB int
// VCPUs is the guest vCPU count ([hypervisor.clh] default_vcpus).
VCPUs int
// KernelParams is the guest kernel command line ([hypervisor.clh]
// kernel_params): the kata-agent parameters (agent.log, the systemd target,
// etc.). ateom appends these to the cloud-hypervisor payload cmdline, since
// there is no kata shim to inject them.

The appropriate values for Substrate are likely lower. This task is to adjust these values for Actors. Also related to #1032.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/microVMkind/featureAn enhancement / feature request or implementation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions