Skip to content

Limit container CPU and memory usage #21

Open
@albertofaria

Description

@albertofaria

We currently launch a container without CPU or memory limits, and trust libvirt and QEMU to do the right thing. We should instead set actual limits on the container.

One difficulty is that, since the limits specified by the user (using --cpu, --memory, etc.) apply to the VM and not the container, we must set a higher memory limit than requested on the container to account for QEMU memory requirements. The KubeVirt project has solved the same problem by estimating that overhead (see GetMemoryOverhead()). We could follow a similar approach.

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