Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.
This repository was archived by the owner on May 12, 2021. It is now read-only.

Memory usage doesn't match memory limit in container spec #1822

@liwei

Description

@liwei

Description of problem

Running a container with memory limit == 4gb specified, but got much larger memory size when checking memory info in the container.

Expected result

$ docker run -ti --rm --runtime=kata -m 4g alpine
/ # free -m
             total       used       free     shared    buffers     cached
Mem:          4g        108       4g          8          2          9
-/+ buffers/cache:         97       4g

Actual result

$ docker run -ti --rm --runtime=kata -m 4g alpine
/ # free -m
             total       used       free     shared    buffers     cached
Mem:          6090        108       5982          8          2          9
-/+ buffers/cache:         97       5993

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIncorrect behaviourneeds-reviewNeeds to be assessed by the team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions