Skip to content

[Request]: Can we have a stable interface for querying the amount of memory that is being used by the underlying virtual machine. #1921

Description

@lgmars

Feature or enhancement request details

container stats only reports the memory that is being used by the processes in the container, not the amount that the container uses/claims from the host, which can be found by checking the memory used by the corresponding com.apple.Virtualization.VirtualMachine process ( Virtual Machine Service for container-runtime-linux in the Active Monitor).

Obtaining this number is a little cumbersome. I'm using lsof on com.apple.Virtualization.VirtualMachine to see what directory it opens in ~/Library/Application Support/com.apple.container/containers/ to get the container UUID.

Can we add a stable interface to it someway somewhere? Or is there already better ways of accomplishing this?

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Fields

    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions