Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

integration/docker: improve memory test #1505

Merged
merged 1 commit into from
Apr 26, 2019

Conversation

devimc
Copy link

@devimc devimc commented Apr 26, 2019

Consume twice the memory hot added to the container to guarantee
the out of memory error.

fixes #1504

Signed-off-by: Julio Montes [email protected]

Consume twice the memory hot added to the container to guarantee
the `out of memory` error.

fixes kata-containers#1504

Signed-off-by: Julio Montes <[email protected]>
@devimc
Copy link
Author

devimc commented Apr 26, 2019

/test

Copy link
Contributor

@grahamwhaley grahamwhaley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm
I was peeking at this code earlier today, and noticed the hard wired '260'. I think StressImage could probably even take some sort of iterator - so we might be able to say to it 'allocate the size of the container memory *10, in containerMemory sized steps', and be really sure it will blow the memory budget :-)

@GabyCT GabyCT merged commit 8441371 into kata-containers:master Apr 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

improve "run container exceeding memory constraints" test
5 participants